Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

button size in JFileChooser



Hi!

Here comes more JFileChooser troubles. When I change the approve-
button's text with setApproveButtonText(), the Dialog layout is not recomputed. I tried doLayout(), validate(), validateTree(), etc. but nothing works. The effect is that when I do the following, the approve button's size will be too small. This problem does not occur on Windows, so I think asking here is ok:

JFileChooser jfc = new JFileChooser("hoho");
jfc.setApproveButtonText("sehr langer Text ist das");

In my particular case, I have subclassed JFileChooser and set the approve button's text back and forth between two different Strings according to some user action.

Gr|_e,

Knud
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Be sure to read the FAQ http://developer.apple.com/java/faq/ before posting
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.