Search:

Type: Posts; User: copeg

Search: Search took 0.07 seconds.

  1. Re: revalidate() JPanel outside of class it resides

    To break the problem down, the following code demonstates (at least hopefully)


    import java.awt.event.*;
    import javax.swing.*;

    public class Test extends JFrame implements ActionListener{
    ...
  2. Re: revalidate() JPanel outside of class it resides

    The following lines...



    JLabel totalLabel = new JLabel ();
    Total.add (totalLabel);

    ...create a local JLabel named totalLabel and does not use your static variable, so every time you try to...
Results 1 to 2 of 2