[jira] [Updated] (NETBEANS-4173) FlatLaf: Partial render selected BeanTreeView element
[ https://issues.apache.org/jira/browse/NETBEANS-4173?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lucas Friedmann updated NETBEANS-4173: -- Description: When using FlatLaf Look and Feel, incorrect rendering of tree item under the context menu in the BeanTreeView component occurs. This problem can be easily reproduced by the following simple example. {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} Netbeans Services Window !image-2020-04-16-13-16-17-044.png! was: When using FlatLaf Look and Feel, incorrect rendering of tree item under the context menu in the BeanTreeView component occurs. This problem can be easily reproduced by the following simple example. {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} Netbeans Services Window before fix !image-2020-04-16-13-16-17-044.png! After my fix, the render of the tree item becomes correct !Netbeans Services Windows after fix_FlatLaf.png! > 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: Netbeans Services Windows after fix_FlatLaf.png, > image-2020-04-16-13-16-17-044.png > > Time Spent: 1.5h > Remaining Estimate: 0h > > When using FlatLaf Look and Feel, incorrect rendering of tree item under the > context menu in the BeanTreeView component occurs. This problem can be easily > reproduced by the follo
[jira] [Updated] (NETBEANS-4173) FlatLaf: Partial render selected BeanTreeView element
[ https://issues.apache.org/jira/browse/NETBEANS-4173?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lucas Friedmann updated NETBEANS-4173: -- External issue URL: https://github.com/apache/netbeans/pull/2094 (was: https://github.com/apache/netbeans/pull/2079) > 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: Netbeans Services Windows after fix_FlatLaf.png, > image-2020-04-16-13-16-17-044.png > > Time Spent: 1.5h > Remaining Estimate: 0h > > When using FlatLaf Look and Feel, incorrect rendering of tree item under the > context menu in the BeanTreeView component occurs. This problem can be easily > reproduced by the following simple example. > {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} > Netbeans Services Window > !image-2020-04-16-13-16-17-044.png! > -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Updated] (NETBEANS-4173) FlatLaf: Partial render selected BeanTreeView element
[ https://issues.apache.org/jira/browse/NETBEANS-4173?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lucas Friedmann updated NETBEANS-4173: -- Attachment: (was: Netbeans Services Windows after fix_FlatLaf.png) > 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: Netbeans Services Windows after fix_FlatLaf.png, > image-2020-04-16-13-16-17-044.png > > Time Spent: 0.5h > Remaining Estimate: 0h > > When using FlatLaf Look and Feel, incorrect rendering of tree item under the > context menu in the BeanTreeView component occurs. This problem can be easily > reproduced by the following simple example. > {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} > Netbeans Services Window before fix > !image-2020-04-16-13-16-17-044.png! > After my fix, the render of the tree item becomes correct > !Netbeans Services Windows after fix_FlatLaf.png! -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Updated] (NETBEANS-4173) FlatLaf: Partial render selected BeanTreeView element
[ https://issues.apache.org/jira/browse/NETBEANS-4173?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lucas Friedmann updated NETBEANS-4173: -- Attachment: (was: FlatLaf_before_fix.png) > 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: Netbeans Services Windows after fix_FlatLaf.png, > image-2020-04-16-13-16-17-044.png > > Time Spent: 0.5h > Remaining Estimate: 0h > > When using FlatLaf Look and Feel, incorrect rendering of tree item under the > context menu in the BeanTreeView component occurs. This problem can be easily > reproduced by the following simple example. > {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} > Netbeans Services Window before fix > !image-2020-04-16-13-16-17-044.png! > After my fix, the render of the tree item becomes correct > !Netbeans Services Windows after fix_FlatLaf.png! -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Updated] (NETBEANS-4173) FlatLaf: Partial render selected BeanTreeView element
[ https://issues.apache.org/jira/browse/NETBEANS-4173?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lucas Friedmann updated NETBEANS-4173: -- Description: When using FlatLaf Look and Feel, incorrect rendering of tree item under the context menu in the BeanTreeView component occurs. This problem can be easily reproduced by the following simple example. {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} Netbeans Services Window before fix !image-2020-04-16-13-16-17-044.png! After my fix, the render of the tree item becomes correct !Netbeans Services Windows after fix_FlatLaf.png! was: When using FlatLaf Look and Feel, incorrect rendering of tree item under the context menu in the BeanTreeView component occurs. This problem can be easily reproduced by the following simple example. {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} Netbeans Services Window before fix !image-2020-04-16-13-16-17-044.png! After my fix, the render of the tree item becomes correct > 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: Netbeans Services Windows after fix_FlatLaf.png, > image-2020-04-16-13-16-17-044.png > > Time Spent: 0.5h > Remaining Estimate: 0h > > When using FlatLaf Look and Feel, incorrect rendering of tree item under the > context menu in the BeanTreeView c
[jira] [Updated] (NETBEANS-4173) FlatLaf: Partial render selected BeanTreeView element
[ https://issues.apache.org/jira/browse/NETBEANS-4173?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lucas Friedmann updated NETBEANS-4173: -- Attachment: (was: FlatLaf_after_fix.png) > 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: Netbeans Services Windows after fix_FlatLaf.png, > image-2020-04-16-13-16-17-044.png > > Time Spent: 0.5h > Remaining Estimate: 0h > > When using FlatLaf Look and Feel, incorrect rendering of tree item under the > context menu in the BeanTreeView component occurs. This problem can be easily > reproduced by the following simple example. > {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} > Netbeans Services Window before fix > !image-2020-04-16-13-16-17-044.png! > After my fix, the render of the tree item becomes correct > !Netbeans Services Windows after fix_FlatLaf.png! -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Updated] (NETBEANS-4173) FlatLaf: Partial render selected BeanTreeView element
[ https://issues.apache.org/jira/browse/NETBEANS-4173?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lucas Friedmann updated NETBEANS-4173: -- Description: When using FlatLaf Look and Feel, incorrect rendering of tree item under the context menu in the BeanTreeView component occurs. This problem can be easily reproduced by the following simple example. {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} Netbeans Services Window before fix !image-2020-04-16-13-16-17-044.png! After my fix, the render of the tree item becomes correct was: When using FlatLaf Look and Feel, incorrect rendering of tree item under the context menu in the BeanTreeView component occurs. This problem can be easily reproduced by the following simple example. {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} The result will be the following !FlatLaf_before_fix.png! After my fix, the render of the tree item becomes correct !FlatLaf_after_fix.png! > 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, Netbeans > Services Windows after fix_FlatLaf.png, Netbeans Services Windows after > fix_FlatLaf.png, image-2020-04-16-13-16-17-044.png > > Time Spent: 0.5h > Remaining Estimate: 0h > > When using FlatLaf Look and Feel, incorrect renderi
[jira] [Updated] (NETBEANS-4173) FlatLaf: Partial render selected BeanTreeView element
[ https://issues.apache.org/jira/browse/NETBEANS-4173?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lucas Friedmann updated NETBEANS-4173: -- Attachment: Netbeans Services Windows after fix_FlatLaf.png > 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, Netbeans > Services Windows after fix_FlatLaf.png, Netbeans Services Windows after > fix_FlatLaf.png, image-2020-04-16-13-16-17-044.png > > Time Spent: 0.5h > Remaining Estimate: 0h > > When using FlatLaf Look and Feel, incorrect rendering of tree item under the > context menu in the BeanTreeView component occurs. This problem can be easily > reproduced by the following simple example. > {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} > The result will be the following > !FlatLaf_before_fix.png! > After my fix, the render of the tree item becomes correct > !FlatLaf_after_fix.png! -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Updated] (NETBEANS-4173) FlatLaf: Partial render selected BeanTreeView element
[ https://issues.apache.org/jira/browse/NETBEANS-4173?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lucas Friedmann updated NETBEANS-4173: -- Attachment: image-2020-04-16-13-16-17-044.png > 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, Netbeans > Services Windows after fix_FlatLaf.png, Netbeans Services Windows after > fix_FlatLaf.png, image-2020-04-16-13-16-17-044.png > > Time Spent: 0.5h > Remaining Estimate: 0h > > When using FlatLaf Look and Feel, incorrect rendering of tree item under the > context menu in the BeanTreeView component occurs. This problem can be easily > reproduced by the following simple example. > {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} > The result will be the following > !FlatLaf_before_fix.png! > After my fix, the render of the tree item becomes correct > !FlatLaf_after_fix.png! -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Updated] (NETBEANS-4173) FlatLaf: Partial render selected BeanTreeView element
[ https://issues.apache.org/jira/browse/NETBEANS-4173?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lucas Friedmann updated NETBEANS-4173: -- Attachment: Netbeans Services Windows after fix_FlatLaf.png > 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, Netbeans > Services Windows after fix_FlatLaf.png, Netbeans Services Windows after > fix_FlatLaf.png, image-2020-04-16-13-16-17-044.png > > Time Spent: 0.5h > Remaining Estimate: 0h > > When using FlatLaf Look and Feel, incorrect rendering of tree item under the > context menu in the BeanTreeView component occurs. This problem can be easily > reproduced by the following simple example. > {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} > The result will be the following > !FlatLaf_before_fix.png! > After my fix, the render of the tree item becomes correct > !FlatLaf_after_fix.png! -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Updated] (NETBEANS-4173) FlatLaf: Partial render selected BeanTreeView element
[ https://issues.apache.org/jira/browse/NETBEANS-4173?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lucas Friedmann updated NETBEANS-4173: -- Description: When using FlatLaf Look and Feel, incorrect rendering of tree item under the context menu in the BeanTreeView component occurs. This problem can be easily reproduced by the following simple example. {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} The result will be the following !FlatLaf_before_fix.png! After my fix, the render of the tree item becomes correct !FlatLaf_after_fix.png! was: !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} > 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: 0.5h > Remaining Estimate: 0h > > When using FlatLaf Look and Feel, incorrect rendering of tree item under the > context menu in the BeanTreeView component occurs. This problem can be easily > reproduced by the following simple example. > {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.*; > impo
[jira] [Updated] (NETBEANS-4173) FlatLaf: Partial render selected BeanTreeView element
[ 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 >
[jira] [Updated] (NETBEANS-4173) FlatLaf: Partial render selected BeanTreeView element
[ https://issues.apache.org/jira/browse/NETBEANS-4173?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lucas Friedmann updated NETBEANS-4173: -- Attachment: FlatLaf_after_fix.png > 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 > > !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} -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Updated] (NETBEANS-4173) FlatLaf: Partial render selected BeanTreeView element
[ https://issues.apache.org/jira/browse/NETBEANS-4173?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lucas Friedmann updated NETBEANS-4173: -- Attachment: FlatLaf_before_fix.png > 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 > > !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} -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Updated] (NETBEANS-4173) FlatLaf: Partial render selected BeanTreeView element
[ https://issues.apache.org/jira/browse/NETBEANS-4173?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lucas Friedmann updated NETBEANS-4173: -- Attachment: (was: image.png) > 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 > > !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} -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Updated] (NETBEANS-4173) FlatLaf: Partial render selected BeanTreeView element
[ https://issues.apache.org/jira/browse/NETBEANS-4173?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lucas Friedmann updated NETBEANS-4173: -- External issue URL: https://github.com/apache/netbeans/pull/2079 > 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: image.png > > Time Spent: 10m > Remaining Estimate: 0h > > !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} -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Updated] (NETBEANS-4173) FlatLaF: Partial render selected BeanTreeView element
[ https://issues.apache.org/jira/browse/NETBEANS-4173?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lucas Friedmann updated NETBEANS-4173: -- Summary: FlatLaF: Partial render selected BeanTreeView element (was: [FlatLaF] Partial render selected BeanTreeView element) > 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 > Attachments: image.png > > > !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} -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Updated] (NETBEANS-4173) FlatLaf: Partial render selected BeanTreeView element
[ https://issues.apache.org/jira/browse/NETBEANS-4173?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lucas Friedmann updated NETBEANS-4173: -- Summary: FlatLaf: Partial render selected BeanTreeView element (was: FlatLaF: Partial render selected BeanTreeView element) > 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 > Attachments: image.png > > > !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} -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Created] (NETBEANS-4173) [FlatLaF] Partial render selected BeanTreeView element
Lucas Friedmann created NETBEANS-4173: - Summary: [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 Attachments: image.png !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} -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists