Coder Social home page Coder Social logo

seaglass's People

Watchers

 avatar

seaglass's Issues

JTable rows not visible

There is a problem with rendering the contents of a JTable. There is no
cell content visible until I doubleclick it to edit. After edition, the
text disappears again. Column names are rendered properly.
Am I doing something wrong? It seems a bit strange, maybe it's another
slight error in a single line?

Original issue reported on code.google.com by saephir on 9 Apr 2010 at 1:24

it seems do not support multi-languages

What steps will reproduce the problem?
1.Use some other languages in the application with SeaGlass.

What is the expected output? What do you see instead?
It displays "口" instead of the right word, and the same problem with the  
seaglass-demo.

What version of the product are you using? On what operating system? What
JRE version?
The version is 0.1.7.2.2, On win7, jre 1.6u17

Please provide any additional information below.
I just used some words of Chinese, but it can not display rightly. I don't 
know why. A screenshot shows below.

Original issue reported on code.google.com by [email protected] on 12 Apr 2010 at 7:21

  • Merged into: #45

Attachments:

JComboBox not corectly rendered

What steps will reproduce the problem?
1. Make a JComboBox
2. Add many items
3. Click on the JComboBox..

What is the expected output? What do you see instead?
JComboBox is not correctly rendered. See additional information for the
output error.

What version of the product are you using? On what operating system? What
JRE version?
Using 0.1.7.1 version under Windows 7 with 1.6.0_17 from SUN.

Please provide any additional information below.
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    at
com.seaglasslookandfeel.ui.SeaGlassScrollPaneUI.paintScrollPaneCorner(SeaGlassSc
rollPaneUI.java:272)
    at
com.seaglasslookandfeel.ui.SeaGlassScrollPaneUI.update(SeaGlassScrollPaneUI.java
:262)
    at javax.swing.JComponent.paintComponent(Unknown Source)
    at javax.swing.JComponent.paint(Unknown Source)
    at javax.swing.JComponent.paintChildren(Unknown Source)
    at javax.swing.JComponent.paint(Unknown Source)
    at javax.swing.JComponent.paintChildren(Unknown Source)
    at javax.swing.JComponent.paint(Unknown Source)
    at javax.swing.JComponent.paintChildren(Unknown Source)
    at javax.swing.JComponent.paint(Unknown Source)
    at javax.swing.JLayeredPane.paint(Unknown Source)
    at javax.swing.JComponent.paintChildren(Unknown Source)
    at javax.swing.JComponent.paintToOffscreen(Unknown Source)
    at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(Unknown Source)
    at javax.swing.RepaintManager$PaintManager.paint(Unknown Source)
    at javax.swing.RepaintManager.paint(Unknown Source)
    at javax.swing.JComponent.paint(Unknown Source)
    at java.awt.GraphicsCallback$PaintCallback.run(Unknown Source)
    at sun.awt.SunGraphicsCallback.runOneComponent(Unknown Source)
    at sun.awt.SunGraphicsCallback.runComponents(Unknown Source)
    at java.awt.Container.paint(Unknown Source)
    at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
    at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
    at javax.swing.RepaintManager.seqPaintDirtyRegions(Unknown Source)
    at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown
Source)
    at java.awt.event.InvocationEvent.dispatch(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)

Original issue reported on code.google.com by [email protected] on 9 Mar 2010 at 3:00

Maximize window ignores task bar

When clicking the "maximize window" button the newly resized window overlaps 
the task bar on Windows. I think you have to use 
Toolkit.getScreenInsets(GraphicsConfiguration).

Original issue reported on code.google.com by [email protected] on 22 Jun 2010 at 1:37

Wrong frame size

I noticed that some of my windows have the wrong height when using
SeaGlass. I wrote a little test program that shows you the problem. The
test frame adds a panel to itself. The preferred size of the panel is
400x400, so the size of the resulting window should be close to that plus
the height of the titlebar and the border width. The width is correct, but
the height is way too big (notice output in the console). I am running
Windows XP with Java 6 (from Sun).

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.FlowLayout;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;

import com.seaglasslookandfeel.SeaGlassLookAndFeel;

public class TestSeaglass extends JFrame {

    public TestSeaglass() {
        super("Test Seaglass");

        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

        JPanel content = new JPanel();
        content.setLayout(new FlowLayout(FlowLayout.CENTER));
        content.setBackground(new Color(250, 250, 250));
        content.setPreferredSize(new Dimension(400,400));
        add(BorderLayout.CENTER, content);
        pack();
        setVisible(true);       
        System.out.println("window size = " + getSize());
    }

    public static void main(String[] args) {
        try {
            UIManager.setLookAndFeel(new SeaGlassLookAndFeel());
        } catch (UnsupportedLookAndFeelException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
        new TestSeaglass();
    }
}

Original issue reported on code.google.com by [email protected] on 5 Mar 2010 at 12:41

Destination component not connected to component tree hierarchy when clicking on frame on Mac

What steps will reproduce the problem?

1. Run a program using Sea Glass Look and Feel which has exposed root pane.

2. Click in the exposed root pane.

What is the expected output? What do you see instead?

I expect the focus to move to the root pane and away from the component that 
previously had it.

Instead, I get the above message.

I believe that this has to do with my root pane UI code looking for a 
non-existent title pane or a 
disconnected one.

Original issue reported on code.google.com by kahuxtable on 18 Jan 2010 at 3:02

Cell selection view should determine which column is selected

There is a defect, which can be observed while selecting a cell in a table.
The row is then painted in very nice deep blue color, but I can't see which
column I'm editing at the time. Please fix it in future release.

Original issue reported on code.google.com by saephir on 13 Apr 2010 at 1:00

Maybe doesn't paint bottom non-border line in the JFrame?

Various panels have different background colors when no explicit one is
set. It seems to be dependent on where they are and possibly what is on
them. See the attached screenshots depicting my system L&F on Windows XP
versus SeaGlass.

In the system L&F, the default background color for all panels seems to be
a gray, in SeaGlass it varies from a blue, to light gray, to white. I don't
think it's a big issue that different panels have different default
background colors depending on the component or such, but it's a problem
relative to other components. The JSplitPane divider area has a gray
background, but it doesn't match up with the white next to it. Also, it
seems a bit odd for a default panel to have white as a background color.

I should note that the app pictured there is incomplete, so the tabs
displayed have no panels in them or an empty JPanel per tab, and that the
panel containing the JTree has an explicit white background (if that helps).

Other than that, this is a nice looking L&F, thank you the good work :)

Original issue reported on code.google.com by [email protected] on 21 Mar 2010 at 5:43

Attachments:

Setting a content panel removes rounded corners

I just noticed that we are loosing the nice rounded corners when we add an 
opaque content panel to 
the CENTER position. Not sure there is a way around it. Aqua seems to simply 
switch back to 
standard cornes if the content area is completely used (see Safari). Apps like 
iTunes do not use the 
entire content area but have a bottom bar instead. In this case we can get 
rounded corners. I think 
we need a client property that controls this behaviour. I have attached a 
screenshot of my login 
dialog. The dialog uses a very light gray content panel that reaches all the 
way to the bottom. You 
can see that the dialog corners are not showing.

Original issue reported on code.google.com by [email protected] on 15 Mar 2010 at 9:07

Attachments:

JPopupMenu is not transparent at the corners

What steps will reproduce the problem?
1. Run a program that has popup menus
2. Click on a popup menu invoker

What is the expected output? What do you see instead?

I expect to see rounded corners.

Instead, I see a white background at each corner. This won't be visible if the 
background behind the 
popup is white, of course. The background may actually be our control color, 
not white. I didn't 
check.

Original issue reported on code.google.com by kahuxtable on 4 Feb 2010 at 11:39

Strange drawing of JCheckBox, JRadioButton inside JTabbedPane

What steps will reproduce the problem?
1. Run the application
2. Move the mouse over checkbox or radio (see result in the attached 
screenshot)
3.

What is the expected output? What do you see instead?
expect: smooth rendering
result: ugly drawing of JCheckbox and JRadio. Seems like the previous 
drawing was not cleared. However, this does not occur with JLabel

What version of the product are you using? On what operating system? 
What
JRE version?
Mac OS X 10.6.2 JRE 6.0



Please provide any additional information below.
- sample code attached
-------------

import java.awt.BorderLayout;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

import javax.swing.JCheckBox;
import javax.swing.JDesktopPane;
import javax.swing.JFrame;
import javax.swing.JInternalFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JRadioButton;
import javax.swing.JSplitPane;
import javax.swing.JTabbedPane;
import javax.swing.UIManager;


public class SeaglassBugDemo extends JFrame {

    public static void main(String[] args) {
        //set look and feel
        try {

UIManager.setLookAndFeel("com.seaglasslookandfeel.SeaGlassLookAndFeel
"); 
            System.out.println(">> Set Seaglass look and feel");
//            
UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookA
ndFeel");
//            System.out.println(">> Set Nimbus look and feel");
        } catch (Exception e) {
            System.err.println(">> Cannot set look and feel");
            e.printStackTrace();
        }

        SeaglassBugDemo demo = new SeaglassBugDemo();
        demo.addWindowListener(new WindowAdapter() {
            @Override
            public void windowClosing(WindowEvent e) {
                System.exit(0);
            }
        });
    }

    public SeaglassBugDemo(){
        super("Seaglass");

        JTabbedPane tabPane2 = new JTabbedPane();
        JPanel testPanel = new JPanel();
        JCheckBox cb = new JCheckBox("checkbox");
        testPanel.add(cb);
        testPanel.add(new JRadioButton("radio"));
        testPanel.add(new JLabel("label"));
        tabPane2.add(testPanel,"test");
        this.getContentPane().add(tabPane2);

        this.setBounds(0,0,800,600);
        this.setResizable(true);
        this.setVisible(true);
    }

}

Original issue reported on code.google.com by [email protected] on 3 Mar 2010 at 6:20

Attachments:

Maximize and minimize buttons in title panes have bleed in hover mode

What steps will reproduce the problem?
1. run the Laffy demo in non-Mac mode.
2. mouse over the maximize and minimize buttons.

What is the expected output? What do you see instead?

I expect to see only the moused over button's pixels change.
Instead I see a bit of bleed into the maximize button in the case of mousing 
over the minimize 
button, and I see a bit of bleed below in the case of mousing over the maximize 
button.

Original issue reported on code.google.com by kahuxtable on 12 Mar 2010 at 2:52

Search field loses caret position/selection when find button is clicked

What steps will reproduce the problem?
1. create a JTextField with search in JTextField.variant client property.
2. Set JTextField.Search.FindPopup client property to a JPopupMenu.
3. Enter some text in the field and click the find button.

What is the expected output? What do you see instead?

I expect the popup to appear and the caret position in the search field to 
remain as it was. 
Instead, the caret moves to the beginning of the search field and any selection 
is removed.

This is because as far as JTextField is concerned, I clicked at the beginning 
of the field rather 
than on a button.


Original issue reported on code.google.com by kahuxtable on 19 Jan 2010 at 1:18

Vertical tab layout appears uneven due to segmentation extensions

What steps will reproduce the problem?
1. Create a JTabbedPane with a left or right tab block.
2. Measure the space between the top and bottom borders of the buttons.

What is the expected output? What do you see instead?

It should be equal. It's not.

This is with release 0.1.5-SNAPSHOT on 2010-01-21 9:14:00 UTC.

Original issue reported on code.google.com by kahuxtable on 21 Jan 2010 at 9:15

Trees don't render correctly - they disappear

What steps will reproduce the problem?
1. When a tree element is selected it seems to disappear.

My guess is that it's drawn in light color with no background highlight.

Original issue reported on code.google.com by kahuxtable on 23 Jan 2010 at 5:45

Support -Dswing.defaultlaf VM flag

What steps will reproduce the problem?
1. Compile the attached test class
2. Run it with the following VM flag:
-Dswing.defaultlaf=com.seaglasslookandfeel.SeaGlassLookAndFeel

What is the expected output? What do you see instead?

Expected - frame shown with a button.
Instead: 

Exception in thread "AWT-EventQueue-0" java.lang.ExceptionInInitializerError
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:247)
    at javax.swing.SwingUtilities.loadSystemClass(SwingUtilities.java:1849)
    at javax.swing.UIManager.setLookAndFeel(UIManager.java:561)
    at javax.swing.UIManager.initializeDefaultLAF(UIManager.java:1325)
    at javax.swing.UIManager.initialize(UIManager.java:1414)
    at javax.swing.UIManager.maybeInitialize(UIManager.java:1402)
    at javax.swing.UIManager.getUI(UIManager.java:988)
    at javax.swing.JPanel.updateUI(JPanel.java:109)
    at javax.swing.JPanel.<init>(JPanel.java:69)
    at javax.swing.JPanel.<init>(JPanel.java:92)
    at javax.swing.JPanel.<init>(JPanel.java:100)
    at javax.swing.JRootPane.createGlassPane(JRootPane.java:528)
    at javax.swing.JRootPane.<init>(JRootPane.java:348)
    at javax.swing.JFrame.createRootPane(JFrame.java:255)
    at javax.swing.JFrame.frameInit(JFrame.java:236)
    at javax.swing.JFrame.<init>(JFrame.java:203)
    at com.seaglasslookandfeel.TestFrame.<init>(TestFrame.java:12)
    at com.seaglasslookandfeel.TestFrame$1.run(TestFrame.java:25)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:633)
    at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296
)
    at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
    at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201
)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by: java.lang.NullPointerException
    at javax.swing.MultiUIDefaults.getUIError(MultiUIDefaults.java:133)
    at javax.swing.UIDefaults.getUI(UIDefaults.java:741)
    at javax.swing.UIManager.getUI(UIManager.java:997)
    at javax.swing.JPanel.updateUI(JPanel.java:109)
    at javax.swing.JPanel.<init>(JPanel.java:69)
    at javax.swing.JPanel.<init>(JPanel.java:92)
    at javax.swing.JPanel.<init>(JPanel.java:100)
    at javax.swing.JRootPane.createGlassPane(JRootPane.java:528)
    at javax.swing.JRootPane.<init>(JRootPane.java:348)
    at javax.swing.JInternalFrame.createRootPane(JInternalFrame.java:343)
    at javax.swing.JInternalFrame.<init>(JInternalFrame.java:320)
    at javax.swing.JInternalFrame.<init>(JInternalFrame.java:250)
    at
com.seaglasslookandfeel.SeaGlassLookAndFeel.<clinit>(SeaGlassLookAndFeel.java:15
9)
    ... 27 more


What version of the product are you using? On what operating system?

Using the latest SVN head on Mac 1.6.0_17 VM.


Original issue reported on code.google.com by [email protected] on 5 Jan 2010 at 1:03

Attachments:

Don't paint textured background unless property is set.

Currently we always paint a textured background in JFrame, and I think, JWindow 
as well. Only do it 
when SeaGlass.UnifiedToolbarLook is set to Boolean.TRUE.

Original issue reported on code.google.com by kahuxtable on 10 Mar 2010 at 8:14

this is simply heart breakin!!!!!!

What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?
init:
deps-jar:
Compiling 1 source file to D:\SeaGlassDemo\build\classes
compile-single:
run-single:
Exception in thread "main" java.lang.IllegalArgumentException: Width (0)
and height (0) cannot be <= 0
        at
java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.
java:999)
        at java.awt.image.BufferedImage.<init>(BufferedImage.java:340)
        at
sun.awt.windows.TranslucentWindowPainter$BIWindowPainter.getBIBackBuffer(Translu
centWindowPainter.java:185)
        at
sun.awt.windows.TranslucentWindowPainter$BIWindowPainter.getBackBuffer(Transluce
ntWindowPainter.java:193)
        at
sun.awt.windows.TranslucentWindowPainter.updateWindow(TranslucentWindowPainter.j
ava:132)
        at sun.awt.windows.WWindowPeer.updateWindow(WWindowPeer.java:652)
        at sun.awt.windows.WWindowPeer.setOpaque(WWindowPeer.java:639)
        at java.awt.Window.applyOpaque(Window.java:3305)
        at java.awt.Window.addNotify(Window.java:652)
        at java.awt.Frame.addNotify(Frame.java:470)
        at java.awt.Window.show(Window.java:841)
        at java.awt.Component.show(Component.java:1447)
        at java.awt.Component.setVisible(Component.java:1400)
        at java.awt.Window.setVisible(Window.java:824)
        at seaglassdemo.SeaGlassFrameTest.main(SeaGlassFrameTest.java:40)


What version of the product are you using? On what operating system? What
JRE version?
OS  
Windows Xp SP 3

JDK 6 Update 18


Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 15 Feb 2010 at 5:29

Attachments:

Documentation: SeaGlass.JRootPane.MenuInTitle

The documentation for the MenuInTitle client property says that the value
for the property needs to be a String instead of a Boolean.

Old:

"On a non-Mac platform, setting the SeaGlass.JRootPane.MenuInTitle property
to the String true will ....."

New:

"On a non-Mac platform, setting the SeaGlass.JRootPane.MenuInTitle property
to Boolean.TRUE will ....."

Original issue reported on code.google.com by [email protected] on 5 Mar 2010 at 12:58

JDesktopPane crashed when added new JInternalFrame

What steps will reproduce the problem?
1. Open application 

What is the expected output? What do you see instead?
- gray window with frozen cursor, then crash

What version of the product are you using? On what operating system?
- Seaglass 1.5 on Mac OS X 10.6.2 Snow Leopard

Please provide any additional information below.

-------------------------------------------------------
Code
-------------------------------------------------------
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

import javax.swing.JDesktopPane;
import javax.swing.JFrame;
import javax.swing.JInternalFrame;
import javax.swing.UIManager;

public class SeaglassBugDemo extends JFrame {

    public static void main(String[] args) {
        //set look and feel
        try {

UIManager.setLookAndFeel("com.seaglasslookandfeel.SeaGlassLookAndFeel"); 
            System.out.println(">> Set Seaglass look and feel");
//           
UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel");
//            System.out.println(">> Set Nimbus look and feel");
        } catch (Exception e) {
            System.err.println(">> Cannot set look and feel");
            e.printStackTrace();
        }

        SeaglassBugDemo demo = new SeaglassBugDemo();
        demo.addWindowListener(new WindowAdapter() {
            public void windowClosing(WindowEvent e) {
                System.exit(0);
            }
        });
    }

    public SeaglassBugDemo(){
        super("Seaglass");

        JDesktopPane dPane = new JDesktopPane();
        JInternalFrame frame = new JInternalFrame("test",true,true,true,true);
        frame.setBounds(0, 0, 100, 100);
        frame.setVisible(true);
        dPane.add(frame);
        this.setContentPane(dPane);

        this.setBounds(0,0,800,600);
        this.setResizable(true);
        this.setVisible(true);
    }

}

-------------------------------------------------------
Log from OS X
-------------------------------------------------------

Process:         java [75423]
Path:            /usr/bin/java
Identifier:      com.apple.javajdk16.cmd
Version:         1.0 (1.0)
Code Type:       X86-64 (Native)
Parent Process:  eclipse [67603]

Date/Time:       2010-02-01 19:11:15.546 -0500
OS Version:      Mac OS X 10.6.2 (10C540)
Report Version:  6

Interval Since Last Report:          638292 sec
Crashes Since Last Report:           20
Per-App Interval Since Last Report:  290327 sec
Per-App Crashes Since Last Report:   3
Anonymous UUID:                      2E70DF8D-111F-45E0-BFD4-9FEADC00ACB9

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000020
Crashed Thread:  19  Java: AWT-EventQueue-0

Application Specific Information:

Java information:
 Exception type: Bus Error (0xa) at pc=0x00007fff87c8ab5d

 Java VM: Java HotSpot(TM) 64-Bit Server VM (14.3-b01-101 mixed mode
macosx-amd64)

Current thread (0x00000001019eb000):  JavaThread "AWT-EventQueue-0"
[_thread_in_native, id=667934720, stack(0x0000000127bfe000,0x0000000127cfe000)]
Stack: [0x0000000127bfe000,0x0000000127cfe000]
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  apple.laf.CoreUIControl.paintChangesToCGContext(JJJJDDDDJ)I+0
j  apple.laf.CoreUIControl.paintToCGContext(JDDDD)I+80
j  apple.laf.CoreUIControl.paint(JDDDD)V+9
j  com.apple.laf.AquaPainter$DirectOSXSurfacePainter.drawIntoCGContext(J)V+37
v  ~StubRoutines::call_stub
j 
apple.awt.OSXSurfaceData.performNativeCocoaDrawing(Lapple/awt/OSXSurfaceData$CGC
ontextDrawable;)I+0
j 
apple.awt.OSXSurfaceData.performCocoaDrawing(Lsun/java2d/SunGraphics2D;Lapple/aw
t/OSXSurfaceData$CGContextDrawable;)V+39
j 
com.apple.laf.AquaPainter$DirectOSXSurfacePainter.paint(Lsun/java2d/SunGraphics2
D;Lapple/laf/CoreUIState;Ljava/awt/Component;)V+30
j 
com.apple.laf.AquaPainter.paint(Ljava/awt/Graphics;Ljava/awt/Component;IIII)V+41
j 
com.apple.laf.AquaInternalFrameBorder.drawWindowTitle(Ljava/awt/Graphics;Ljavax/
swing/JInternalFrame;IIII)V+67
j 
com.apple.laf.AquaInternalFrameBorder.paintBorder(Ljavax/swing/JInternalFrame;Lj
ava/awt/Component;Ljava/awt/Graphics;IIII)V+90
j 
com.apple.laf.AquaInternalFrameBorder.paintBorder(Ljava/awt/Component;Ljava/awt/
Graphics;IIII)V+14
j 
javax.swing.border.CompoundBorder.paintBorder(Ljava/awt/Component;Ljava/awt/Grap
hics;IIII)V+126
j  javax.swing.JComponent.paintBorder(Ljava/awt/Graphics;)V+22
j  javax.swing.JComponent.paint(Ljava/awt/Graphics;)V+296
j  javax.swing.JComponent.paintChildren(Ljava/awt/Graphics;)V+473
j  javax.swing.JComponent.paint(Ljava/awt/Graphics;)V+322
j  javax.swing.JLayeredPane.paint(Ljava/awt/Graphics;)V+73
j  javax.swing.JComponent.paintChildren(Ljava/awt/Graphics;)V+473
j  javax.swing.JComponent.paint(Ljava/awt/Graphics;)V+322
j  javax.swing.JLayeredPane.paint(Ljava/awt/Graphics;)V+73
j  javax.swing.JComponent.paintChildren(Ljava/awt/Graphics;)V+473
j  javax.swing.JComponent.paint(Ljava/awt/Graphics;)V+322
j 
java.awt.GraphicsCallback$PaintCallback.run(Ljava/awt/Component;Ljava/awt/Graphi
cs;)V+27
j 
sun.awt.SunGraphicsCallback.runOneComponent(Ljava/awt/Component;Ljava/awt/Rectan
gle;Ljava/awt/Graphics;Ljava/awt/Shape;I)V+155
j 
sun.awt.SunGraphicsCallback.runComponents([Ljava/awt/Component;Ljava/awt/Graphic
s;I)V+104
j  java.awt.Container.paint(Ljava/awt/Graphics;)V+98
j 
sun.awt.RepaintArea.paintComponent(Ljava/awt/Component;Ljava/awt/Graphics;)V+6
j  sun.awt.RepaintArea.paint(Ljava/lang/Object;Z)V+368
j  apple.awt.ComponentModel.handleEvent(Ljava/awt/AWTEvent;)V+70
j  apple.awt.CWindow.handleEvent(Ljava/awt/AWTEvent;)V+95
j  java.awt.Component.dispatchEventImpl(Ljava/awt/AWTEvent;)V+853
j  java.awt.Container.dispatchEventImpl(Ljava/awt/AWTEvent;)V+42
j  java.awt.Window.dispatchEventImpl(Ljava/awt/AWTEvent;)V+19
j  java.awt.Component.dispatchEvent(Ljava/awt/AWTEvent;)V+2
j  java.awt.EventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V+46
j  java.awt.EventDispatchThread.pumpOneEventForFilters(I)Z+204
j 
java.awt.EventDispatchThread.pumpEventsForFilter(ILjava/awt/Conditional;Ljava/aw
t/EventFilter;)V+30
j 
java.awt.EventDispatchThread.pumpEventsForHierarchy(ILjava/awt/Conditional;Ljava
/awt/Component;)V+11
j  java.awt.EventDispatchThread.pumpEvents(ILjava/awt/Conditional;)V+4
j  java.awt.EventDispatchThread.pumpEvents(Ljava/awt/Conditional;)V+3
j  java.awt.EventDispatchThread.run()V+9
v  ~StubRoutines::call_stub

Java Threads: ( => current thread )
  0x00000001129a2800 JavaThread "DestroyJavaVM" [_thread_blocked,
id=5246976, stack(0x0000000100401000,0x0000000100501000)]
=>0x00000001019eb000 JavaThread "AWT-EventQueue-0" [_thread_in_native,
id=667934720, stack(0x0000000127bfe000,0x0000000127cfe000)]
  0x0000000101a68800 JavaThread "AWT-Shutdown" [_thread_blocked,
id=666873856, stack(0x0000000127afb000,0x0000000127bfb000)]
  0x000000010188e800 JavaThread "Java2D Disposer" daemon [_thread_blocked,
id=662573056, stack(0x00000001276e1000,0x00000001277e1000)]
  0x00000001128b8000 JavaThread "AWT-AppKit" daemon [_thread_in_native,
id=1887423456, stack(0x00007fff5f400000,0x00007fff5fc00000)]
  0x00000001018a0800 JavaThread "Low Memory Detector" daemon
[_thread_blocked, id=339779584, stack(0x000000011430a000,0x000000011440a000)]
  0x000000010189f800 JavaThread "CompilerThread1" daemon [_thread_blocked,
id=338718720, stack(0x0000000114207000,0x0000000114307000)]
  0x000000010189f000 JavaThread "CompilerThread0" daemon [_thread_blocked,
id=337657856, stack(0x0000000114104000,0x0000000114204000)]
  0x000000010189e000 JavaThread "Signal Dispatcher" daemon
[_thread_blocked, id=336596992, stack(0x0000000114001000,0x0000000114101000)]
  0x000000010189d800 JavaThread "Surrogate Locker Thread (CMS)" daemon
[_thread_blocked, id=326111232, stack(0x0000000113601000,0x0000000113701000)]
  0x000000010188b800 JavaThread "Finalizer" daemon [_thread_blocked,
id=322990080, stack(0x0000000113307000,0x0000000113407000)]
  0x000000010188b000 JavaThread "Reference Handler" daemon
[_thread_blocked, id=321929216, stack(0x0000000113204000,0x0000000113304000)]
Other Threads:
  0x0000000101884000 VMThread [stack:
0x0000000113101000,0x0000000113201000] [id=320868352]
  0x00000001018a1000 WatcherThread [stack:
0x000000011440d000,0x000000011450d000] [id=340840448]

VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None

Heap
 par new generation   total 18624K, used 11662K [0x0000000105010000,
0x00000001064d0000, 0x00000001064d0000)
  eden space 16000K,  72% used [0x0000000105010000, 0x0000000105b73900,
0x0000000105fb0000)
  from space 2624K,   0% used [0x0000000105fb0000, 0x0000000105fb0000,
0x0000000106240000)
  to   space 2624K,   0% used [0x0000000106240000, 0x0000000106240000,
0x00000001064d0000)
 concurrent mark-sweep generation total 62656K, used 0K
[0x00000001064d0000, 0x000000010a200000, 0x000000010a410000)
 concurrent-mark-sweep perm gen total 21248K, used 13587K
[0x000000010a410000, 0x000000010b8d0000, 0x000000010f810000)

Virtual Machine Arguments:
JVM Args: -Dfile.encoding=MacRoman 
Java Command: SeaglassBugDemo
Launcher Type: SUN_STANDARD
Physical Memory: Page Size = 4k, Total = 3840M, Free = 65M

Original issue reported on code.google.com by [email protected] on 2 Feb 2010 at 12:13

Build failed using Maven

What steps will reproduce the problem?
1.Open project with Netbeans 6.8 or 6.9rc2 as Maven project
2.select the project
3.Issue command clean install 

Used a console as well trying to build.

What is the expected output? What do you see instead?
Expected for the build to finish successfully. Instead, i get 
[ERROR]COMPILATION ERROR : 
details attached.

What version of the product are you using? On what operating system? What
JRE version?
Using latest trunk version of seaglass.
Using Windows 7 32bit
Java: 1.6.0_18; Java HotSpot(TM) Client VM 16.0-b13
Maven 2.2.1 or Maven 3



Please provide any additional information below.
Tried the build with command line only and have exactly the same result.
I attached the build process.  The warning are okay, but there are errors about 
classes that are not available. However I have checked the JDK and they are 
there. So have no idea why they are not visible during a maven build.



Original issue reported on code.google.com by [email protected] on 12 Jun 2010 at 12:56

Attachments:

JXTable rendering problem

I noticed that the striped table background does not appear when I am using
JXTable from the SwingX project.

Original issue reported on code.google.com by [email protected] on 5 Mar 2010 at 10:05

Error

error

What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?
Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException:
Width (0) and height (0) cannot be <= 0
        at
java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.
java:999)
        at java.awt.image.BufferedImage.<init>(BufferedImage.java:340)
        at
