changeset 13491:e4b14943040f

8218479: JTextPane display issue with GTKLookAndFeel Reviewed-by: prr, serb
author ssadetsky
date Fri, 15 Feb 2019 10:01:16 -0800
parents d2fe42f45c4a
children d9da27985291
files src/share/classes/com/sun/java/swing/plaf/gtk/GTKStyle.java
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/com/sun/java/swing/plaf/gtk/GTKStyle.java	Mon Mar 18 09:06:10 2019 +0100
+++ b/src/share/classes/com/sun/java/swing/plaf/gtk/GTKStyle.java	Fri Feb 15 10:01:16 2019 -0800
@@ -735,7 +735,8 @@
               region == Region.TOOL_BAR_DRAG_WINDOW ||
               region == Region.TOOL_TIP ||
               region == Region.TREE ||
-              region == Region.VIEWPORT) {
+              region == Region.VIEWPORT ||
+              region == Region.TEXT_PANE) {
             return true;
         }
         if (!GTKLookAndFeel.is3()) {
@@ -743,8 +744,7 @@
                   region == Region.FORMATTED_TEXT_FIELD ||
                   region == Region.PASSWORD_FIELD ||
                   region == Region.SPINNER ||
-                  region == Region.TEXT_FIELD ||
-                  region == Region.TEXT_PANE) {
+                  region == Region.TEXT_FIELD) {
                 return true;
             }
         }