From a36ff772f5c180030f25883f7a63307a66bdb838 Mon Sep 17 00:00:00 2001 From: sowgro Date: Thu, 4 May 2023 11:54:29 -0400 Subject: add rounded rectangle test --- apcs/block.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'apcs/block.java') diff --git a/apcs/block.java b/apcs/block.java index cf3d31f..ea7663f 100644 --- a/apcs/block.java +++ b/apcs/block.java @@ -23,11 +23,12 @@ public class block { EventQueue.invokeLater(new Runnable() { @Override public void run() { - try { + /*try { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } catch (ClassNotFoundException | InstantiationException | IllegalAccessException | UnsupportedLookAndFeelException ex) { ex.printStackTrace(); } + */ JFrame frame = new JFrame("Testing"); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); @@ -35,6 +36,7 @@ public class block { frame.pack(); frame.setLocationRelativeTo(null); frame.setVisible(true); + } }); } @@ -52,6 +54,7 @@ public class block { return new Dimension(100, 100); } + @Override protected void paintComponent(Graphics g) { super.paintComponent(g); @@ -63,6 +66,7 @@ public class block { g2d.fill(rightEnd); g2d.dispose(); } + } -- cgit v1.2.3