File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
test/jdk/javax/swing/JFileChooser Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 2222 */
2323
2424import java .awt .BorderLayout ;
25- import java .awt .Window ;
2625import java .awt .event .ActionEvent ;
2726import java .awt .event .ActionListener ;
2827import java .beans .PropertyChangeEvent ;
2928import java .beans .PropertyChangeListener ;
3029import java .io .File ;
3130import java .util .Arrays ;
32- import java .util .List ;
3331
3432import javax .swing .JCheckBox ;
3533import javax .swing .JFileChooser ;
@@ -118,7 +116,7 @@ public static void main(String[] args) throws Exception {
118116 .awaitAndCheck ();
119117 }
120118
121- private static List < Window > createTestUI () {
119+ private static JFrame createTestUI () {
122120 frame = new JFrame ("JFileChooser Symbolic Link test" );
123121 panel = new JPanel (new BorderLayout ());
124122 multiSelection = new JCheckBox ("Enable Multi-Selection" );
@@ -159,6 +157,6 @@ public void propertyChange(PropertyChangeEvent evt) {
159157 frame .add (panel , BorderLayout .NORTH );
160158 frame .add (jfc , BorderLayout .CENTER );
161159 frame .pack ();
162- return List . of ( frame ) ;
160+ return frame ;
163161 }
164162}
You can’t perform that action at this time.
0 commit comments