Re: changing an int value across classes,kind of working :s

From: Dave (Davel*removethistosendemail*_at_superstar.demon.nl)
Date: 11/15/03


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
>
>
>



Relevant Pages

  • changing an int value across classes,kind of working :s
    ... base and gui. ... the user selects index2 of the comboBox and it changes the int ... yet it just doenst work. ...
    (comp.lang.java.gui)
  • Re: JMF?
    ... Having said that, what I want is an audio player class without GUI that will play common audio formats and have basic methods for stuff like vol, start, stop etc ... This will play .au, .aiff and some .wav, depending on the actual data format. ... int frameRate = af.getFrameRate; ... Unlimited Access, Anonymous Accounts, Uncensored Broadband Access ...
    (comp.lang.java.programmer)
  • Re: JMF?
    ... Having said that, what I want is an audio player class without GUI that will play common audio formats and have basic methods for stuff like vol, start, stop etc ... int frameRate = af.getFrameRate; ... Any way of extending it to mp3, ...
    (comp.lang.java.programmer)
  • Re: ListItem not available in win forms
    ... You can put anything in a combobox, be it a string, int, float or a custom ... The combobox will call the ToString method of the object to find out ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Sending CB_GETDROPPEDSTATE to a Combobox always returns zero
    ... ComboBox is already opened or not. ... const int CB_GETDROPPEDSTATE = 0x157; ... public static extern IntPtr SendMessage(IntPtr hWnd, int Msg, int wParam, ... IntPtr tmp = GetCapture; ...
    (microsoft.public.dotnet.framework.compactframework)