@@ -74,6 +74,7 @@ private void initComponents() {
74
74
javax .swing .JScrollPane jScrollPane1 = new javax .swing .JScrollPane ();
75
75
javax .swing .JButton cancel = new javax .swing .JButton ();
76
76
javax .swing .JButton ok = new javax .swing .JButton ();
77
+ javax .swing .JLabel jLabel1 = new javax .swing .JLabel ();
77
78
78
79
setDefaultCloseOperation (javax .swing .WindowConstants .DISPOSE_ON_CLOSE );
79
80
setTitle (_ ("Additional Boards Manager URLs" ));
@@ -99,6 +100,8 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
99
100
}
100
101
});
101
102
103
+ jLabel1 .setText (_ ("Enter additional URLs, one for each row" ));
104
+
102
105
javax .swing .GroupLayout layout = new javax .swing .GroupLayout (getContentPane ());
103
106
getContentPane ().setLayout (layout );
104
107
layout .setHorizontalGroup (
@@ -107,18 +110,23 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
107
110
.addContainerGap ()
108
111
.addGroup (layout .createParallelGroup (javax .swing .GroupLayout .Alignment .LEADING )
109
112
.addGroup (layout .createSequentialGroup ()
110
- .addGap (0 , 439 , Short .MAX_VALUE )
113
+ .addGap (0 , 332 , Short .MAX_VALUE )
111
114
.addComponent (ok )
112
115
.addPreferredGap (javax .swing .LayoutStyle .ComponentPlacement .RELATED )
113
116
.addComponent (cancel ))
114
- .addComponent (jScrollPane1 ))
117
+ .addComponent (jScrollPane1 )
118
+ .addGroup (layout .createSequentialGroup ()
119
+ .addComponent (jLabel1 )
120
+ .addGap (0 , 0 , Short .MAX_VALUE )))
115
121
.addContainerGap ())
116
122
);
117
123
layout .setVerticalGroup (
118
124
layout .createParallelGroup (javax .swing .GroupLayout .Alignment .LEADING )
119
125
.addGroup (layout .createSequentialGroup ()
120
126
.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 )
122
130
.addPreferredGap (javax .swing .LayoutStyle .ComponentPlacement .RELATED )
123
131
.addGroup (layout .createParallelGroup (javax .swing .GroupLayout .Alignment .BASELINE )
124
132
.addComponent (cancel )
@@ -139,48 +147,6 @@ private void okActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:even
139
147
cancelActionPerformed (evt );
140
148
}//GEN-LAST:event_okActionPerformed
141
149
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
-
184
150
public void setText (String text ) {
185
151
Collection <String > urls = splitAndTrim (text , "," );
186
152
additionalBoardsManagerURLs .setText (Joiner .on ("\n " ).skipNulls ().join (urls ));
0 commit comments