Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / November 2003

Tip: Looking for answers? Try searching our database.

setting an int, but how to aproach..

Thread view: 
Jimbob - 23 Nov 2003 21:04 GMT
Hi there, just wondering, im using 2 classes currently, the one class(open)
has a default declaration, int door = 4;

this int controls how my program reacts, and in the one instance, how it
draws the shape of a door if you hadnt guessed.. I mean, later in my program
in the same (open) class, i do:
int [][] opening = new int[door][door];

Other things in my program also use this int.

In my other class(controller) ive got a jComboBox, what i wish to do is be
able to change the int value in the open class, then reload it.

My program currently loads up, and loads the open class onto a
jPanel(theMain) using this set int. From the combo box i wish it to change
the int value, and reload that class onto theMain panel, using the new value
if you get me. I seem to have tried everything, cannot work out what needs
to be done. Ive tried lots of things such as validate(), repaint() and such,
but with no luck. (p.s - using an applet)

Any ideas? Cheers
Jimbob - 24 Nov 2003 07:10 GMT
> Hi there, just wondering, im using 2 classes currently, the one class(open)
> has a default declaration, int door = 4;
[quoted text clipped - 17 lines]
>
> Any ideas? Cheers

Sods law, i ask the question, i fix it.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.