Skip to content

Commit

Permalink
PR review part 1
Browse files Browse the repository at this point in the history
  • Loading branch information
mrserb committed Sep 10, 2024
1 parent 4c88385 commit b2907dc
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 17 deletions.
17 changes: 13 additions & 4 deletions test/jdk/java/awt/Frame/MiscUndecorated/ActiveAWTWindowTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,24 @@
* @test
* @key headful
* @summary To check proper WINDOW_EVENTS are triggered when Frame gains or losses the focus
* @author Jitender([email protected]) area=AWT
* @author yan
* @library /lib/client
* @build ExtendedRobot
* @run main ActiveAWTWindowTest
*/

import java.awt.*;
import java.awt.event.*;
import java.awt.BorderLayout;
import java.awt.Button;
import java.awt.Color;
import java.awt.EventQueue;
import java.awt.FlowLayout;
import java.awt.Frame;
import java.awt.TextField;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.InputEvent;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.awt.event.WindowFocusListener;

public class ActiveAWTWindowTest {

Expand Down
7 changes: 4 additions & 3 deletions test/jdk/java/awt/Paint/ButtonRepaint.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,15 @@
* questions.
*/


import java.awt.*;
import java.awt.Button;
import java.awt.EventQueue;
import java.awt.Frame;
import java.awt.Graphics;

/**
* @test
* @key headful
* @bug 7090424
* @author Sergey Bylokhov
*/
public final class ButtonRepaint extends Button {

Expand Down
6 changes: 4 additions & 2 deletions test/jdk/java/awt/Paint/CheckboxRepaint.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,15 @@
* questions.
*/

import java.awt.*;
import java.awt.Checkbox;
import java.awt.EventQueue;
import java.awt.Frame;
import java.awt.Graphics;

/**
* @test
* @key headful
* @bug 7090424
* @author Sergey Bylokhov
*/
public final class CheckboxRepaint extends Checkbox {

Expand Down
3 changes: 1 addition & 2 deletions test/jdk/java/awt/Paint/LabelRepaint.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2013, 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -30,7 +30,6 @@
* @test
* @key headful
* @bug 7090424
* @author Sergey Bylokhov
*/
public final class LabelRepaint extends Label {

Expand Down
1 change: 0 additions & 1 deletion test/jdk/java/awt/Paint/ListRepaint.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
* @test
* @key headful
* @bug 7090424
* @author Sergey Bylokhov
*/
public final class ListRepaint extends List {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,23 @@
* @key headful
* @bug 4983388 8015600
* @summary shortcuts on menus do not work on JDS
* @author Oleg Mokhovikov
* @library ../../../../regtesthelpers
* @build Util
* @run main bug4983388
*/

import java.awt.*;
import javax.swing.*;
import javax.swing.event.MenuListener;
import javax.swing.event.MenuEvent;
import java.awt.Robot;
import java.awt.event.KeyEvent;

import javax.swing.JFrame;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.SwingUtilities;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;
import javax.swing.event.MenuEvent;
import javax.swing.event.MenuListener;

public class bug4983388 {
static volatile boolean bMenuSelected = false;
static JFrame frame;
Expand Down

0 comments on commit b2907dc

Please sign in to comment.