Search:

Type: Posts; User: op117

Page 1 of 2 1 2

Search: Search took 0.22 seconds.

  1. Replies
    21
    Views
    438

    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
    438

    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
    438

    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
    438

    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
    438

    Re: adding int when you press a jbutton

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

    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
    438

    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
    438

    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
    438

    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
    438

    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
    438

    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...
  12. Thread: cardlayout blues

    by op117
    Replies
    2
    Views
    456

    Re: cardlayout blues

    i have declared the value of 0 to ScoreQuiz
    now after the user hits the button it adds 1 to the value of ScoreQuiz, and moves to the next card in the set
    the next card has a label to display the...
  13. Thread: cardlayout blues

    by op117
    Replies
    2
    Views
    456

    cardlayout blues

    im trying to find out how to pass


    INT ScoreQuiz=0;

    after button is pressed that the code for it is


    ScoreQuiz++;
    ((CardLayout)(mainPanel.getLayout())).show(mainPanel, "card7");
  14. Replies
    19
    Views
    687

    Re: code set up question

    i will search the bowels of the internet and will post links latter on of what i find search time < 2 weeks probably of google pages ect...
  15. Replies
    19
    Views
    687

    Re: code set up question

    can a jTable manage like text files, creation, deletion, moding of the files? and reference the variables, or have it saved in all one file so the jTable can lode up with the content of the file in...
  16. Replies
    19
    Views
    687

    Re: code set up question

    jTable for the questions / answers can that store it efficiently? also can it be called from another part of the application, was doing some research and found little a bout jTables.
  17. Replies
    19
    Views
    687

    Re: code set up question

    if you could youse a jTable wood it be a possible solution? How wood that work?
  18. Replies
    19
    Views
    687

    Re: code set up question

    here is a explanation i found for this.
    java - How do I access the content of folders inside a jar file? - Stack Overflow


    import java.util.*;
    import java.net.*;
    import java.util.jar.*;
    class...
  19. Replies
    19
    Views
    687

    Re: code set up question

    Your approche sounds nice, also I'm making this for a compintition, and will latter realse this to teachers for their class room reviews as free were. How wood a jTable to create and manage all the...
  20. Replies
    19
    Views
    687

    Re: code set up question

    whats the best set up for the text files 5 of them like this? answers1.txt, answers2.txt, answers3.txt, answers4.txt, questions.txt, or run it all in the same file?
  21. Replies
    19
    Views
    687

    code set up question

    making a portable text based trivia game, whats the best way for the question and answer system set up. TXT files, DB., ECT. also the PC that will run this will not have access to any network...
  22. Replies
    5
    Views
    1,002

    Re: awt cardlayout help

    this is what im converting to card layout..1410 in a .zip file site up loader wood not let it be any outer way...

    there is all the .java files note no logic is done trying to get GUI working first...
  23. Replies
    5
    Views
    1,002

    Re: awt cardlayout help

    for netbeans it's different due to the code generation ect. cant find any thing on this for 7.2 version that is were im having trouble.
  24. Replies
    5
    Views
    1,002

    awt cardlayout help

    there is no good tourtals online for this here is my code + errors



    private void jButton5ActionPerformed(java.awt.event.ActionEvent evt) {
    CardLayout card = (CardLayout)...
  25. Re: need help with the code will not close window buts opens the right window

    will try the GUI resigned did not know a bout that. will look in to it thinks.
Results 1 to 25 of 27
Page 1 of 2 1 2