How to make a JFrame really fullscreen?

I haven't tried it yet, but Java has fullscreen API, which should meet your needs.

Up vote 2 down vote favorite share g+ share fb share tw.

In my Java application I try to make a JFrame really fullscreen by using this code: public class MainFrame extends JFrame { private static final long serialVersionUID = 1L; public MainFrame() { super(); this.setTitle(); this. SetUndecorated(true); this. SetExtendedState(JFrame.

MAXIMIZED_BOTH); this. SetVisible(true); //this.pack(); } } But on my Mac I can still see the Dock and the top toolbar of the OSX. So how can I create a JFrame that really consumes my whole screen?

EDIT I have to add that I want to call that JFrame from a eclipse plugin. Java swing jframe fullscreen link|improve this question edited 2 days ago asked 2 days agoRoflcoptr16.5k44088 93% accept rate.

Take a look at this: docs.oracle.com/javase/tutorial/extra/fu... – dexametason 2 days ago 2 possible duplicate of How can I do full screen in Java on OSX – krock 2 days ago Thanks but the examples there do not work if it is a Eclipse plugin. – Roflcoptr 2 days ago.

I haven't tried it yet, but Java has fullscreen API, which should meet your needs: docs.oracle.com/javase/tutorial/extra/fu....

1 FullScreenTest is an example. – trashgod 2 days ago Thanks, but this doesn't seem to work when I create the JFrame from a eclipse plugin. – Roflcoptr 2 days ago.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions