swingx
  1. swingx
  2. SWINGX-1506

JXTaskPaneContainer Background Colour being set somewhere

    Details

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

      OS X Lion

      Description

      Originally reported http://www.java.net/forum/topic/javadesktop/java-desktop-technologies/swinglabs/repost-jxtaskpanecontainer-background-colour

      The following http://www.java.net/sites/default/files/JXTaskPaneExample.png is seen from the following code on OS X - this is incorrect because the background of the pane should not be black. (Incidentally, something similar happens with JXTable, whereby it always seems to force a white background).

      import java.awt.Color;
      import javax.swing.JFrame;
      import org.jdesktop.swingx.JXTaskPane;
      import org.jdesktop.swingx.JXTaskPaneContainer;

      public class TestJXTaskPane extends JXTaskPane {

      public TestJXTaskPane()

      { initComponents(); }

      public static void main(String args[])

      { JFrame frame = new JFrame(); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setBackground(Color.BLACK); JXTaskPaneContainer container = new JXTaskPaneContainer(); container.add(new TestJXTaskPane()); frame.add(container); frame.pack(); frame.setVisible(true); }

      /**

      • WARNING: Do NOT modify this code.
        */
        @SuppressWarnings("unchecked")
        // <editor-fold defaultstate="collapsed" desc="Generated Code">
        private void initComponents() { jPanel1 = new javax.swing.JPanel(); jToolBar = new javax.swing.JToolBar(); jXReloadButton = new org.jdesktop.swingx.JXButton(); filler1 = new javax.swing.Box.Filler(new java.awt.Dimension(0, 0), new java.awt.Dimension(0, 25), new java.awt.Dimension(0, 1000)); jXRemoveButton = new org.jdesktop.swingx.JXButton(); jPanel2 = new javax.swing.JPanel(); jPanel1.setLayout(new java.awt.BorderLayout()); jToolBar.setFloatable(false); jToolBar.setOrientation(1); jXReloadButton.setText("Reload"); jXReloadButton.setFocusable(false); jXReloadButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jXReloadButton.setMaximumSize(new java.awt.Dimension(54, 18)); jXReloadButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); jToolBar.add(jXReloadButton); jToolBar.add(filler1); jXRemoveButton.setText("Remove"); jXRemoveButton.setFocusable(false); jXRemoveButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jXRemoveButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); jToolBar.add(jXRemoveButton); jPanel1.add(jToolBar, java.awt.BorderLayout.EAST); jPanel2.setLayout(new java.awt.BorderLayout()); jPanel1.add(jPanel2, java.awt.BorderLayout.CENTER); add(jPanel1, java.awt.BorderLayout.CENTER); }

        // </editor-fold>

      // Variables declaration - do not modify
      private javax.swing.Box.Filler filler1;
      private javax.swing.JPanel jPanel1;
      private javax.swing.JPanel jPanel2;
      private javax.swing.JToolBar jToolBar;
      private org.jdesktop.swingx.JXButton jXReloadButton;
      private org.jdesktop.swingx.JXButton jXRemoveButton;
      // End of variables declaration
      }

        Activity

        There are no comments yet on this issue.

          People

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

            Dates

            • Created:
              Updated: