Skip to main content

small bug in Resource editor

4 replies [Last post]
Anonymous

Hi again,

I just came accross a litle bug while using the resource ediotr.
I was unable to edit themes since this morning. When I clicked on a theme
(such as javaTheme for example) the theme editing form would never display
and the aditor looked like frozen.
I had my resource editor window enlarged i.e. wider than original. when i
resized my editor window to its original size, the bug is gone.
Also, a similar bug seems to appear when clicking on the enlarge icon in the
upper wight corner of the window.

I'm on windows Vista home edition. Maybe this is why ? ...

Hope this helps.
[att1.html]

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
az lists

The problem doesn't occur when using the "classic" windows look and feel

On Thu, Jun 26, 2008 at 4:42 PM, Shai Almog wrote:

> Hi,
> Java SE under Vista has a bug with the system look and feel (Aero). Try
> changing to the cross platform look and feel in the menu and see if you can
> reproduce it.
>
> Also when running into resource editor issues such as this try running it
> from command line (using java -jar ResourceEditor.jar) and see if you get
> stack traces that can help us identify the problem.
>
> Thanks,
> Shai.
>
> Hi again,
>
>
> I just came accross a litle bug while using the resource ediotr.
>
> I was unable to edit themes since this morning. When I clicked on a theme
> (such as javaTheme for example) the theme editing form would never display
> and the aditor looked like frozen.
>
> I had my resource editor window enlarged i.e. wider than original. when i
> resized my editor window to its original size, the bug is gone.
>
> Also, a similar bug seems to appear when clicking on the enlarge icon in
> the upper wight corner of the window.
>
>
> I'm on windows Vista home edition. Maybe this is why ? ...
>
>
> Hope this helps.
>
>
>
[att1.html]

Shai Almog

Hi,
Java SE under Vista has a bug with the system look and feel (Aero).
Try changing to the cross platform look and feel in the menu and see
if you can reproduce it.

Also when running into resource editor issues such as this try
running it from command line (using java -jar ResourceEditor.jar) and
see if you get stack traces that can help us identify the problem.

Thanks,
Shai.

> Hi again,
>
> I just came accross a litle bug while using the resource ediotr.
> I was unable to edit themes since this morning. When I clicked on a
> theme (such as javaTheme for example) the theme editing form would
> never display and the aditor looked like frozen.
> I had my resource editor window enlarged i.e. wider than original.
> when i resized my editor window to its original size, the bug is gone.
> Also, a similar bug seems to appear when clicking on the enlarge
> icon in the upper wight corner of the window.
>
> I'm on windows Vista home edition. Maybe this is why ? ...
>
> Hope this helps.

[att1.html]

az lists

Here's the stack trace from the command line right after creating a new
Theme in Resource editor

C:\ALEX\DEV\LWUIT_EA\util>java -jar ResourceEdit.jar
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at
sun.swing.table.DefaultTableCellHeaderRenderer.getColumnSortOrder(Unk
nown Source)
at
com.sun.java.swing.plaf.windows.WindowsTableHeaderUI$XPDefaultRendere
r.getTableCellRendererComponent(Unknown Source)
at
com.sun.jwt.resources.editor.editors.BaseForm$HeaderRenderer.getTable
CellRendererComponent(BaseForm.java:419)
at
javax.swing.plaf.basic.BasicTableHeaderUI.getHeaderRenderer(Unknown S
ource)
at javax.swing.plaf.basic.BasicTableHeaderUI.getHeaderHeight(Unknown
Sou
rce)
at
javax.swing.plaf.basic.BasicTableHeaderUI.createHeaderSize(Unknown So
urce)
at
javax.swing.plaf.basic.BasicTableHeaderUI.getPreferredSize(Unknown So
urce)
at javax.swing.JComponent.getPreferredSize(Unknown Source)
at javax.swing.ViewportLayout.preferredLayoutSize(Unknown Source)
at java.awt.Container.preferredSize(Unknown Source)
at java.awt.Container.getPreferredSize(Unknown Source)
at javax.swing.JComponent.getPreferredSize(Unknown Source)
at javax.swing.ScrollPaneLayout.layoutContainer(Unknown Source)
at java.awt.Container.layout(Unknown Source)
at java.awt.Container.doLayout(Unknown Source)
at java.awt.Container.validateTree(Unknown Source)
at java.awt.Container.validate(Unknown Source)
at javax.swing.RepaintManager.validateInvalidComponents(Unknown
Source)
at
javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknow
n 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)

