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

SwingTextField background not working

    XMLWordPrintable

    Details

      Description

      Changing the background of a SwingTextField in FX 1.2 does not seem to work. Here is the code snippet:

      package swingtextfield;

      import javafx.stage.Stage;
      import javafx.scene.Scene;
      import javafx.ext.swing.SwingTextField;
      import javafx.scene.paint.Color;

      Stage {
          title: "SwingTextField background not working!"
          width: 350
          height: 100
          resizable: false
          scene: Scene {
              content: [
                  SwingTextField {
                      width: 300
                      height: 50
                      background: Color.YELLOW
                      foreground: Color.GREEN
                  }
              ]
          }
      }

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            duke J. Duke (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported: