Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8096908

Visual artefacts in TabPane switcher

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 8
    • Fix Version/s: 8u20
    • Component/s: javafx
    • Labels:
    • Environment:

      java version "1.8.0"
      Java(TM) SE Runtime Environment (build 1.8.0-b132)
      Java HotSpot(TM) 64-Bit Server VM (build 25.0-b70, mixed mode)

      Windows 7, 64bit

      Description

      Compile and run this sample:

      package tabpaneclosingvisualartefacts;

      import javafx.application.Application;
      import javafx.event.ActionEvent;
      import javafx.event.EventHandler;
      import javafx.scene.Scene;
      import javafx.scene.control.Button;
      import javafx.scene.control.Tab;
      import javafx.scene.control.TabPane;
      import javafx.scene.layout.StackPane;
      import javafx.stage.Stage;

      public class TabPaneClosingVisualArtefacts extends Application {
          
          @Override
          public void start(Stage primaryStage) {
              TabPane pane = new TabPane();
              final Tab tab1 = new Tab("Tab1");
              pane.getTabs().addAll(tab1, new Tab("Tab2"), new Tab("Tab3"), new Tab("Tab4"), new Tab("Tab5"));

              Scene scene = new Scene(pane,200,200);
              primaryStage.setScene(scene);
              primaryStage.show();
          }

          /**
           * @param args the command line arguments
           */
          public static void main(String[] args) {
              launch(args);
          }
          
      }

      Result: Switcher for Tab Panes in TabPane header is incorrect rendered.

      Now move mouse cursor over tab pane switcher - now is correct rendered.

      See screenshots:
      1. http://i62.tinypic.com/f0da48.png (before move mouse cursor over tab pane switcher)
      2. http://i61.tinypic.com/kczcib.png (after move mouse cursor over tab pane switcher)

        Attachments

          Activity

            People

            Assignee:
            jgiles Jonathan Giles
            Reporter:
            ltorokjfx Ladislav Török (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported: