making the JFrame a little more gamelike

Hey guys,

I’m looking for a way to make my game look a little more … awesome, to use a technical term. I would like to know if there are any ways to maximize my JFrame window. I have already tried the EXTENDEDSTATE code, as well as the graphicsenvironment code. Both are pretty neat, but do not quite fit what I am looking for. The former option still has the start menu underneath, while the latter is not actually maximized. Is there a way to get my cake and eat it too?

I am not sure what exactly you are after… are you wanting your game to be fullscreen? or maybe remove the default frame decorations?

Yeah, sorry about that. It was like 2 in the morning when I posted, and I was pretty out of it.

Yes, i would like the game to be fullscreen. I would also like for the taskbar and start menu button to be covered. If at all possible, I would love to get rid of the frame decorations. Help would be appreciated.

Read http://java.sun.com/docs/books/tutorial/extra/fullscreen/index.html .

The setUndecorated method can get rid of decorations.

You should always check the Java API and/or the Java Tutorial before you ask these questions.

If you don’t want to use full-screen exclusive mode, I’ve found that an undecorated and maximized window works almost as well. The only problem is that you have to adjust your game’s appearance to match whatever resolution the screen is in.

Thanks.

I’m a college student. I barely have time to program, let alone sift through large sets of documentation. That’s why I ask for help from people who obviously have more time than I do.

Google is even less effort than posting in a forum :wink:

Googles highest hit for “java fullscreen” is http://java.sun.com/docs/books/tutorial/extra/fullscreen/index.html - The Sun tutorial on everything fullscreen!

The way you wrote that doesn’t give a good impression of yourself. Although your intentions are ok, your wording sounds like you’re just a lazy guy who wants people to do work for you. Now I’m not saying you are, I’m just pointing out the impression your wording gave to me.

Here’s a better way of saying the same thing:

“That’s a nice link but is there anything that answers the question that isn’t so long and gets straight to the point to follow and then I can figure out the rest from there?”

… or something of that nature :slight_smile:

[quote]I’m a college student. I barely have time to program, let alone sift through large sets of documentation. That’s why I ask for help from people who obviously have more time than I do.
[/quote]
Ouch! I think you just scored -5 points there.

Everybody note that his/her account has been deleted; the person was probably just trying to cause trouble or lacks social skills and decided to terminate their account