final JPanel col2 = new JPanel();
col2.setPreferredSize(new Dimension(40, 20));
col2.setBorder(BorderFactory.createEtchedBorder());
- col2.setToolTipText(MessageManager.getString("label.ligth_colour"));
+ col2.setToolTipText(MessageManager.getString("label.light_colour"));
col2.setBackground(new Color(original2));
final JPanel bigpanel = new JPanel(new BorderLayout());
JPanel panel = new JPanel();
bigpanel.add(panel, BorderLayout.CENTER);
bigpanel.add(
- new JLabel("<html>"+MessageManager.getString("label.select_dark_light_set_thereshold")+"</html>"),
- BorderLayout.NORTH);
+ new JLabel(
+ "<html>"
+ + MessageManager
+ .getString("label.select_dark_light_set_threshold")
+ + "</html>"), BorderLayout.NORTH);
panel.add(col1);
panel.add(slider);
panel.add(col2);
col1.addMouseListener(new MouseAdapter()
{
+ @Override
public void mousePressed(MouseEvent e)
{
Color col = JColorChooser.showDialog(bigpanel,
- MessageManager.getString("label.select_colour_for_text"), col1.getBackground());
+ MessageManager.getString("label.select_colour_for_text"),
+ col1.getBackground());
if (col != null)
{
colour1Changed(col);
col2.addMouseListener(new MouseAdapter()
{
+ @Override
public void mousePressed(MouseEvent e)
{
Color col = JColorChooser.showDialog(bigpanel,
- MessageManager.getString("label.select_colour_for_text"), col2.getBackground());
+ MessageManager.getString("label.select_colour_for_text"),
+ col2.getBackground());
if (col != null)
{
colour2Changed(col);
slider.addChangeListener(new ChangeListener()
{
+ @Override
public void stateChanged(ChangeEvent evt)
{
thresholdChanged(slider.getValue());
}
});
- int reply = JOptionPane.showInternalOptionDialog(ap, bigpanel,
- MessageManager.getString("label.adjunst_foreground_text_colour_thereshold"),
- JOptionPane.OK_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE,
- null, null, null);
+ int reply = JOptionPane
+ .showInternalOptionDialog(
+ ap,
+ bigpanel,
+ MessageManager
+ .getString("label.adjunst_foreground_text_colour_threshold"),
+ JOptionPane.OK_CANCEL_OPTION,
+ JOptionPane.QUESTION_MESSAGE, null, null, null);
if (reply == JOptionPane.CANCEL_OPTION)
{