[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

JInternalFrame maximizing in Windows 7, I have a set size, why is this happening?

Posted on 2012-09-17
4
Medium Priority
?
498 Views
Last Modified: 2012-09-21
JInternalFrame maximizing automatically in Windows 7, I have a set size, why is this happening?

The user clicks a button and this Internal Frame is created and added to JFrame. For some reason in Windows 7 it maximizes automatically. I dont want this, I want the set size I entered and also disabled maximize.

Can anyone help me?

		try {
			setMaximum(false);
		} 
		catch (PropertyVetoException e) {
			e.printStackTrace();
		}
		
		setPreferredSize(new Dimension(649, 430));
		setMaximumSize(new Dimension(649, 430));
		setMinimumSize(new Dimension(649, 430));
		setMaximizable(false);
		setResizable(false);
		setSize(649,430);
		setLocation(100,100);
		getContentPane().setLayout(new BorderLayout(0, 0));
                ....
               repaint();
               setVisible(true);

Open in new window

0
Comment
Question by:mmedi005
  • 2
  • 2
4 Comments
 
LVL 17

Accepted Solution

by:
krakatoa earned 1000 total points
ID: 38408860
You'd maybe do well to have a look at what RG has to say, here :

Handling JInternalFrame with reference to DesktopPane.
0
 

Author Comment

by:mmedi005
ID: 38414625
Referring to the article above, that is how I have it setup. Inside the DesktopPane it is maximizing automatically and ignoring all set properties.

am I missing a set?
0
 

Author Closing Comment

by:mmedi005
ID: 38419049
Lead me to more research in right direction, but found solution on my own.

Thanks
0
 
LVL 17

Expert Comment

by:krakatoa
ID: 38423505
Good to hear you got it sorted. But when a question is over, EE normally expects a solution to be posted along with it, even if the original asker got the answer himself.
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
Suggested Courses
Course of the Month20 days, 6 hours left to enroll

873 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