Skip to content

Commit dae2226

Browse files
committedJan 24, 2022
8279795: Fix typo in BasicFileChooserUI: Constucts -> Constructs
Reviewed-by: prr, serb
1 parent 1c7769d commit dae2226

File tree

1 file changed

+55
-17
lines changed

1 file changed

+55
-17
lines changed
 

‎src/java.desktop/share/classes/javax/swing/plaf/basic/BasicFileChooserUI.java

+55-17
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1998, 2021, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1998, 2022, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -25,21 +25,58 @@
2525

2626
package javax.swing.plaf.basic;
2727

28-
import javax.swing.*;
29-
import javax.swing.filechooser.*;
30-
import javax.swing.filechooser.FileFilter;
31-
import javax.swing.event.*;
32-
import javax.swing.plaf.*;
33-
import java.awt.*;
34-
import java.awt.event.*;
35-
import java.awt.datatransfer.*;
36-
import java.beans.*;
37-
import java.io.*;
38-
import java.util.*;
28+
import java.awt.BorderLayout;
29+
import java.awt.Toolkit;
30+
import java.awt.datatransfer.DataFlavor;
31+
import java.awt.datatransfer.Transferable;
32+
import java.awt.event.ActionEvent;
33+
import java.awt.event.MouseAdapter;
34+
import java.awt.event.MouseEvent;
35+
import java.awt.event.MouseListener;
36+
import java.beans.PropertyChangeListener;
37+
import java.io.File;
38+
import java.io.FileNotFoundException;
39+
import java.io.IOException;
40+
import java.util.ArrayList;
41+
import java.util.Arrays;
42+
import java.util.Hashtable;
3943
import java.util.List;
40-
import java.util.regex.*;
44+
import java.util.Locale;
45+
import java.util.regex.Pattern;
46+
import java.util.regex.PatternSyntaxException;
47+
48+
import javax.swing.AbstractAction;
49+
import javax.swing.Action;
50+
import javax.swing.ActionMap;
51+
import javax.swing.Icon;
52+
import javax.swing.InputMap;
53+
import javax.swing.JButton;
54+
import javax.swing.JComponent;
55+
import javax.swing.JFileChooser;
56+
import javax.swing.JList;
57+
import javax.swing.JOptionPane;
58+
import javax.swing.JPanel;
59+
import javax.swing.JTable;
60+
import javax.swing.LookAndFeel;
61+
import javax.swing.SwingUtilities;
62+
import javax.swing.TransferHandler;
63+
import javax.swing.UIDefaults;
64+
import javax.swing.UIManager;
65+
import javax.swing.event.ListSelectionEvent;
66+
import javax.swing.event.ListSelectionListener;
67+
import javax.swing.filechooser.FileFilter;
68+
import javax.swing.filechooser.FileSystemView;
69+
import javax.swing.filechooser.FileView;
70+
import javax.swing.plaf.ActionMapUIResource;
71+
import javax.swing.plaf.ComponentUI;
72+
import javax.swing.plaf.FileChooserUI;
73+
import javax.swing.plaf.UIResource;
74+
4175
import sun.awt.shell.ShellFolder;
42-
import sun.swing.*;
76+
import sun.swing.DefaultLookup;
77+
import sun.swing.FilePane;
78+
import sun.swing.SwingUtilities2;
79+
import sun.swing.UIAction;
4380

4481
/**
4582
* Basic L&F implementation of a FileChooser.
@@ -723,11 +760,12 @@ protected class DoubleClickListener extends MouseAdapter {
723760
// new functionality add it to the Handler, but make sure this
724761
// class calls into the Handler.
725762
Handler handler;
763+
726764
/**
727-
* Constucts a {@code DoubleClickListener}.
728-
* @param list the lsit
765+
* Constructs a {@code DoubleClickListener}.
766+
* @param list the list
729767
*/
730-
public DoubleClickListener(JList<?> list) {
768+
public DoubleClickListener(JList<?> list) {
731769
handler = new Handler(list);
732770
}
733771

0 commit comments

Comments
 (0)
Please sign in to comment.