|[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]|
Hi. I'm wondering if anyone else has had this problem and what the
solution might be. Under OS X, my JDialogs invariably come out the wrong
size vertically -- they're too short, and interface elements at the bottom
of the window are always chopped off.
For example, in an About dialog that extends JDialog, I'm putting a JLabel
(with an image icon) and a JButton into a JPanel, then adding the JPanel
to the content pane of the JDialog. Then I'm setting the size to the
preferred size of the JPanel:
It doesn't seem to matter what Layout I use for the jPanel. If I use a
BorderLayout and put the JLabel North and the JButton Center or if I use a
BoxLayout, it's still the same thing: a window truncated at the bottom.
It also doesn't seem to matter whether I use the Aqua look and feel or the
Metal look and feel.
Meanwhile, windows that are extensions of JFrame don't have this problem.
Can someone suggest a solution, please?
|>JDialog sizes under OS X (From: Christian Schaller <email@hidden>)|
Visit the Apple Store online or at retail locations.
Copyright © 2011 Apple Inc. All rights reserved.