From 9f26b8f0b14e0b3ed9fcb8a845adc9d7c84e7d18 Mon Sep 17 00:00:00 2001 From: Prasanta Sadhukhan Date: Wed, 22 May 2024 07:25:33 +0100 Subject: [PATCH] spacing --- test/jdk/javax/swing/JMenuBar/RightLeftOrientation.java | 3 +-- test/jdk/javax/swing/JToolBar/RightLeftOrientation.java | 7 +++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/test/jdk/javax/swing/JMenuBar/RightLeftOrientation.java b/test/jdk/javax/swing/JMenuBar/RightLeftOrientation.java index 85f5c828c8b09..80779c9ce1d07 100644 --- a/test/jdk/javax/swing/JMenuBar/RightLeftOrientation.java +++ b/test/jdk/javax/swing/JMenuBar/RightLeftOrientation.java @@ -25,7 +25,7 @@ * @bug 4211731 4214512 * @summary * This test checks if menu bars lay out correctly when their - * ComponentOrientation property is set to RIGHT_TO_LEFT. This test is + * ComponentOrientation property is set to RIGHT_TO_LEFT. This test is * manual. The tester is asked to compare left-to-right and * right-to-left menu bars and judge whether they are mirror images of each * other. @@ -100,7 +100,6 @@ private static JFrame createTestUI() { frame.add(panel); - ltrFrame = new JFrame("Left To Right"); ltrFrame.setJMenuBar(createMenuBar(ComponentOrientation.LEFT_TO_RIGHT)); ltrFrame.setSize(400, 100); diff --git a/test/jdk/javax/swing/JToolBar/RightLeftOrientation.java b/test/jdk/javax/swing/JToolBar/RightLeftOrientation.java index 571eeaca4402a..8822a86f79a77 100644 --- a/test/jdk/javax/swing/JToolBar/RightLeftOrientation.java +++ b/test/jdk/javax/swing/JToolBar/RightLeftOrientation.java @@ -25,7 +25,7 @@ * @bug 4214514 * @summary * This test checks if tool bars lay out correctly when their - * ComponentOrientation property is set to RIGHT_TO_LEFT. This test is + * ComponentOrientation property is set to RIGHT_TO_LEFT. This test is * manual. The tester is asked to compare left-to-right and * right-to-left tool bars and judge whether they are mirror images of each * other. @@ -105,12 +105,11 @@ private static JFrame createTestUI() { frame.add(panel); - ltrFrame = new JFrame("Left To Right"); Container contentPane = ltrFrame.getContentPane(); contentPane.setLayout(new BorderLayout()); panel = new JPanel(); - panel.setBackground( Color.white ); + panel.setBackground(Color.white); contentPane.add("Center",panel); contentPane.add("North", createToolBar(ComponentOrientation.LEFT_TO_RIGHT)); @@ -122,7 +121,7 @@ private static JFrame createTestUI() { contentPane = rtlFrame.getContentPane(); contentPane.setLayout(new BorderLayout()); panel = new JPanel(); - panel.setBackground( Color.white ); + panel.setBackground(Color.white); contentPane.add("Center",panel); contentPane.add("North", createToolBar(ComponentOrientation.RIGHT_TO_LEFT));