@@ -74,6 +74,7 @@ private void initComponents() {
7474 javax .swing .JScrollPane jScrollPane1 = new javax .swing .JScrollPane ();
7575 javax .swing .JButton cancel = new javax .swing .JButton ();
7676 javax .swing .JButton ok = new javax .swing .JButton ();
77+ javax .swing .JLabel jLabel1 = new javax .swing .JLabel ();
7778
7879 setDefaultCloseOperation (javax .swing .WindowConstants .DISPOSE_ON_CLOSE );
7980 setTitle (_ ("Additional Boards Manager URLs" ));
@@ -99,6 +100,8 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
99100 }
100101 });
101102
103+ jLabel1 .setText (_ ("Enter additional URLs, one for each row" ));
104+
102105 javax .swing .GroupLayout layout = new javax .swing .GroupLayout (getContentPane ());
103106 getContentPane ().setLayout (layout );
104107 layout .setHorizontalGroup (
@@ -107,18 +110,23 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
107110 .addContainerGap ()
108111 .addGroup (layout .createParallelGroup (javax .swing .GroupLayout .Alignment .LEADING )
109112 .addGroup (layout .createSequentialGroup ()
110- .addGap (0 , 439 , Short .MAX_VALUE )
113+ .addGap (0 , 332 , Short .MAX_VALUE )
111114 .addComponent (ok )
112115 .addPreferredGap (javax .swing .LayoutStyle .ComponentPlacement .RELATED )
113116 .addComponent (cancel ))
114- .addComponent (jScrollPane1 ))
117+ .addComponent (jScrollPane1 )
118+ .addGroup (layout .createSequentialGroup ()
119+ .addComponent (jLabel1 )
120+ .addGap (0 , 0 , Short .MAX_VALUE )))
115121 .addContainerGap ())
116122 );
117123 layout .setVerticalGroup (
118124 layout .createParallelGroup (javax .swing .GroupLayout .Alignment .LEADING )
119125 .addGroup (layout .createSequentialGroup ()
120126 .addContainerGap ()
121- .addComponent (jScrollPane1 , javax .swing .GroupLayout .DEFAULT_SIZE , 141 , Short .MAX_VALUE )
127+ .addComponent (jLabel1 )
128+ .addPreferredGap (javax .swing .LayoutStyle .ComponentPlacement .RELATED )
129+ .addComponent (jScrollPane1 , javax .swing .GroupLayout .DEFAULT_SIZE , 118 , Short .MAX_VALUE )
122130 .addPreferredGap (javax .swing .LayoutStyle .ComponentPlacement .RELATED )
123131 .addGroup (layout .createParallelGroup (javax .swing .GroupLayout .Alignment .BASELINE )
124132 .addComponent (cancel )
@@ -139,48 +147,6 @@ private void okActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:even
139147 cancelActionPerformed (evt );
140148 }//GEN-LAST:event_okActionPerformed
141149
142- /**
143- * @param args the command line arguments
144- */
145- public static void main (String args []) {
146- /* Set the Nimbus look and feel */
147- //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
148- /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
149- * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
150- */
151- try {
152- for (javax .swing .UIManager .LookAndFeelInfo info : javax .swing .UIManager .getInstalledLookAndFeels ()) {
153- if ("Nimbus" .equals (info .getName ())) {
154- javax .swing .UIManager .setLookAndFeel (info .getClassName ());
155- break ;
156- }
157- }
158- } catch (ClassNotFoundException ex ) {
159- java .util .logging .Logger .getLogger (AdditionalBoardsManagerURLTextArea .class .getName ()).log (java .util .logging .Level .SEVERE , null , ex );
160- } catch (InstantiationException ex ) {
161- java .util .logging .Logger .getLogger (AdditionalBoardsManagerURLTextArea .class .getName ()).log (java .util .logging .Level .SEVERE , null , ex );
162- } catch (IllegalAccessException ex ) {
163- java .util .logging .Logger .getLogger (AdditionalBoardsManagerURLTextArea .class .getName ()).log (java .util .logging .Level .SEVERE , null , ex );
164- } catch (javax .swing .UnsupportedLookAndFeelException ex ) {
165- java .util .logging .Logger .getLogger (AdditionalBoardsManagerURLTextArea .class .getName ()).log (java .util .logging .Level .SEVERE , null , ex );
166- }
167- //</editor-fold>
168-
169- /* Create and display the dialog */
170- java .awt .EventQueue .invokeLater (new Runnable () {
171- public void run () {
172- AdditionalBoardsManagerURLTextArea dialog = new AdditionalBoardsManagerURLTextArea (new javax .swing .JFrame ());
173- dialog .addWindowListener (new java .awt .event .WindowAdapter () {
174- @ Override
175- public void windowClosing (java .awt .event .WindowEvent e ) {
176- System .exit (0 );
177- }
178- });
179- dialog .setVisible (true );
180- }
181- });
182- }
183-
184150 public void setText (String text ) {
185151 Collection <String > urls = splitAndTrim (text , "," );
186152 additionalBoardsManagerURLs .setText (Joiner .on ("\n " ).skipNulls ().join (urls ));
0 commit comments