sun.awt.windows.TranslucentWindowPainter$BIWindowPainter.getBIBackBuffer(Translu
centWindowPainter.java:185)
        at
sun.awt.windows.TranslucentWindowPainter$BIWindowPainter.getBackBuffer(Transluce
ntWindowPainter.java:193)
        at
sun.awt.windows.TranslucentWindowPainter.updateWindow(TranslucentWindowPainter.j
ava:132)
        at sun.awt.windows.WWindowPeer.updateWindow(WWindowPeer.java:652)
        at sun.awt.windows.WWindowPeer.setOpaque(WWindowPeer.java:639)
        at java.awt.Window.applyOpaque(Window.java:3305)
        at java.awt.Window.addNotify(Window.java:652)
        at java.awt.Frame.addNotify(Frame.java:470)
        at java.awt.Window.show(Window.java:841)
        at java.awt.Component.show(Component.java:1447)
        at java.awt.Component.setVisible(Component.java:1400)
        at java.awt.Window.setVisible(Window.java:824)
        at
expertsyspredictionLauncher.mainLauncher.<init>(mainLauncher.java:82)
        at
expertsyspredictionLauncher.mainLauncher$2.run(mainLauncher.java:110)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
        at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269
)
        at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
        at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174
)
        at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
        at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)


What version of the product are you using? On what operating system?


Please provide any additional information below.


OS  
Windows Xp SP 3

JDK 6 Update 18

Original issue reported on code.google.com by [email protected] on 13 Feb 2010 at 4:11

  • Merged into: #19

JTabbedPane does not seem to be painting itself correctly

What steps will reproduce the problem?
1. I designed my form using NetBeans 6.8 (Free Design - Java 6 layout
engine I think)
2. Set the LAF. My form has 2 tabs 

What is the expected output? What do you see instead?
- All the elements in the tabs get all bunched up. Sorry cannot send you a
screenshot.

What version of the product are you using? On what operating system?
0.1.5 seaglass on Java 6_18

Thanks!

Original issue reported on code.google.com by [email protected] on 1 Feb 2010 at 9:47

Search Field variant doesn't alter cursor over buttons

What steps will reproduce the problem?
1. Create a JTextField with the JTextField.variant == Search.
2. Move the mouse cursor over the find (magnifying glass) and cancel (x) 
buttons.

What is the expected output? What do you see instead?

The cursor remains an insertion point cursor instead of a pointer cursor.

This simply has not yet been implemented, but it should be.

Original issue reported on code.google.com by kahuxtable on 18 Jan 2010 at 7:48

Disabled JButtons on JToolBar should disable both the button icons and text.

What steps will reproduce the problem?
1. Create a JToolbar with a disabled JButton with an icon

What is the expected output? What do you see instead?
     The JButton's icon is grayed out but the text is not. The text and icon of a toolbar button should both be grayed out.

What version of the product are you using? On what operating system? What
JRE version?
     Java 6u16. Windows XP, SP3

Please provide any additional information below.
     I've been told this is a problem in Nimbus too, so as the remaining Nimbus deps disappear this might provide a chance to fix it.

Original issue reported on code.google.com by [email protected] on 14 Jun 2010 at 4:50

Theme is giving some exceptions

What steps will reproduce the problem?
1.By just compiling it
2.Selecting any component of swing except menus(not menu items).


What is the expected output? What do you see instead?
The Windows borders should not be there.

What version of the product are you using? On what operating system?
version 0.1.6 on Windows 7

Please provide any additional information below.
It gives me this error 
java.lang.IllegalArgumentException: Width (0) and height (0) cannot be <= 0




Original issue reported on code.google.com by [email protected] on 7 Feb 2010 at 5:52

Slow redrawing of tables

1. Run SeaGlass Laffy demo.
2. Select the tree, table, list tab.
3. Scroll down using a wheel scroll through the page.

What is the expected output? What do you see instead?

I expect smooth scrolling, but when the tables enter the viewport, the 
scrolling slows down.

Original issue reported on code.google.com by kahuxtable on 14 Dec 2009 at 4:15

Toolbar gradient does not match frame gradient for non-Mac

Run program with a toolbar using Sea Glass on non-Mac or using -
DSeaGlass.Override.os.name=Windows

I expect the gradient on the toolbar to match the border of the frame 
seamlessly, but the colors 
aren't matching, quite.

They have independent gradients and they just don't match. Need to look into 
this.

Original issue reported on code.google.com by kahuxtable on 14 Dec 2009 at 3:07

JSeparator doesn't draw line

What steps will reproduce the problem?
1. Add a JSeparator to a panel

What is the expected output? What do you see instead?

I expect a separator line of some sort. I don't see one.

Please use labels and text to provide additional information.

Original issue reported on code.google.com by kahuxtable on 16 Jun 2010 at 2:23

Attachments:

Tree Selection Paint issues

What steps will reproduce the problem?
1. Select a line in a tree
2. Select another line in tree (not the next one, skip two or three lines)

What is the expected output? What do you see instead?
Old line should be deselected and white background. But some painting
artefacts remain. Some dark blue lines remain from the old selection. When
a repaint of the tree is forced by resizing the window then they are gone.

What version of the product are you using? On what operating system? What
JRE version?  Linux: JDK 1.6-16

Please provide any additional information below.
See attached screenshot of laffy how it looks like.

Thanks,
- Rossi

Original issue reported on code.google.com by [email protected] on 11 Mar 2010 at 7:07

Attachments:

error while running

i downloaded the latest jar file of seaglass and used:

  try {

UIManager.setLookAndFeel("com.seaglasslookandfeel.SeaGlassLookAndFeel");

        } catch (Exception e) {
            e.printStackTrace();
        }

but on running error is thrown

deps-jar:
Compiling 1 source file to D:\BurdenDistribution\build\classes
compile:
run:
Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException:
Width (0) and height (0) cannot be <= 0
        at
java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.
java:999)
        at java.awt.image.BufferedImage.<init>(BufferedImage.java:340)
        at
sun.awt.windows.TranslucentWindowPainter$BIWindowPainter.getBIBackBuffer(Translu
centWindowPainter.java:185)
        at
sun.awt.windows.TranslucentWindowPainter$BIWindowPainter.getBackBuffer(Transluce
ntWindowPainter.java:193)
        at
sun.awt.windows.TranslucentWindowPainter.updateWindow(TranslucentWindowPainter.j
ava:132)
        at sun.awt.windows.WWindowPeer.updateWindow(WWindowPeer.java:652)
        at sun.awt.windows.WWindowPeer.setOpaque(WWindowPeer.java:639)
        at java.awt.Window.applyOpaque(Window.java:3305)
        at java.awt.Window.addNotify(Window.java:652)
        at java.awt.Frame.addNotify(Frame.java:470)
        at java.awt.Window.show(Window.java:841)
        at java.awt.Component.show(Component.java:1447)
        at java.awt.Component.setVisible(Component.java:1400)
        at java.awt.Window.setVisible(Window.java:824)
        at launcher.BDMLauncher.<init>(BDMLauncher.java:108)
        at launcher.BDMLauncher$2.run(BDMLauncher.java:128)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
        at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269
)
        at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
        at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174
)
        at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
        at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

Original issue reported on code.google.com by [email protected] on 31 Dec 2009 at 10:29

Make buttons always have their standard height unless overridden by code.

From lemmi:

SeaGlass is adopting quite a bit of the Apple features / design guidelines and 
it just occured to me 
that there is a big difference in the way buttons are treated. On Aqua, the 
buttons pretty much 
always have their standard height. For example when using MacWidgets: on Mac 
the toolbar 
buttons have the standard button height. On Windows the buttons fill the entire 
height of the 
toolbar. I think this is one of those very flexible behaviours of Swing that 
ultimately lead to bad UIs, 
because buttons are used inconsistently.

My proposal would be that SeaGlass buttons always use their standard height, 
centering themselves 
within the layout bounds (if possible). A client property could be used to 
revert back to the 
standard behaviour.

Original issue reported on code.google.com by kahuxtable on 28 Feb 2010 at 4:41

Custom coloring of JTable rows

Using a 

JXTable+ColorHighlighter 
or 
JTable+DefaultTableCellRenderer 

pair to do custom coloring of JTable rows does not  currently work. Might be 
part of a larger table renderer glitch.

Original issue reported on code.google.com by [email protected] on 6 Mar 2010 at 7:13

Frame Icon disapears!!!!

What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?


What version of the product are you using? On what operating system? What
JRE version?
windows Xp service pack 3
JDK 6 update 18

Please provide any additional information below.


FrameIcon disapears

Original issue reported on code.google.com by [email protected] on 17 Feb 2010 at 9:46

Cannot show Chinese Character in JFrame title correctly.

What steps will reproduce the problem?
1.Use com.seaglasslookandfeel.SeaGlassLookAndFeel as look and feel
2.Set title on JFrame by value "简单例子" (Chinese Characters)
3.Show the JFrame will show four little blank box in 

What is the expected output? What do you see instead?
It should show four right shape for the four chinese characters instead of
four little blank box.

What version of the product are you using? On what operating system? What
JRE version?
I use version 0.1.7.2.2 of SeaGlassLookAndFeel.

Please provide any additional information below.
This is caused by following code in class SeaGlassLookAndFeel
    private Font getDefaultFont()
    {
        Font font = null;
        if(PlatformUtils.isMac())
            font = new Font("Lucida Grande", 0, 13);
        if(font == null)
            font = new Font("Lucida Sans Unicode", 0, 13);
        return font;
    }
The font "Lucida Sans Unicode" don't support Chinese character correctly.
Three suggestion for this problem:
1. Use system default font instead of "Lucida Sans Unicode"
2. Make default font name configurable
3. Change getDefaultFont() function to protected instead of private

Original issue reported on code.google.com by [email protected] on 30 Apr 2010 at 6:07

Factor out common code from the painters

Currently there is an awful lot of duplicated code, including magic numbers and 
hard-coded colors, 
in the painter classes. Much of this could be factored into some common utility 
classes.

This should be done before the 0.2 release tag.

Original issue reported on code.google.com by kahuxtable on 20 Jan 2010 at 3:32

Arrow and Search buttons vanish when moved off of while pressed.

What steps will reproduce the problem?

Create a scrollbar and press one of the increase/decrease buttons. While 
pressing, move the mouse 
cursor off of the button.

The button stops being painted.

Original issue reported on code.google.com by kahuxtable on 18 Jan 2010 at 2:52

JTabbedPane inside JSplitPane crash after updated to 0.1.7.1

What steps will reproduce the problem?
1. Open the application

What is the expected output? What do you see instead?
This is a simple frame with JTabbedPane inside a JSplitPane
I expected to see my application running. (It works before with 0.1.6.x) 
However, it crashed.
Please see attached code and error logs.

What version of the product are you using? On what operating system? 
What JRE version?
Mac OS X 10.6.2 JRE 1.6

Please provide any additional information below.

import java.awt.BorderLayout;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

import javax.swing.JDesktopPane;
import javax.swing.JFrame;
import javax.swing.JInternalFrame;
import javax.swing.JPanel;
import javax.swing.JSplitPane;
import javax.swing.JTabbedPane;
import javax.swing.UIManager;


public class SeaglassBugDemo extends JFrame {

