Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2003-01-13 Pierre-Luc Paour <gallery@paour.com> (1.3-b15)
* Detect even more screwed up album hierarchies and display an alert to suggest a fix.
- Loading branch information
Pierre-Luc Paour
committed
Jan 14, 2004
1 parent
ca2a0e6
commit 60250b5
Showing
8 changed files
with
142 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
package com.gallery.GalleryRemote.util; | ||
|
||
import com.gallery.GalleryRemote.GalleryRemote; | ||
|
||
import javax.swing.*; | ||
import java.awt.*; | ||
import java.awt.event.ActionListener; | ||
import java.awt.event.ActionEvent; | ||
|
||
/** | ||
* Created by IntelliJ IDEA. | ||
* User: paour | ||
* Date: Jan 13, 2004 | ||
*/ | ||
public class UrlMessageDialog extends JDialog { | ||
public static final String MODULE = "ImageUtils"; | ||
JLabel jIcon = new JLabel(); | ||
JLabel jMessage = new JLabel(); | ||
BrowserLink jURL = new BrowserLink(); | ||
JCheckBox jDontShow = new JCheckBox(); | ||
JButton jOk = new JButton(); | ||
|
||
public UrlMessageDialog(String message, String url, String urlText) { | ||
super(GalleryRemote.getInstance().mainFrame, | ||
GRI18n.getString(MODULE, "warningTitle"), | ||
true); | ||
|
||
jIcon.setIcon(UIManager.getIcon("OptionPane.warningIcon")); | ||
setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE); | ||
getContentPane().setLayout(new GridBagLayout()); | ||
jMessage.setText(message); | ||
|
||
if (urlText != null) { | ||
jURL.setText(urlText); | ||
} else { | ||
jURL.setText(url); | ||
} | ||
|
||
jURL.setUrl(url); | ||
jDontShow.setText(GRI18n.getString(MODULE, "warningDontShow")); | ||
jOk.setText(GRI18n.getString(MODULE, "warningOK")); | ||
jOk.addActionListener(new ActionListener() { | ||
public void actionPerformed(ActionEvent e) { | ||
setVisible(false); | ||
} | ||
}); | ||
|
||
getContentPane().add(jIcon, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0 | ||
, GridBagConstraints.NORTH, GridBagConstraints.NONE, new Insets(5, 5, 0, 10), 0, 0)); | ||
getContentPane().add(jMessage, new GridBagConstraints(1, 0, 2, 1, 1.0, 1.0 | ||
, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(5, 0, 0, 5), 0, 0)); | ||
getContentPane().add(jURL, new GridBagConstraints(1, 1, 2, 1, 0.0, 0.0 | ||
, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 0, 0, 5), 0, 0)); | ||
getContentPane().add(jDontShow, new GridBagConstraints(1, 2, 1, 1, 0.0, 0.0 | ||
, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(5, 0, 0, 5), 0, 0)); | ||
getContentPane().add(jOk, new GridBagConstraints(2, 2, 1, 2, 0.0, 0.0 | ||
, GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(5, 0, 5, 5), 0, 0)); | ||
|
||
getRootPane().setDefaultButton(jOk); | ||
|
||
pack(); | ||
|
||
DialogUtil.center(this, getOwner()); | ||
|
||
setVisible(true); | ||
} | ||
|
||
public boolean dontShow() { | ||
return jDontShow.isSelected(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters