Search:

Type: Posts; User: apchar

Search: Search took 0.24 seconds.

  1. Re: can't add to JPanel after removeAll() is triggered by another swing component

    for the archives: correct code is:


    private void changeLabel()
    {
    System.out.println("language = " + language);

    jPanel1.removeAll();

    jPanel1.add(new JLabel(language), "Center");
  2. Re: can't add to JPanel after removeAll() is triggered by another swing component

    Junky, as I mentioned, the actual app is more complicated. I thought it prudent to boil it down to as little as possible.
  3. can't add to JPanel after removeAll() is triggered by another swing component

    Consider the bit of code below. It's a much simplified version of my real app.
    In jPanel1 is a single label. In jPanel2 is a single button.
    The button in jPanel2 is supposed to wipe clear (with...
Results 1 to 3 of 3