Results 1 to 5 of 5
Thread: Thread Frames, and Graphics
- 09-29-2009, 01:55 AM #1
Member
- Join Date
- Sep 2009
- Posts
- 41
- Rep Power
- 0
Thread Frames, and Graphics
Until now ive only done applets, now Im trying to create Applications with frames. I am getting really frustrated with it. I want it to have a main frame that has all the graphics which need to be updated several times a second. Im confused where i put my thread and my paint(g) method. right now i have my main class with my static main function and another class that extends frame for the frames. Where do i Put the Thread and where do i Draw my graphics??
-
use Swing (JFrames, JPanels), not AWT (Frames, Panels), and go through the Sun Swing tutorials which will show you how to paint. Animation can be done simply with a Swing Timer (again have a look at the tutorials -- it's all there). Much luck!
- 09-29-2009, 04:17 AM #3
Member
- Join Date
- Sep 2009
- Posts
- 41
- Rep Power
- 0
Alright looks like Im going to have to buckle down and learn Swing. generally speaking, Is awt better for simple applets and swing better for more complex applications? (i Know its not that simple, i just didnt even know about swing until i was comfortable with awt.)
- 09-29-2009, 04:25 AM #4
Member
- Join Date
- Sep 2009
- Posts
- 41
- Rep Power
- 0
ahhhhh i did some research, I learned awt, swt and swing are just different versions of the GUI, so i really should switch to the latest version! (swing of course)
Im going to try NetBeans instead of eclipse too, any tips?
- 09-29-2009, 08:40 AM #5
Senior Member
- Join Date
- Aug 2009
- Posts
- 2,388
- Rep Power
- 6
Similar Threads
-
navigation b/w frames
By imrankhan in forum AWT / SwingReplies: 3Last Post: 03-19-2012, 12:25 PM -
Frames, messageDialog vs Applets
By mgm2010 in forum New To JavaReplies: 2Last Post: 08-31-2009, 05:31 AM -
panes, frames and ddm's :|
By skatefreak in forum New To JavaReplies: 1Last Post: 08-09-2009, 10:21 AM -
Help regarding Frames
By ramesh.8189 in forum AWT / SwingReplies: 14Last Post: 02-15-2009, 08:12 AM -
Grid layout frames GUI
By fritz1474 in forum AWT / SwingReplies: 1Last Post: 10-15-2008, 02:04 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks