Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Maximize JFrame without windows taskbar

843807May 5 2010 — edited May 10 2010
Hi,

I am trying to make a JFrame that covers full screen, but the windows taskbar should remain visible. Just as a normal application like your browser.
I already have this:
//Prepare frame
	    frmMain = new JFrame ("Invoice main screen");		//Create frame	 
	    //frmMain.setSize(Toolkit.getDefaultToolkit().getScreenSize());
	    frmMain.setExtendedState(JFrame.MAXIMIZED_BOTH);	//maximize screen
	    frmMain.setVisible(true);
	    frmMain.setResizable(false);
	    frmMain.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); 
I tried the setSize and the setExtendedState, but it still covers my taskbar.
Any ideas?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 7 2010
Added on May 5 2010
13 comments
2,649 views