On Thu, Jun 26, 2008 at 4:42 PM, Shai Almog wrote:

> Hi,
> Java SE under Vista has a bug with the system look and feel (Aero). Try
> changing to the cross platform look and feel in the menu and see if you can
> reproduce it.
>
> Also when running into resource editor issues such as this try running it
> from command line (using java -jar ResourceEditor.jar) and see if you get
> stack traces that can help us identify the problem.
>
> Thanks,
> Shai.
>
> Hi again,
>
>
> I just came accross a litle bug while using the resource ediotr.
>
> I was unable to edit themes since this morning. When I clicked on a theme
> (such as javaTheme for example) the theme editing form would never display
> and the aditor looked like frozen.
>
> I had my resource editor window enlarged i.e. wider than original. when i
> resized my editor window to its original size, the bug is gone.
>
> Also, a similar bug seems to appear when clicking on the enlarge icon in
> the upper wight corner of the window.
>
>
> I'm on windows Vista home edition. Maybe this is why ? ...
>
>
> Hope this helps.
>
>
>
[att1.html]

Shai Almog

Yes this is a well known bug in Java 1.6_04 and higher the workaround
is to use an older version or avoid Aero.
All the issues are related to this:
https://lwuit.dev.java.net/issues/show_bug.cgi?id=2

And the only solution we found is to allow changing the look and feel...

Thanks,
Shai.

> Here's the stack trace from the command line right after creating a
> new Theme in Resource editor
>
>
> C:\ALEX\DEV\LWUIT_EA\util>java -jar ResourceEdit.jar
> Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
> at
> sun.swing.table.DefaultTableCellHeaderRenderer.getColumnSortOrder(Unk
> nown Source)
> at com.sun.java.swing.plaf.windows.WindowsTableHeaderUI
> $XPDefaultRendere
> r.getTableCellRendererComponent(Unknown Source)
> at com.sun.jwt.resources.editor.editors.BaseForm
> $HeaderRenderer.getTable
> CellRendererComponent(BaseForm.java:419)
> at
> javax.swing.plaf.basic.BasicTableHeaderUI.getHeaderRenderer(Unknown S
> ource)
> at javax.swing.plaf.basic.BasicTableHeaderUI.getHeaderHeight
> (Unknown Sou
> rce)
> at
> javax.swing.plaf.basic.BasicTableHeaderUI.createHeaderSize(Unknown So
> urce)
> at
> javax.swing.plaf.basic.BasicTableHeaderUI.getPreferredSize(Unknown So
> urce)
> at javax.swing.JComponent.getPreferredSize(Unknown Source)
> at javax.swing.ViewportLayout.preferredLayoutSize(Unknown
> Source)
> at java.awt.Container.preferredSize(Unknown Source)
> at java.awt.Container.getPreferredSize(Unknown Source)
> at javax.swing.JComponent.getPreferredSize(Unknown Source)
> at javax.swing.ScrollPaneLayout.layoutContainer(Unknown
> Source)
> at java.awt.Container.layout(Unknown Source)
> at java.awt.Container.doLayout(Unknown Source)
> at java.awt.Container.validateTree(Unknown Source)
> at java.awt.Container.validate(Unknown Source)
> at javax.swing.RepaintManager.validateInvalidComponents
> (Unknown Source)
> at javax.swing.SystemEventQueueUtilities
> $ComponentWorkRequest.run(Unknow
> n 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)
>
>
>
> On Thu, Jun 26, 2008 at 4:42 PM, Shai Almog
> wrote:
> Hi,
> Java SE under Vista has a bug with the system look and feel (Aero).
> Try changing to the cross platform look and feel in the menu and
> see if you can reproduce it.
>
> Also when running into resource editor issues such as this try
> running it from command line (using java -jar ResourceEditor.jar)
> and see if you get stack traces that can help us identify the problem.
>
> Thanks,
> Shai.
>
>> Hi again,
>>
>> I just came accross a litle bug while using the resource ediotr.
>> I was unable to edit themes since this morning. When I clicked on
>> a theme (such as javaTheme for example) the theme editing form
>> would never display and the aditor looked like frozen.
>> I had my resource editor window enlarged i.e. wider than original.
>> when i resized my editor window to its original size, the bug is
>> gone.
>> Also, a similar bug seems to appear when clicking on the enlarge
>> icon in the upper wight corner of the window.
>>
>> I'm on windows Vista home edition. Maybe this is why ? ...
>>
>> Hope this helps.
>
>

[att1.html]