コード例 #1
0
 public FilePreviewer(JFileChooser fc) {
   setPreferredSize(new Dimension(100, 50));
   fc.addPropertyChangeListener(this);
   setBorder(new BevelBorder(BevelBorder.LOWERED));
 }
コード例 #2
0
 /** register for events from the specified file chooser */
 public void applyTo(final JFileChooser fileChooser) {
   fileChooser.setAccessory(new AccessoryView().getComponent());
   applyDefaultFolder(fileChooser);
   fileChooser.addPropertyChangeListener(this);
 }