Solved

Maximize JDesktopPane

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

How can I Maximize JDesktopPane.

Thank you
0
Comment
Question by:sree032397
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

A short article about a problem I had getting the GPS LocationListener working.
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future ā€¦
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files ā€” any plā€¦

752 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