Search:

Type: Posts; User: Neacel

Search: Search took 0.24 seconds.

  1. Replies
    5
    Views
    1,783

    [SOLVED] Re: Need help with updating label

    I got it working... i added

    public JLabel label1;

    then modified the JLabel Method and actionPerformed to include label1.
  2. Replies
    5
    Views
    1,783

    [SOLVED] Re: Need help with updating label

    public JButton button(){
    JButton button = new JButton();

    button.setPreferredSize(new Dimension(20,20));
    button.addActionListener(new ActionListener(){
    ...
  3. Replies
    5
    Views
    1,783

    [SOLVED] Re: Need help with updating label

    Could you give me some example code on how to do this?
  4. Replies
    5
    Views
    1,783

    [SOLVED] Need help with updating label

    I am trying to update the text on the label through the use of the actionListener, however no matter what i do i can't get it to work.
    Here is the relevent code

    public JPanel panel(){
    ...
  5. Thread: Hi

    by Neacel
    Replies
    1
    Views
    876

    Hi

    Hello everyone, i only been doing java for a couple weeks... so i will be grateful for any assistance you provide me. :)
Results 1 to 5 of 5