|
-
November 18th, 2003, 08:17 AM
#1
changing an int across a class :S
Hi there, im having real problems with something in my application, as ive never done this before. Ive tried looking for examples but cant find any really. Searched the API, also with no luck.
Anyway, heres the problem.
Ive got 2 classes, base and gui
In base, at the moment ive got int size = 2;
this effects all the other sizes within the base class.
In the gui, via a combo box, ive got base.size = 8;
you should be able to see what im trying to do. base is just a panel, with code in, which is added to the mainPanel of the gui class..
Ive tried removing the panel, setting base.size = 8; and then re-adding, ive tried repaint() ive tried pack..
Nothing seems to work, any ideas as im completely stuck
Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|