Skip to content

Commit

Permalink
spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
prsadhuk committed May 22, 2024
1 parent e9c1da0 commit 9f26b8f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
3 changes: 1 addition & 2 deletions test/jdk/javax/swing/JMenuBar/RightLeftOrientation.java
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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);
Expand Down
7 changes: 3 additions & 4 deletions test/jdk/javax/swing/JToolBar/RightLeftOrientation.java
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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));
Expand All @@ -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));
Expand Down

0 comments on commit 9f26b8f

Please sign in to comment.