Search:

Type: Posts; User: op117

Search: Search took 0.07 seconds.

  1. Replies
    21
    Views
    1,703

    Re: adding int when you press a jbutton

    no...
    (wish it was not the holidays for school but my teacher don't know this ether -shi-)

    and some of the code i cant change because of the editor > NetBeans <
  2. Replies
    21
    Views
    1,703

    Re: adding int when you press a jbutton

    package trivia;

    import java.awt.CardLayout;

    /**
    *
    * @author odis
    */
    public class MainJFrame extends javax.swing.JFrame {
    int CAL, OUT;
  3. Replies
    21
    Views
    1,703

    Re: adding int when you press a jbutton

    no the code is still the same, was in the entire code posted i think in post #2
  4. Replies
    21
    Views
    1,703

    Re: adding int when you press a jbutton

    all i see is img updates and how it's placed in a jframe.

    JLabel (Java 2 Platform SE v1.4.2)

    is this it?
    <CODE>
    public void setText(String text)
    <CODE>
    because that is what im using
  5. Replies
    21
    Views
    1,703

    Re: adding int when you press a jbutton

    im looking in the API and have not found the up method...
  6. Replies
    21
    Views
    1,703

    Re: adding int when you press a jbutton

    16751674JLabel (Java 2 Platform SE v1.4.2)

    yes, the problem is that is will run and display a 0 but not up date

    afew screen shots
  7. Replies
    21
    Views
    1,703

    Re: adding int when you press a jbutton

    jLabel4 = new javax.swing.JLabel(""+OUT);


    contentions to force string out put

    we are both a bit confused but we will figure it out...

    and i added a graf to try to help1673
  8. Replies
    21
    Views
    1,703

    Re: adding int when you press a jbutton

    ... a bit confused so i have to make a new method? so just trying to add and call the variable will not work like using a CLI based program? can you give a example of how its done?
  9. Replies
    21
    Views
    1,703

    Re: adding int when you press a jbutton

    if the right button is clicked it add +1 to the value thin displays it in the text jLabel to say 1 , 2 ,3 ,4 ect only if the right button is pressed
  10. Replies
    21
    Views
    1,703

    Re: adding int when you press a jbutton

    i meant to change the valble CAL to OUT for out put if this may help here is the entire code it runs but i need to fix this little bug be 4 i finish the program becouse it some what make the program,...
  11. Replies
    21
    Views
    1,703

    adding int when you press a jbutton

    im having trouble with passing a value be tween jbuttons in a card layout, im having the buttion add 1 to a value that is called in the outer jframe by a text filed




    // the values are called...
Results 1 to 11 of 11