Search:

Type: Posts; User: dubs4sam

Page 1 of 3 1 2 3

Search: Search took 0.29 seconds.

  1. Thread: JPanel color

    by dubs4sam
    Replies
    4
    Views
    65

    [SOLVED] Re: JPanel color

    i got it sorted i had a line of code in my reset method that was contradicting what i was saying thanks
  2. Thread: JPanel color

    by dubs4sam
    Replies
    4
    Views
    65

    [SOLVED] Re: JPanel color

    when i first start my GUI its exactly how i want it but when i click reset i want the buttons to stay the default color and not go red

    --- Update ---

    i have tried reaplying color as null in the...
  3. Thread: JPanel color

    by dubs4sam
    Replies
    4
    Views
    65

    [SOLVED] JPanel color

    I have a Jpanel with JButtons on the panel is it possible to change the background color of the pannel but leave the JButtons thr default color
  4. Thread: Java GUI

    by dubs4sam
    Replies
    9
    Views
    148

    Re: Java GUI

    i dont know what that is
  5. Thread: Java GUI

    by dubs4sam
    Replies
    9
    Views
    148

    Re: Java GUI

    java
  6. Replies
    8
    Views
    89

    Re: Array index out of bounds

    I have the Array of buttons Button1 etc

    then i have the for loop that cycles through the ButtonList and adds the to the ButtonPanel i want the Buttons from the list to be added to the button...
  7. Thread: Java GUI

    by dubs4sam
    Replies
    9
    Views
    148

    Re: Java GUI

    Using Widows 7 64 bit
    wirting code in text pad
    and compililg and running it through text pad aswell
  8. Replies
    8
    Views
    89

    Re: Array index out of bounds

    from the code that is there am i far off getting the buttons to appear randomly ie the pot of gold button and other buttons would be in diffrent places each time
    ?
  9. Replies
    8
    Views
    89

    Re: Array index out of bounds

    My program compiles butin the cmd window i see


    Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 9
    at FindThePotofGold.<init>(FindThePotofGold.java:90)
    at...
  10. Replies
    8
    Views
    89

    Array index out of bounds

    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.ActionListener;
    import java.awt.event.ActionEvent;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import...
  11. Replies
    15
    Views
    135

    Re: change Jbutton icon when clicked

    Thanks forgot to delete one of the thanks for the help much appreciated
  12. Replies
    15
    Views
    135

    Re: change Jbutton icon when clicked

    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.ActionListener;
    import java.awt.event.ActionEvent;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import...
  13. Thread: Java GUI

    by dubs4sam
    Replies
    9
    Views
    148

    Java GUI

    When running a Java GUI is it possible to stop black system window from opening as we'll

    Thanks
  14. Replies
    15
    Views
    135

    Re: change Jbutton icon when clicked

    i just cant get my head around it
    thanks anyways ill try it again later
  15. Replies
    15
    Views
    135

    Re: change Jbutton icon when clicked

    2) assign it the value from getSource() (requires a cast)
  16. Replies
    15
    Views
    135

    Re: change Jbutton icon when clicked

    im not 100% sure how to do that
  17. Replies
    15
    Views
    135

    Re: change Jbutton icon when clicked

    if(e.getSource().equals(Button1.getButton1()){
    Button1.setIcon(new ImageIcon("leprechaun.jpg"));
    }


    Somthing like that that gives me an error aswell am i on the right track though ?
  18. Replies
    15
    Views
    135

    Re: change Jbutton icon when clicked

    C:\Users\Andrew\Desktop\GUI programing\Assignment Pot of Gold\FindThePotofGold.java:113: error: cannot find symbol
    Button1.setIcon(new ImageIcon("leprechaun.jpg"));
    ^
    symbol: variable...
  19. Replies
    15
    Views
    135

    change Jbutton icon when clicked

    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.ActionListener;
    import java.awt.event.ActionEvent;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import...
  20. Replies
    13
    Views
    181

    Re: GUI JCombo BOx with updating Jlabel

    Got it thanks very much for you help appreciate it
  21. Replies
    13
    Views
    181

    Re: GUI JCombo BOx with updating Jlabel

    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.ActionListener;
    import java.awt.event.ActionEvent;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import...
  22. Replies
    13
    Views
    181

    Re: GUI JCombo BOx with updating Jlabel

    That throws up a diffrent error




    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.ActionListener;
    import java.awt.event.ActionEvent;
    import java.awt.*;
  23. Replies
    13
    Views
    181

    Re: GUI JCombo BOx with updating Jlabel

    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.ActionListener;
    import java.awt.event.ActionEvent;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import...
  24. Replies
    13
    Views
    181

    Re: GUI JCombo BOx with updating Jlabel

    thats what im having the issue with i dont know how to do that i was trying to use somthing like



    selection.setText(choiceOptionList.getText());




    but i do t think this will work
  25. Replies
    13
    Views
    181

    Re: GUI JCombo BOx with updating Jlabel

    I would have to refrence the array and add an event handler not rellay sure how to do it though
Results 1 to 25 of 52
Page 1 of 3 1 2 3