|
1 | 1 | /*
|
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. |
3 | 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
4 | 4 | *
|
5 | 5 | * This code is free software; you can redistribute it and/or modify it
|
|
25 | 25 |
|
26 | 26 | package javax.swing.plaf.basic;
|
27 | 27 |
|
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; |
39 | 43 | 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 | + |
41 | 75 | 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; |
43 | 80 |
|
44 | 81 | /**
|
45 | 82 | * Basic L&F implementation of a FileChooser.
|
@@ -723,11 +760,12 @@ protected class DoubleClickListener extends MouseAdapter {
|
723 | 760 | // new functionality add it to the Handler, but make sure this
|
724 | 761 | // class calls into the Handler.
|
725 | 762 | Handler handler;
|
| 763 | + |
726 | 764 | /**
|
727 |
| - * Constucts a {@code DoubleClickListener}. |
728 |
| - * @param list the lsit |
| 765 | + * Constructs a {@code DoubleClickListener}. |
| 766 | + * @param list the list |
729 | 767 | */
|
730 |
| - public DoubleClickListener(JList<?> list) { |
| 768 | + public DoubleClickListener(JList<?> list) { |
731 | 769 | handler = new Handler(list);
|
732 | 770 | }
|
733 | 771 |
|
|
0 commit comments