Re: Size
Francois Lionet wrote:
Hello,
I need to resize a JFrame (with caption) so that the client area is exactly
640x480. If I do a setSize(640, 480) the client area is smaller due to the
caption and border of the frame. I need to get the size of the caption and
of the borders. But where can I find that information? (or is it a way to
resize the frame base on the client area size?)
Set the preferred size of a panel in your client area to 640 x 460. Then
call JFrame.pack, or get the preferred layout of the frame.
I believe the size of the caption and borders will be in the insets of
the JFrame. It is for Frame, but I'm not entirely sure what happens if
you get the current Swing Look & Feel to render the frame decorations.
Tom Hawtin
.
Relevant Pages
- Size
... I need to resize a JFrame (with caption) so that the client area is exactly ... caption and border of the frame. ... (comp.lang.java.programmer) - Re: Lost Captions, Out of Sequence Captions, ...
... Word MVP FAQ site: http://word.mvps.org ... Always insert graphics inline whenever possible; ... graphic and its plain-text caption and insert both in a frame, ... If you do put the graphic+caption in a frame, ... (microsoft.public.word.formatting.longdocs) - Re: Cross Ref & Fig No
... Just forgot to mention that, after dragging the object inside the frame, it ... Rasoul Khoshravan Azar ... For Caption, paragraph end mark stays at top of frame where objects exists, ... Word MVP FAQ site: http://word.mvps.org ... (microsoft.public.word.docmanagement) - Re: Lost Captions, Out of Sequence Captions, ...
... Twice I tried to caption ... Always insert graphics inline whenever possible; ... If you do put the graphic+caption in a frame, ... I will insert a caption below a picture. ... (microsoft.public.word.formatting.longdocs) - Re: Frames, Captions, and Graphic Placement
... I'm in the process of trying the inline option and it does seem to ... text or graphics box and Word magically throws it onto another page or just ... > If the graphic is inline, Word puts the caption in an ordinary text ... > graphic and caption together and insert a frame (using the Insert Frame ... (microsoft.public.word.docmanagement) |
|