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

Gtk: Tooltips print an error message on Linux

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8
    • 7u6
    • javafx
    • Linux x64 + JDK7

      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);
          }
      }

            azvegint Alexander Zvegintsev
            peterz Peter Zhelezniakov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: