From commits-return-29877-archive-asf-public=cust-asf.ponee.io@netbeans.apache.org Wed Apr 15 09:10:02 2020 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 8617118066D for ; Wed, 15 Apr 2020 11:10:02 +0200 (CEST) Received: (qmail 27603 invoked by uid 500); 15 Apr 2020 09:10:02 -0000 Mailing-List: contact commits-help@netbeans.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list commits@netbeans.apache.org Received: (qmail 27591 invoked by uid 99); 15 Apr 2020 09:10:01 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Apr 2020 09:10:01 +0000 Received: from jira-he-de.apache.org (static.172.67.40.188.clients.your-server.de [188.40.67.172]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id EA112E2E13 for ; Wed, 15 Apr 2020 09:10:00 +0000 (UTC) Received: from jira-he-de.apache.org (localhost.localdomain [127.0.0.1]) by jira-he-de.apache.org (ASF Mail Server at jira-he-de.apache.org) with ESMTP id 366E1780256 for ; Wed, 15 Apr 2020 09:10:00 +0000 (UTC) Date: Wed, 15 Apr 2020 09:10:00 +0000 (UTC) From: "Lucas Friedmann (Jira)" To: commits@netbeans.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (NETBEANS-4173) FlatLaf: Partial render selected BeanTreeView element MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/NETBEANS-4173?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lucas Friedmann updated NETBEANS-4173: -------------------------------------- Description: !FlatLaf_before_fix.png! Example code {code:java} import com.formdev.flatlaf.FlatLightLaf; import org.openide.explorer.ExplorerManager; import org.openide.explorer.view.BeanTreeView; import org.openide.nodes.AbstractNode; import org.openide.nodes.Children; import javax.swing.*; import java.awt.*; import java.awt.event.ActionEvent; public class SampleFrame extends JFrame implements ExplorerManager.Provider { private final ExplorerManager explorerManager = new ExplorerManager(); public SampleFrame() throws HeadlessException { setSize(300, 400); explorerManager.setRootContext(new SampleNode()); BeanTreeView beanTreeView = new BeanTreeView(); getContentPane().add(beanTreeView, BorderLayout.CENTER); } @Override public ExplorerManager getExplorerManager() { return explorerManager; } private static class SampleNode extends AbstractNode { public SampleNode() { super(Children.LEAF); setName("SampleNode"); } @Override public Action[] getActions(boolean context) { AbstractAction action = new AbstractAction() { @Override public void actionPerformed(ActionEvent e) { } }; action.putValue(Action.NAME, "Sample"); return new Action[]{action}; } } public static void main(String[] args) { SwingUtilities.invokeLater(() -> { FlatLightLaf.install(); SampleFrame frame = new SampleFrame(); frame.setDefaultCloseOperation(EXIT_ON_CLOSE); frame.setVisible(true); }); } } {code} was: !image.png|thumbnail! Example code {code} import com.formdev.flatlaf.FlatLightLaf; import org.openide.explorer.ExplorerManager; import org.openide.explorer.view.BeanTreeView; import org.openide.nodes.AbstractNode; import org.openide.nodes.Children; import javax.swing.*; import java.awt.*; import java.awt.event.ActionEvent; public class SampleFrame extends JFrame implements ExplorerManager.Provider { private final ExplorerManager explorerManager = new ExplorerManager(); public SampleFrame() throws HeadlessException { setSize(300, 400); explorerManager.setRootContext(new SampleNode()); BeanTreeView beanTreeView = new BeanTreeView(); getContentPane().add(beanTreeView, BorderLayout.CENTER); } @Override public ExplorerManager getExplorerManager() { return explorerManager; } private static class SampleNode extends AbstractNode { public SampleNode() { super(Children.LEAF); setName("SampleNode"); } @Override public Action[] getActions(boolean context) { AbstractAction action = new AbstractAction() { @Override public void actionPerformed(ActionEvent e) { } }; action.putValue(Action.NAME, "Sample"); return new Action[]{action}; } } public static void main(String[] args) { SwingUtilities.invokeLater(() -> { FlatLightLaf.install(); SampleFrame frame = new SampleFrame(); frame.setDefaultCloseOperation(EXIT_ON_CLOSE); frame.setVisible(true); }); } } {code} > FlatLaf: Partial render selected BeanTreeView element > ----------------------------------------------------- > > Key: NETBEANS-4173 > URL: https://issues.apache.org/jira/browse/NETBEANS-4173 > Project: NetBeans > Issue Type: Bug > Components: FlatLaf > Affects Versions: 11.2 > Reporter: Lucas Friedmann > Priority: Minor > Labels: pull-request-available > Attachments: FlatLaf_after_fix.png, FlatLaf_before_fix.png > > Time Spent: 10m > Remaining Estimate: 0h > > !FlatLaf_before_fix.png! > Example code > {code:java} > import com.formdev.flatlaf.FlatLightLaf; > import org.openide.explorer.ExplorerManager; > import org.openide.explorer.view.BeanTreeView; > import org.openide.nodes.AbstractNode; > import org.openide.nodes.Children; > import javax.swing.*; > import java.awt.*; > import java.awt.event.ActionEvent; > public class SampleFrame extends JFrame implements ExplorerManager.Provider { > private final ExplorerManager explorerManager = new ExplorerManager(); > public SampleFrame() throws HeadlessException { > setSize(300, 400); > explorerManager.setRootContext(new SampleNode()); > BeanTreeView beanTreeView = new BeanTreeView(); > getContentPane().add(beanTreeView, BorderLayout.CENTER); > } > @Override > public ExplorerManager getExplorerManager() { > return explorerManager; > } > private static class SampleNode extends AbstractNode { > public SampleNode() { > super(Children.LEAF); > setName("SampleNode"); > } > @Override > public Action[] getActions(boolean context) { > AbstractAction action = new AbstractAction() { > @Override > public void actionPerformed(ActionEvent e) { > } > }; > action.putValue(Action.NAME, "Sample"); > return new Action[]{action}; > } > } > public static void main(String[] args) { > SwingUtilities.invokeLater(() -> { > FlatLightLaf.install(); > SampleFrame frame = new SampleFrame(); > frame.setDefaultCloseOperation(EXIT_ON_CLOSE); > frame.setVisible(true); > }); > } > } > {code} -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org For additional commands, e-mail: commits-help@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists