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

Gtk: Tooltips print an error message on Linux

    Details

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

      Linux x64 + JDK7

      Description

      When tooltip is shown in the application below, an error message is printed on my Linux box:
      Can't create transparent stage, because your screen doesn't support alpha channel. You need to enable XComposite extension.
      I probably really don't have XComposite, but I think the error message should not be printed.

      import javafx.application.Application;
      import javafx.scene.Group;
      import javafx.scene.Scene;
      import javafx.scene.control.Tooltip;
      import javafx.scene.shape.Rectangle;
      import javafx.stage.Stage;

      public class FXTest extends Application {

          @Override public void start(Stage stage) {
              Scene scene = new Scene(new Group(new Rectangle(400, 300)));
              Tooltip tt = new Tooltip("hahaha");
              Tooltip.install(scene.getRoot(), tt);

              stage.setScene(scene);
              stage.sizeToScene();
              stage.show();
          }
          
          public static void main(String[] args) {
              launch(args);
          }
      }

        Attachments

          Activity

            People

            • Assignee:
              azvegint Alexander Zvegintsev (Inactive)
              Reporter:
              peterz Peter Zhelezniakov
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: