Re: changing an int value across classes,kind of working :s
From: Dave (Davel*removethistosendemail*_at_superstar.demon.nl)
Date: 11/15/03
- Next message: ak: "Re: Modal JDialog Components not Painting"
- Previous message: Dave: "Manipulating the size of the track and knob in a scrollbar of a JTable"
- In reply to: Dilbert: "changing an int value across classes,kind of working :s"
- Next in thread: kevinc: "Re: changing an int value across classes,kind of working :s"
- Reply: kevinc: "Re: changing an int value across classes,kind of working :s"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 15 Nov 2003 20:39:19 +0100
Have you checked in the debugger if the value of your class attribute 'size'
is changed to 8 when it should? If this goes allright, the problem must be
somewhere else but I have insufficient information about what should happen
when it gets assigned value 8 to be of any help.
Regards,
Dave
---------------------------------------------------------------------
Computers, you can't live with them and you can't live without them.
---------------------------------------------------------------------
"Dilbert" <HaveNoSpamMail@memail.com> wrote in message
news:P22tb.90$FC6.70@newsfep4-winn.server.ntli.net...
> Hi there, im using 2 classes for my program. base and gui.
>
> in base, i have set: int size = 5;
>
> and in gui, with the use of a comboBox, i have:
>
> if (jComboBox.getSelectedIndex()==2 ) {
>
> base.size = 8;
>
> }
>
> this compiles fine,and also runs fine.
>
>
>
> The int size ... in my base class effects the way the program runs, and
must
> have a start value.
>
> The idea is, the user selects index2 of the comboBox and it changes the
int
> size value from 5 - 8. If i use the comboBox at index2, no errors turn up,
> yet it just doenst work.
>
> Ive tried repaint(); but this didnt work either, anyone got any ideas?
>
> Cheers
>
>
>
- Next message: ak: "Re: Modal JDialog Components not Painting"
- Previous message: Dave: "Manipulating the size of the track and knob in a scrollbar of a JTable"
- In reply to: Dilbert: "changing an int value across classes,kind of working :s"
- Next in thread: kevinc: "Re: changing an int value across classes,kind of working :s"
- Reply: kevinc: "Re: changing an int value across classes,kind of working :s"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|