1
1
/*
2
- * Copyright (c) 1997, 2023 , Oracle and/or its affiliates. All rights reserved.
2
+ * Copyright (c) 1997, 2025 , 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
@@ -273,7 +273,6 @@ public void installComponents(JFileChooser fc) {
273
273
fc .add (topPanel , BorderLayout .NORTH );
274
274
275
275
// ComboBox Label
276
- @ SuppressWarnings ("serial" ) // anonymous class
277
276
JLabel tmp1 = new JLabel (lookInLabelText , JLabel .TRAILING ) {
278
277
public Dimension getPreferredSize () {
279
278
return getMinimumSize ();
@@ -295,7 +294,6 @@ public Dimension getMinimumSize() {
295
294
topPanel .add (Box .createRigidArea (new Dimension (8 ,0 )));
296
295
297
296
// CurrentDir ComboBox
298
- @ SuppressWarnings ("serial" ) // anonymous class
299
297
JComboBox <File > tmp2 = new JComboBox <File >() {
300
298
public Dimension getMinimumSize () {
301
299
Dimension d = super .getMinimumSize ();
@@ -477,7 +475,6 @@ public void propertyChange(PropertyChangeEvent e) {
477
475
fileAndFilterPanel .add (Box .createRigidArea (vstrut8 ));
478
476
fileAndFilterPanel .setLayout (new BoxLayout (fileAndFilterPanel , BoxLayout .Y_AXIS ));
479
477
480
- @ SuppressWarnings ("serial" ) // anonymous class
481
478
JTextField tmp3 = new JTextField (35 ) {
482
479
public Dimension getMaximumSize () {
483
480
return new Dimension (Short .MAX_VALUE , super .getPreferredSize ().height );
@@ -518,7 +515,6 @@ public void focusGained(FocusEvent e) {
518
515
// buttons
519
516
getButtonPanel ().setLayout (new BoxLayout (getButtonPanel (), BoxLayout .Y_AXIS ));
520
517
521
- @ SuppressWarnings ("serial" ) // anonymous class
522
518
JButton tmp4 = new JButton (getApproveButtonText (fc )) {
523
519
public Dimension getMaximumSize () {
524
520
return approveButton .getPreferredSize ().width > cancelButton .getPreferredSize ().width ?
@@ -537,7 +533,6 @@ public Dimension getMaximumSize() {
537
533
getButtonPanel ().add (approveButton );
538
534
getButtonPanel ().add (Box .createRigidArea (vstrut4 ));
539
535
540
- @ SuppressWarnings ("serial" ) // anonymous class
541
536
JButton tmp5 = new JButton (cancelButtonText ) {
542
537
public Dimension getMaximumSize () {
543
538
return approveButton .getPreferredSize ().width > cancelButton .getPreferredSize ().width ?
@@ -974,7 +969,6 @@ protected DirectoryComboBoxRenderer createDirectoryComboBoxRenderer(JFileChooser
974
969
return new DirectoryComboBoxRenderer ();
975
970
}
976
971
977
- @ SuppressWarnings ("serial" ) // anonymous class
978
972
private static JButton createToolButton (Action a , Icon defaultIcon , String toolTipText , String accessibleName ) {
979
973
final JButton result = new JButton (a );
980
974
0 commit comments