You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Igor V. Stolyarov (JIRA)" <ji...@apache.org> on 2007/08/28 14:01:32 UTC
[jira] Updated: (HARMONY-4684) [classlib][swing] JFileChooser
detailed view doesn't have scrollbar
[ https://issues.apache.org/jira/browse/HARMONY-4684?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Igor V. Stolyarov updated HARMONY-4684:
---------------------------------------
Attachment: H-4684.patch
Fix attached
> [classlib][swing] JFileChooser detailed view doesn't have scrollbar
> -------------------------------------------------------------------
>
> Key: HARMONY-4684
> URL: https://issues.apache.org/jira/browse/HARMONY-4684
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Igor V. Stolyarov
> Attachments: H-4684.patch
>
>
> JFileChooser detailed view doesn't have scrollbar.
> Simple reproducer:
> import javax.swing.*;
> import javax.swing.event.*;
> import java.awt.*;
> import java.awt.event.*;
> public class JFileChooserTest {
> public static void main(String[] args) {
> final JFrame f = new JFrame("Test");
> JButton b = new JButton(new AbstractAction("Choose file") {
> public void actionPerformed(ActionEvent e) {
> JFileChooser fc = new JFileChooser();
> fc.showOpenDialog(f);
> }
> });
> JPanel p = new JPanel();
> p.setMaximumSize(new Dimension(100, 30));
> p.setPreferredSize(new Dimension(100, 30));
> p.add(b);
> f.setLayout(new BorderLayout());
> f.add(p, BorderLayout.CENTER);
> f.setBounds(0, 0, 300, 200);
> f.setVisible(true);
> f.addWindowListener(new WindowAdapter() {
> public void windowClosing(WindowEvent ev) {
> System.exit(0);
> }
> });
> }
> }
> Steps for reproduce:
> 1. Run JFileChooserTest
> 2. Click "Choose file" button
> 3. Choose detailed view
> Detailed view doesn't have scrollbar and impossibly select files which placed out of FileChooser window
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.