licencing and format applied (eclipse)
[jalview.git] / src / jalview / gui / TextColourChooser.java
index 2f887cb..c0f3916 100644 (file)
@@ -30,6 +30,7 @@ import jalview.datamodel.*;
 public class TextColourChooser
 {
   AlignmentPanel ap;
+
   SequenceGroup sg;
 
   public void chooseColour(AlignmentPanel ap, SequenceGroup sg)
@@ -65,10 +66,12 @@ public class TextColourChooser
     final JPanel bigpanel = new JPanel(new BorderLayout());
     JPanel panel = new JPanel();
     bigpanel.add(panel, BorderLayout.CENTER);
-    bigpanel.add(new JLabel(
-        "<html><i>Select a dark and light text colour, then set the threshold to"
-        + "<br>switch between colours, based on background colour</i></html>"),
-                 BorderLayout.NORTH);
+    bigpanel
+            .add(
+                    new JLabel(
+                            "<html><i>Select a dark and light text colour, then set the threshold to"
+                                    + "<br>switch between colours, based on background colour</i></html>"),
+                    BorderLayout.NORTH);
     panel.add(col1);
     panel.add(slider);
     panel.add(col2);
@@ -78,8 +81,7 @@ public class TextColourChooser
       public void mousePressed(MouseEvent e)
       {
         Color col = JColorChooser.showDialog(bigpanel,
-                                             "Select Colour for Text",
-                                             col1.getBackground());
+                "Select Colour for Text", col1.getBackground());
         if (col != null)
         {
           colour1Changed(col);
@@ -93,8 +95,7 @@ public class TextColourChooser
       public void mousePressed(MouseEvent e)
       {
         Color col = JColorChooser.showDialog(bigpanel,
-                                             "Select Colour for Text",
-                                             col2.getBackground());
+                "Select Colour for Text", col2.getBackground());
         if (col != null)
         {
           colour2Changed(col);
@@ -111,14 +112,10 @@ public class TextColourChooser
       }
     });
 
-    int reply = JOptionPane.showInternalOptionDialog(
-        ap,
-        bigpanel,
-        "Adjust Foreground Text Colour Threshold",
-        JOptionPane.OK_CANCEL_OPTION,
-        JOptionPane.QUESTION_MESSAGE,
-        null,
-        null, null);
+    int reply = JOptionPane.showInternalOptionDialog(ap, bigpanel,
+            "Adjust Foreground Text Colour Threshold",
+            JOptionPane.OK_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE,
+            null, null, null);
 
     if (reply == JOptionPane.CANCEL_OPTION)
     {