[ https://issues.apache.org/jira/browse/HARMONY-4796?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andrey Pavlenko updated HARMONY-4796:
-------------------------------------
Attachment: HARMONY-4796-JInternalFrame.patch
Sorry, Alexey, I'd attached old patch. Please try this one.
> [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-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.
|