    public static void main(String[] args) {
        //set look and feel
        try {

UIManager.setLookAndFeel("com.seaglasslookandfeel.SeaGlassLookAndFeel
"); 
            System.out.println(">> Set Seaglass look and feel");
//            
UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookA
ndFeel");
//            System.out.println(">> Set Nimbus look and feel");
        } catch (Exception e) {
            System.err.println(">> Cannot set look and feel");
            e.printStackTrace();
        }

        SeaglassBugDemo demo = new SeaglassBugDemo();
        demo.addWindowListener(new WindowAdapter() {
            @Override
            public void windowClosing(WindowEvent e) {
                System.exit(0);
            }
        });
    }

    public SeaglassBugDemo(){
        super("Seaglass");

        JSplitPane splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT);
        JTabbedPane tabPane2 = new JTabbedPane();
        tabPane2.add(new JPanel(),"test");
        splitPane.add(tabPane2);
        this.getContentPane().add(splitPane,BorderLayout.CENTER);

        this.setBounds(0,0,800,600);
        this.setResizable(true);
        this.setVisible(true);
    }

}

--------------------

*Logs*

Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
    at 
com.seaglasslookandfeel.ui.SeaGlassTabbedPaneUI.getCloseButtonBounds(
SeaGlassTabbedPaneUI.java:1137)
    at 
com.seaglasslookandfeel.ui.SeaGlassTabbedPaneUI.calculateTabWidth(SeaG
lassTabbedPaneUI.java:1002)
    at 
com.seaglasslookandfeel.ui.SeaGlassTabbedPaneUI.calculateMaxTabWidth(
SeaGlassTabbedPaneUI.java:1030)
    at 
javax.swing.plaf.basic.BasicTabbedPaneUI$TabbedPaneLayout.calculateSize
(BasicTabbedPaneUI.java:2315)
    at 
javax.swing.plaf.basic.BasicTabbedPaneUI$TabbedPaneLayout.preferredLay
outSize(BasicTabbedPaneUI.java:2262)
    at java.awt.Container.preferredSize(Container.java:1599)
    at java.awt.Container.getPreferredSize(Container.java:1584)
    at javax.swing.JComponent.getPreferredSize(JComponent.java:1624)
    at 
javax.swing.plaf.basic.BasicSplitPaneUI$BasicHorizontalLayoutManager.getP
referredSizeOfComponent(BasicSplitPaneUI.java:1613)
    at 
javax.swing.plaf.basic.BasicSplitPaneUI$BasicHorizontalLayoutManager.getP
referredSizes(BasicSplitPaneUI.java:1846)
    at 
javax.swing.plaf.basic.BasicSplitPaneUI$BasicHorizontalLayoutManager.rese
tToPreferredSizes(BasicSplitPaneUI.java:1883)
    at 
javax.swing.plaf.basic.BasicSplitPaneUI$BasicHorizontalLayoutManager.layo
utContainer(BasicSplitPaneUI.java:1312)
    at java.awt.Container.layout(Container.java:1421)
    at java.awt.Container.doLayout(Container.java:1410)
    at java.awt.Container.validateTree(Container.java:1507)
    at java.awt.Container.validateTree(Container.java:1513)
    at java.awt.Container.validateTree(Container.java:1513)
    at java.awt.Container.validateTree(Container.java:1513)
    at java.awt.Container.validateTree(Container.java:1513)
    at java.awt.Container.validate(Container.java:1480)
    at java.awt.Window.show(Window.java:860)
    at java.awt.Component.show(Component.java:1563)
    at java.awt.Component.setVisible(Component.java:1515)
    at java.awt.Window.setVisible(Window.java:841)
    at SeaglassBugDemo.<init>(SeaglassBugDemo.java:59)
    at SeaglassBugDemo.main(SeaglassBugDemo.java:28)

Original issue reported on code.google.com by [email protected] on 28 Feb 2010 at 9:24

Popup menus have green background on Mac

Run a Sea Glass program with popup menus and click on one.

I expect a grey background similar to a Mac or pretty much anything. Instead, 
the background 
seems to be green, at least on my Snow Leopard machine.

I have no idea why this is happening and haven't looked into it.

Original issue reported on code.google.com by kahuxtable on 14 Dec 2009 at 3:09

ClassCastException in file SeaGlassTableUI.java on line 973

Error log:
Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException:
javax.swing.JPanel cannot be cast to javax.swing.JViewport
    at
com.seaglasslookandfeel.ui.SeaGlassTableUI$1.paintBorder(SeaGlassTableUI.java:97
3)

There is an exception thrown at the point mentioned in the title, while
trying to paint a new JTabbedPane contents, containing JTable and JPanels,
and makes it impossible to view the table. This is performed due to
changing a tabbed pane. However, minimizing and maximizing the window
causes the tabbed pane to show its new contents properly, without any problems.

A simple change of line 973 to:

Container viewport = table.getParent();

and line 975 to:

if ((viewport instanceof JViewport) && table.getWidth() <
viewport.getWidth()) {

makes it working properly, with the same meaning of code, I hope.

Original issue reported on code.google.com by saephir on 9 Apr 2010 at 1:14

Icons in TableHeader

I think it is essential that JTableHeader supports icons out of the box. It
is currently too difficult for many users to teach JTableHeader renderers
to a) use the current look and feel and b) display an icon. Unexperienced
Swing developers end up writing their own table header renderers in order
to show icons but then they are often loosing the look and feel attributes
of the header.

Original issue reported on code.google.com by [email protected] on 5 Mar 2010 at 10:09

Placeholder text in search fields not clipped correctly

What steps will reproduce the problem?
JTextField tf = new JTextField(10);
tf.putClientProperty("JTextField.variant", "search");
tf.putClientProperty("JTextField.Search.PlaceholderText", "Very long text
that XXXXXXXXXX");

What is the expected output? What do you see instead?
The placeholder text is painted over the bounds of the round search field
border. Text should be truncated in this mode inside of the round field
borders.


Original issue reported on code.google.com by [email protected] on 12 Mar 2010 at 8:09

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.