harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey Petrenko (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-4796) [class][swing] JInternalFrame needs to call UpdateUI instead of Internal UpdateUIForFrame
Date Tue, 18 Sep 2007 08:39:44 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-4796?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Alexey Petrenko updated HARMONY-4796:
-------------------------------------

    Patch Info: [Patch Available]

> [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
>            Assignee: Alexey Petrenko
>         Attachments: HARMONY-4796-JInternalFrame.patch, Harmony.jpg, RI.jpg
>
>
>  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