Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 4774 invoked from network); 18 Sep 2007 08:40:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Sep 2007 08:40:06 -0000 Received: (qmail 40631 invoked by uid 500); 18 Sep 2007 08:39:58 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 40544 invoked by uid 500); 18 Sep 2007 08:39:58 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 40529 invoked by uid 99); 18 Sep 2007 08:39:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Sep 2007 01:39:57 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Sep 2007 08:40:04 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4604371420B for ; Tue, 18 Sep 2007 01:39:44 -0700 (PDT) Message-ID: <7788575.1190104784282.JavaMail.jira@brutus> Date: Tue, 18 Sep 2007 01:39:44 -0700 (PDT) From: "Alexey Petrenko (JIRA)" To: commits@harmony.apache.org Subject: [jira] Updated: (HARMONY-4796) [class][swing] JInternalFrame needs to call UpdateUI instead of Internal UpdateUIForFrame In-Reply-To: <15339598.1189759892461.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ 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.