954,536 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

full screen applet in java without any kind of bordering

Does anyone know how place an applet in full screen without any kind of bordering or buttons so that the applet starts at 0,0 of the screen and goes all the way to the opposite corner.
Now I know how to get a window into full screen using: GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice().setFullScreenWindow(Window win)
but either I have to deal with the annoying window frame or I get some weird result.

Can anyone help?

Mr.UNOwen
Junior Poster
133 posts since Oct 2006
Reputation Points: 10
Solved Threads: 0
 

for security reasons applets won't let you do that.

jwenting
duckman
Team Colleague
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
 

Is there any class that allows me to have borderless window where I have full control of what's displayed, have listeners and be able to cover the whole screen?

I'm basicaly trying to create a menue screen that takes up the whole screen.

If your wondering what I'm trying to create... I'm creating something similar to a media center, but with a bunch of other functions that media centers don't usually have.


UPDATE:

Well I was just thinking of what I said and I was wondering if I can create my own Frame class that doesn't have minimize, maximize or anything at all; just empty space from one point to another.

Mr.UNOwen
Junior Poster
133 posts since Oct 2006
Reputation Points: 10
Solved Threads: 0
 

not in an applet.
The border and icons are provided by the browser and cannot be changed for security reasons, so as to prevent people from tricking users into thinking they're seeing a window from an application on their machine instead of an applet.

jwenting
duckman
Team Colleague
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
 

Well I don't need to use an applet in particular, I just need control of the graphics for whole frame, but I'm guessing there's just no way to get rid of that frame.

Mr.UNOwen
Junior Poster
133 posts since Oct 2006
Reputation Points: 10
Solved Threads: 0
 

this.setUndecorated(true);
boolean undecorated = this.isUndecorated();
this.setLocationRelativeTo(null);

with this code in java swing you can hide the frame

vinod_javas
Practically a Posting Shark
871 posts since Feb 2007
Reputation Points: 119
Solved Threads: 7
 

Thanks a lot, I was thinking it was hopeless at this point. So with the frame gone I can have the applet start at the upper corner?

Mr.UNOwen
Junior Poster
133 posts since Oct 2006
Reputation Points: 10
Solved Threads: 0
 

sigh...

jwenting
duckman
Team Colleague
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
 

I haven't tried any of it yet, but what's with the sigh, jwenting?

Mr.UNOwen
Junior Poster
133 posts since Oct 2006
Reputation Points: 10
Solved Threads: 0
 

Post #2.

~s.o.s~
Failure as a human
Administrator
11,938 posts since Jun 2006
Reputation Points: 3,281
Solved Threads: 734
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You