8344338: javax/swing/JTextArea/bug4265784.java fails on Ubuntu 24.04.1

Reviewed-by: achung, kizune
This commit is contained in:
Prasanta Sadhukhan 2024-11-22 03:07:26 +00:00
parent db44e97c5d
commit e21d06f488

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 1999, 2023, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 1999, 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -50,7 +50,7 @@ public class bug4265784 {
try { try {
SwingUtilities.invokeAndWait(() -> { SwingUtilities.invokeAndWait(() -> {
frame = new JFrame("bug4265784"); frame = new JFrame("bug4265784");
ta = new JTextArea(); ta = new JTextArea("some text", 50, 50);
frame.getContentPane().add(ta); frame.getContentPane().add(ta);
frame.pack(); frame.pack();
frame.setLocationRelativeTo(null); frame.setLocationRelativeTo(null);