harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chunrong Lai (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-4796) [class][swing] JInternalFrame needs to call UpdateUI instead of Internal UpdateUIForFrame
Date Fri, 14 Sep 2007 08:51:32 GMT
[class][swing] JInternalFrame needs to call UpdateUI instead of Internal UpdateUIForFrame
-----------------------------------------------------------------------------------------

                 Key: HARMONY-4796
                 URL: https://issues.apache.org/jira/browse/HARMONY-4796
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
         Environment: Win32
            Reporter: Chunrong Lai



 Below is the reproducer.

import javax.swing.*;
import javax.swing.plaf.*;
import java.util.*;

public class MyIFrame extends JFrame{
   MyInternalFrame iFrame = new MyInternalFrame("InterNal Frame");
   
   public MyIFrame(){
      super("MyIFrame");
      getContentPane().add(iFrame);
      setSize(50,120);
      show();
   }

   public static void main(String[] args){
      new MyIFrame();
   }
}

class MyInternalFrame extends JInternalFrame {
   static JTextArea label = new JTextArea("This is really a multiLine Label");
   
   public MyInternalFrame(String s) {
     super(s);
     getContentPane().add(label);
     setSize(40,100);
     show();
   }

   public void updateUI(){
     super.updateUI();
     label.setLineWrap(true);
     label.setWrapStyleWord(true);
     label.setHighlighter(null);
     label.setEditable(false);
     LookAndFeel.installBorder(label,"Label.border");
     LookAndFeel.installColorsAndFont(label,"Label.background",
                "Label.foreground", "Label.font");
   }
}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message