Solved

Maximize JDesktopPane

Posted on 2006-06-25
3
871 Views
Last Modified: 2012-08-13

How can I Maximize JDesktopPane.

Thank you
0
Comment
Question by:sree032397
3 Comments
 
LVL 14

Accepted Solution

by:
StillUnAware earned 500 total points
ID: 16982157
You must set the correct container Layout. For example, if using JFrame, the default layout is BorderLayout, and if using JPanel, the default is FlowLayout, instead You can set it to BorderLayout too:

jPanel.setLayout(new BorderLayout());
jPanel.add(jDesktopPane);

see the docs on layouts:

http://java.sun.com/docs/books/tutorial/uiswing/layout/using.html

and BorderLayout
http://java.sun.com/docs/books/tutorial/uiswing/layout/border.html
http://java.sun.com/j2se/1.5.0/docs/api/java/awt/BorderLayout.html
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question