Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Tips for non-Applet Java game needed

Posted on 2001-06-16
Medium Priority
Last Modified: 2012-06-27
I'm trying to my first game using java which I hope will eventually a cool Final Fantasy style RPG game. I'm not interested in making an Applet at all right now, I want this thing to be able to be as powerfull as I can get using java. So far I've been using a threaded JFrame object as my main screen but whenever I draw images at possition (0,0) it gets cut off by the title bar. So my question is, is there any way to get rid of the title bar and stuff from a JFrame object, or is there a better or different Top-level class that just has a drawing surface like an applet but not the annoying title bar and close box? Also if anybody can give any pointers or links to building a decent non-applet game with java it would help a lot and I'll raise the points for this question thanks a lot.
Question by:kainhart
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
  • 2
  • +3
LVL 15

Expert Comment

ID: 6197861
Well most tutorials are based around applets - but the key thing is that they teach you the key essentials - which apply even if you are not using an applet.

Some links for you:




Author Comment

ID: 6198302
Thanks for the links, I already found and read through the first site on my own though. I'm raising the points because I wan't to get an definite answer quickly otherwise I will have to sweat out using Directx and C++, yuck.

Expert Comment

ID: 6198620
There is no way of getting rid of the title bar, it would be easier if you just try to solve the drawing problem another way. Also have you considered Java3D?

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

LVL 92

Expert Comment

ID: 6199121
> or is there a better or different Top-level

Try JWindow.

> links to building a decent non-applet game

Also thought I'd mention, that any applet related references will still my mostly relevant for building apps. Applets and applications really just run inside a different context. The actual games development would not differ greatly. In fact in many case it's only a few extra lines of code to get an applet to run as an application and visa versa.


Expert Comment

ID: 6199778

I'm just interested in what you're trying to do, and if you're already thinking C++ and DirectX why not give Java3D a shot?

Try this link:

Have fun and good luck!


Author Comment

ID: 6200421
The only reason I didn't want to go with Java3D right away is because I plan on making a very 2D style game, like the old role playing games for Nintendo (eg. Dragon Warrior, Final Fantasy, Ultima ...).

I know you can do 2D stuff with 3D if you keep a constant coordinate possition for the z axis but I wanted to make my first game as simple as possible because I tend to dive into projects which are too much for me to handle on my own. The main problem I have with DirectX is that there is too much lingo and low-level stuff which I don't really care for as a begginer game programmer. I've thought about writing classes to abstract Directx 8 stuff so that I could use my own logic to initialize the hardware and do everything with with graphics and sound. I don't much at all about Java3D but from what I've read, it would only add more complexity and possibly a performance decrease for use with a 2D game. My Idea is to get my feel wet with a little RPG in Java and then when the Gaming API comes out in the Java SDK 1.4 release I will probably port whatever abstractions I've made for my first game to so that it uses the new API.

If I'm getting the wrong Idea about Java3D let me know, Otherwise I think my plan will work by using a JWindow which seems to lack a title bar. I'll test it out tomarrow and if there is no problem using JWindow I will give the user named "objects" credit for mentioning the JWindow which I actually found out about before he/she mentioned it unless somebody can post a better solution to my game programming stratagy.

objects, About using an Applet for making an application or the small amount of code you were talking about to switch between. I figured that there was probably a way to use an Applet for an application and to just call the inherited methods of Applet from a different start up class but I also read somewhere about how applets automatically change any image to 256 color mode and that would not be good for my graphics. Plus I figured that making extra method calls would slow things down a bit.

Expert Comment

ID: 6200931
hi !
think this might help u too....


this website shows how to make ur java apps to become fullscreen app :)

hope it helps...


Author Comment

ID: 6201139
Yeah thats part of the new API that I was talking about, but if you look closely it says it it will be available "Java 2 Standard Edition, version 1.4".

Expert Comment

ID: 6201209
its one of the new features that jdk provided...(version 1.4)....
why not download it and have a try ?
anyway, it just a suggestion....not solution...:)

Author Comment

ID: 6203451
where can I download it, the only version I see to download is 1.3. The version I have on my computer is "jdk1.3.0_02" stated on my JDK directory. I've looked all around and could not find any information about the release of 1.4, and I could not find where to download it, plus all of the classes that are talked about it that tutorial are not it the API documentation yet. So, if you know where to find the updated SDK please let me know because that would be a perfect solution to by problem.
LVL 92

Accepted Solution

objects earned 600 total points
ID: 6204335
Hidden away, I think because it's still in beta:

Enjoy :)

Author Comment

ID: 6204435
Thanks, I don't know how you found it but thanks. Thanks to everybody else who helped out and gave me some links. I would give you all some points for this if I could.
LVL 92

Expert Comment

ID: 6204448
Thanks for the points :)

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
Suggested Courses

719 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