Wanted

Moderators: None (Apply to moderate this forum)
Number of threads: 192
Number of posts: 348

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Better Java Graphics Posted by altosaxplayer8 on 8 May 2011 at 8:52 AM
One big problem with making games for computers is downloading them. So I figured a browser based game would be the best. However Java is one of the few programming languages that allow this. The only problem is that when you make a Java Applet the Graphics are not exactly the best. So i started research on whether or not it is possible to open up a JFrame by way of an applet. I have been very unsuccessful and would like to discuss whether there is any possible way to do this without extending the class as an Applet. Any input would be much appreciated.
-Daniel Berry
Report
Re: Better Java Graphics Posted by Josh Code on 12 Nov 2011 at 9:04 AM
It is impossible to open a JFrame with an applet. If you want to do any graphics, you can do it in the rectangular region of the applet on a page. The graphics can be basically as good as your skills allow them to be, though.

Computers are fast enough now that you could render some 3D graphics in an applet using purely CPU-based processing and keep a reasonable frame-rate. There are some ways to use OpenGL for 3D hardware acceleration in Java but have not tried hard at putting this in a Java applet.



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.