Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Originally reported http://www.java.net/forum/topic/javadesktop/java-desktop-technologies/swinglabs/jxtextfield-background-weirdness

      The following bad background bleeding is seen http://www.java.net/sites/default/files/JXTextField2.png with the following code on OS X:

      import java.awt.Color;
      import java.awt.Dimension;
      import javax.swing.*;
      import org.jdesktop.swingx.JXTextField;

      public class Scratch {

      public static void main(String[] args)

      { JFrame frame = new JFrame(); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); JPanel panel = new JPanel(); panel.setLayout(new BoxLayout(panel, BoxLayout.PAGE_AXIS)); JXTextField jxText = new JXTextField("Prompt"); jxText.setMaximumSize(new Dimension(300, 20)); jxText.setPromptBackround(Color.WHITE); JTextField text = new JTextField("Prompt"); text.setMaximumSize(new Dimension(300, 20)); panel.add(jxText); panel.add(new JLabel(" ")); panel.add(text); frame.add(panel); frame.setSize(300, 300); frame.setVisible(true); }

      }

        Activity

        Hide
        Karl Schaefer added a comment -

        I'm not getting the same extra-whitespace bug when I try it. I am getting a grey background that looks disabled. I suspect it's more Aqua custom painting code that is getting in our way.

        Show
        Karl Schaefer added a comment - I'm not getting the same extra-whitespace bug when I try it. I am getting a grey background that looks disabled. I suspect it's more Aqua custom painting code that is getting in our way.

          People

          • Assignee:
            Unassigned
            Reporter:
            fommil
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: