Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Other Java > Java GUI
Java GUI Discussions specific to programming Java GUI.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Java GUI section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old June 10th, 2006, 05:35 PM
Registered User
Join Date: Jun 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Java Gui (Reload Class)

im making a game in java and i have come to a point where i need to reload the entire class frmMain which is impleting JFrame so in my basic program i'm calling my Main class(frmMain) and it does all the key listening and everything for that i have another class from the Main class it calls the key listening and it deoes certain things VK_UP VK_DOWN VK_RIGHT VK_LEFT is pressed and so on but when they are pressed at the end i want to reload the Main class in other words reload the gui again

i'm not using any painted objects so i assume repain() doesnt work the way the game works is it just a Grid panel with pictures and their locations are changed acording the key pressed and get saved in a file blah blah blah .. i wanted to know if can call the Main class again when this keys are pressed ( i have exit button in there too)

thank you for your help


Similar Threads
Thread Thread Starter Forum Replies Last Post
is there a useful java gui design tool? yulin11 Java GUI 4 September 2nd, 2008 10:20 PM
HTML GUI for java abhinayak Java GUI 1 February 1st, 2008 03:38 AM
change TextArea in GUI from another class jermsv1 Java GUI 0 October 28th, 2003 02:50 AM
Java GUI /Input linfakngiau BOOK: Beginning Java 2 0 October 19th, 2003 03:17 AM
posting data from JAVA GUI eforce Java GUI 0 July 16th, 2003 12:00 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.