
|
Issues faced while updating to substance-5
Hi Kirill, As you've made great performance improvements to Susbtance5, I wanted to try it in my application. But I'm facing some issues here. I'm using substance-lite-feel with swingx and flamingo plugins also(all are latest builds) with Java6_04 on Ubuntu-8.04.
1. JXTable column control is not visible 2. The following error is thrown when there're no tabs added to a JTabbedPane, but this works under substance-4.3 java.lang.ArrayIndexOutOfBoundsException: No such child: -1
at java.awt.Container.getComponent(Container.java:281) at org.jvnet.substance.utils.SubstanceThemeUtilities.getColorScheme(SubstanceThemeUtilities.java:128) at org.jvnet.substance.SubstanceTabbedPaneUI.paintContentBorder(SubstanceTabbedPaneUI.java:2104)
... And the following two are not issues, but would be nice to have them. 1. Non-editable combo with DefaultListCellRenderer shows with a white background(this's resolved in substance-4.3). https://substance.dev.java.net/issues/show_bug.cgi?id=294
2. How can I configure JTree, so that it's nodes paint the connector
lines? The substance-test application also doesn't show them. Actually, I've one more issue with a layout using JXMultiSplitPane, which was working with 4.3. I'll send you the details, once I've recreated it outside my app.
Thanks a lot. Regards, Prashant PS. The attached file is a very simple test class to show the above two issues and Jun-2nd build prints some values on System.out
[SubstanceTests.java] /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.sample.substance;
import javax.swing.JComponent;
import javax.swing.JFrame;
import javax.swing.JScrollPane;
import javax.swing.JTabbedPane;
import javax.swing.SwingUtilities;
import javax.swing.UIManager;
import org.jdesktop.swingx.JXTable;
import org.jvnet.substance.skin.SubstanceSaharaLookAndFeel;
/**
* Simple Tests for substance look and feel.
* @author Prashant Bhat
*/
public class SubstanceTests {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
SwingUtilities.invokeLater(new Runnable() {
public void run() {
try {
UIManager.setLookAndFeel(new SubstanceSaharaLookAndFeel());
} catch (Exception e) {
e.printStackTrace();
}
JFrame frame = new JFrame("Substance Tests");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
SubstanceTests substanceTests = new SubstanceTests();
frame.add(substanceTests.createControl());
frame.pack();
frame.setSize(250, 150);
frame.setVisible(true);
}
});
}
private JComponent createControl() {
// throws an error as there are no tabs added, but works in susbstance-4.3
// return new JTabbedPane();
// doesn't show the column control for JXTable
JXTable jXTable = new JXTable(50, 5);
jXTable.setColumnControlVisible(true);
return new JScrollPane(jXTable);
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...
|

|
Re: Issues faced while updating to substance-5
Hi, I forgot to add one more :-) The JavaHelp - Table of Contents tree shows with a background colour of the current colorscheme. In 4.3, it's showing as any other tree with default renderers, but I've not tested this outside my application(But should be same, as I'm just adding JHelp with HelpSet to a JFrame).
Thanks and Regards, Prashant On Tue, Jun 3, 2008 at 6:14 PM, Prashant Bhat < prashant.mr@ gmail.com> wrote:
Hi Kirill,
As you've made great performance improvements to Susbtance5, I wanted to try it in my application. But I'm facing some issues here. I'm using substance-lite-feel with swingx and flamingo plugins also(all are latest builds) with Java6_04 on Ubuntu-8.04.
1. JXTable column control is not visible 2. The following error is thrown when there're no tabs added to a JTabbedPane, but this works under substance-4.3 java.lang.ArrayIndexOutOfBoundsException: No such child: -1
at java.awt.Container.getComponent(Container.java:281) at org.jvnet.substance.utils.SubstanceThemeUtilities.getColorScheme(SubstanceThemeUtilities.java:128) at org.jvnet.substance.SubstanceTabbedPaneUI.paintContentBorder(SubstanceTabbedPaneUI.java:2104)
...
And the following two are not issues, but would be nice to have them. 1. Non-editable combo with DefaultListCellRenderer shows with a white background(this's resolved in substance-4.3). https://substance.dev.java.net/issues/show_bug.cgi?id=294
2. How can I configure JTree, so that it's nodes paint the connector
lines? The substance-test application also doesn't show them.
Actually, I've one more issue with a layout using JXMultiSplitPane, which was working with 4.3. I'll send you the details, once I've recreated it outside my app.
Thanks a lot.
Regards, Prashant
PS. The attached file is a very simple test class to show the above two issues and Jun-2nd build prints some values on System.out
|

|
Re: Issues faced while updating to substance-5

Some parts of this message have been removed.
Learn more about Nabble's security policy.
Hi, Thanks for reporting this issues and trying the 5.0dev drops. The latest 5.0dev drop contains the following fixes: 1. JXTable column control will be properly visible. 2. No NPE on tabbed panes with no tabs 3. Removed debug tracing messages from the console To your two other questions: 1. In version 5.0, you will have to mark your renderer as non-opaque to have the gradient. This is what is done in SubstanceDefaultComboBoxRenderer. Code in 4.3 would ignore the background of the renderer - this was not correct. 2. In version 5.0, by design there are no lines in trees. This aligns Substance with most modern look-and-feels, including Vista, Mac, Nimbus and Quaqua. Thanks Kirill ----- Original Message ---- From: Prashant Bhat < prashant.mr@...> To: users@...Sent: Tuesday, June 3, 2008 3:14:13 AM Subject: Issues faced while updating to substance-5 Hi Kirill, As you've made great performance improvements to Susbtance5, I wanted to try it in my application. But I'm facing some issues here. I'm using substance-lite-feel with swingx and flamingo plugins also(all are latest builds) with Java6_04 on Ubuntu-8.04.
1. JXTable column control is not visible 2. The following error is thrown when there're no tabs added to a JTabbedPane, but this works under substance-4.3 java.lang.ArrayIndexOutOfBoundsException: No such child: -1
at java.awt.Container.getComponent(Container.java:281) at org.jvnet.substance.utils.SubstanceThemeUtilities.getColorScheme(SubstanceThemeUtilities.java:128) at org.jvnet.substance.SubstanceTabbedPaneUI.paintContentBorder(SubstanceTabbedPaneUI.java:2104)
... And the following two are not issues, but would be nice to have them. 1. Non-editable combo with DefaultListCellRenderer shows with a white background(this's resolved in substance-4.3). https://substance.dev.java.net/issues/show_bug.cgi?id=294
2. How can I configure JTree, so that it's nodes paint the connector
lines? The substance-test application also doesn't show them. Actually, I've one more issue with a layout using JXMultiSplitPane, which was working with 4.3. I'll send you the details, once I've recreated it outside my app.
Thanks a lot. Regards, Prashant PS. The attached file is a very simple test class to show the above two issues and Jun-2nd build prints some values on System.out
--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@...For additional commands, e-mail: users-help@...
|

|
Re: Issues faced while updating to substance-5

Some parts of this message have been removed.
Learn more about Nabble's security policy.
Hi, I don't really work with JavaHelp. Is this reproducible in a standalone application? Can you attach a screenshot of that tree under 4.3 and 5.0dev? Thanks Kirill ----- Original Message ---- From: Prashant Bhat < prashant.mr@...> To: users@...Sent: Tuesday, June 3, 2008 3:41:19 AM Subject: Re: Issues faced while updating to substance-5 Hi, I forgot to add one more :-) The JavaHelp - Table of Contents tree shows with a background colour of the current colorscheme. In 4.3, it's showing as any other tree with default renderers, but I've not tested this outside
my application(But should be same, as I'm just adding JHelp with HelpSet to a JFrame).
Thanks and Regards, Prashant On Tue, Jun 3, 2008 at 6:14 PM, Prashant Bhat < prashant.mr@ gmail.com> wrote:
Hi Kirill,
As you've made great performance improvements to Susbtance5, I wanted to try it in my application. But I'm facing some issues here. I'm using substance-lite-feel with swingx and flamingo plugins also(all are latest builds) with Java6_04 on Ubuntu-8.04.
1. JXTable column control is not visible 2. The following error is thrown when there're no tabs added to a JTabbedPane, but this works under substance-4.3 java.lang.ArrayIndexOutOfBoundsException: No such child: -1
at java.awt.Container.getComponent(Container.java:281) at org.jvnet.substance.utils.SubstanceThemeUtilities.getColorScheme(SubstanceThemeUtilities.java:128) at org.jvnet.substance.SubstanceTabbedPaneUI.paintContentBorder(SubstanceTabbedPaneUI.java:2104)
...
And the following two are not issues, but would be nice to have them. 1. Non-editable combo with DefaultListCellRenderer shows with a white background(this's resolved in substance-4.3). https://substance.dev.java.net/issues/show_bug.cgi?id=294
2. How can I configure JTree, so that it's nodes paint the connector
lines? The substance-test application also doesn't show them.
Actually, I've one more issue with a layout using JXMultiSplitPane, which was working with 4.3. I'll send you the details, once I've recreated it outside my app.
Thanks a lot.
Regards, Prashant
PS. The attached file is a very simple test class to show the above two issues and Jun-2nd build prints some values on System.out
|

|
Re: Issues faced while updating to substance-5
Hi Kirill, Thanks for those quick solutions! Now, I've fully updated the application to substance-5 and is working nicely. I've attached a sample project with java-help(it only has the table of contents!) Add the susbtance-4.3 or 5 library to lib folder and do 'ant run' to see the differences.
Thanks and Regards, Prashant On Wed, Jun 4, 2008 at 1:39 PM, Kirill Grouchnikov < kirillcool@...> wrote:
Hi, I don't really work with JavaHelp. Is this reproducible in a standalone application? Can you attach a screenshot of that tree under 4.3 and 5.0dev?
Thanks Kirill
Sent: Tuesday, June 3, 2008 3:41:19 AM Subject: Re: Issues faced while updating to substance-5
Hi,
I forgot to add one more :-)
The JavaHelp - Table of Contents tree shows with a background colour of the current colorscheme. In 4.3, it's showing as any other tree with default renderers, but I've not tested this outside
my application(But should be same, as I'm just adding JHelp with HelpSet to a JFrame).
Thanks and Regards, Prashant
On Tue, Jun 3, 2008 at 6:14 PM, Prashant Bhat < prashant.mr@ gmail.com> wrote:
Hi Kirill,
As you've made great performance improvements to Susbtance5, I wanted to try it in my application. But I'm facing some issues here. I'm using substance-lite-feel with swingx and flamingo plugins also(all are latest builds) with Java6_04 on Ubuntu-8.04.
1. JXTable column control is not visible 2. The following error is thrown when there're no tabs added to a JTabbedPane, but this works under substance-4.3 java.lang.ArrayIndexOutOfBoundsException: No such child: -1
at java.awt.Container.getComponent(Container.java:281) at org.jvnet.substance.utils.SubstanceThemeUtilities.getColorScheme(SubstanceThemeUtilities.java:128) at org.jvnet.substance.SubstanceTabbedPaneUI.paintContentBorder(SubstanceTabbedPaneUI.java:2104)
...
And the following two are not issues, but would be nice to have them. 1. Non-editable combo with DefaultListCellRenderer shows with a white background(this's resolved in substance-4.3). https://substance.dev.java.net/issues/show_bug.cgi?id=294
2. How can I configure JTree, so that it's nodes paint the connector
lines? The substance-test application also doesn't show them.
Actually, I've one more issue with a layout using JXMultiSplitPane, which was working with 4.3. I'll send you the details, once I've recreated it outside my app.
Thanks a lot.
Regards, Prashant
PS. The attached file is a very simple test class to show the above two issues and Jun-2nd build prints some values on System.out
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...
|

|
Re: Issues faced while updating to substance-5
Hi Kirill, On Wed, Jun 4, 2008 at 11:58 AM, Kirill Grouchnikov < kirillcool@...> wrote:
1. In version 5.0, you will have to mark your renderer as non-opaque to have the gradient. This is what is done in SubstanceDefaultComboBoxRenderer. Code in 4.3 would ignore the background of the renderer - this was not correct.
Ok, I'll change all the defaultCellRenderers to simple listCellRenderers(as I've already changed most of them ). But today, I noticed that JFileChooser's two comboboxes(Both top 'Look In'
and bottom 'Files Of Type' combo) also have the same issue:-)
Thanks and Regards,
Prashant
|

|
Re: Issues faced while updating to substance-5

Some parts of this message have been removed.
Learn more about Nabble's security policy.
Hi, This is the expected result. My current decision in version 5.0 is to respect the colors and opacity of cell renderers on tables, lists, trees and comboboxes. While enforcing the pre-5.0 policy (making the renderer non-opaque and assuming that it doesn't override the paint / paintComponent) works in most cases, when it breaks it looks really bad (like it did in NetBeans). So, applications that wish to have consistent visuals under Substance would have to either use the Substance-supplied renderers or mark their renderers as non-opaque. File chooser UI delegate is one of my least favorite places to go to, and i'll live with these two comboboxes being white. Thanks Kirill ----- Original Message ---- From: Prashant Bhat < prashant.mr@...> To: users@...Sent: Wednesday, June 4, 2008 8:08:49 PM Subject: Re: Issues faced while updating to substance-5
Hi Kirill, On Wed, Jun 4, 2008 at 11:58 AM, Kirill Grouchnikov < kirillcool@...> wrote:
1. In version 5.0, you will have to mark your renderer as non-opaque to have the gradient. This is what is done in SubstanceDefaultComboBoxRenderer. Code in 4.3 would ignore the background of the renderer - this was not correct.
Ok, I'll change all the defaultCellRenderers to simple listCellRenderers(as I've already changed most of them ). But today, I noticed that JFileChooser's two comboboxes(Both top 'Look In'
and bottom 'Files Of Type' combo) also have the same issue:-)
Thanks and Regards,
Prashant
|

|
Re: Issues faced while updating to substance-5

Some parts of this message have been removed.
Learn more about Nabble's security policy.
Please try the latest 5.0dev drop. Thanks Kirill ----- Original Message ---- From: Prashant Bhat < prashant.mr@...> To: users@...Sent: Wednesday, June 4, 2008 1:15:13 AM Subject: Re: Issues faced while updating to substance-5
Hi Kirill, Thanks for those quick solutions! Now, I've fully updated the application to substance-5 and is working nicely. I've attached a sample project with java-help(it only has the table of contents!) Add the susbtance-4.3 or 5 library to lib folder and do 'ant run' to see the differences.
Thanks and Regards, Prashant On Wed, Jun 4, 2008 at 1:39 PM, Kirill Grouchnikov < kirillcool@...> wrote:
Hi, I don't really work with JavaHelp. Is this reproducible in a standalone application? Can you attach a screenshot of that tree under 4.3 and 5.0dev?
Thanks Kirill
Sent: Tuesday, June 3, 2008 3:41:19 AM Subject: Re: Issues faced while updating to substance-5
Hi,
I forgot to add one more :-)
The JavaHelp - Table of Contents tree shows with a background colour of the current colorscheme. In 4.3, it's showing as any other tree with default renderers, but I've not tested this outside
my application(But should be same, as I'm just adding JHelp with HelpSet to a JFrame).
Thanks and Regards, Prashant
On Tue, Jun 3, 2008 at 6:14 PM, Prashant Bhat < prashant.mr@ gmail.com> wrote:
Hi Kirill,
As you've made great performance improvements to Susbtance5, I wanted to try it in my application. But I'm facing some issues here. I'm using substance-lite-feel with swingx and flamingo plugins also(all are latest builds) with Java6_04 on Ubuntu-8.04.
1. JXTable column control is not visible 2. The following error is thrown when there're no tabs added to a JTabbedPane, but this works under substance-4.3 java.lang.ArrayIndexOutOfBoundsException: No such child: -1
at java.awt.Container.getComponent(Container.java:281) at org.jvnet.substance.utils.SubstanceThemeUtilities.getColorScheme(SubstanceThemeUtilities.java:128) at org.jvnet.substance.SubstanceTabbedPaneUI.paintContentBorder(SubstanceTabbedPaneUI.java:2104)
...
And the following two are not issues, but would be nice to have them. 1. Non-editable combo with DefaultListCellRenderer shows with a white background(this's resolved in substance-4.3). https://substance.dev.java.net/issues/show_bug.cgi?id=294
2. How can I configure JTree, so that it's nodes paint the connector
lines? The substance-test application also doesn't show them.
Actually, I've one more issue with a layout using JXMultiSplitPane, which was working with 4.3. I'll send you the details, once I've recreated it outside my app.
Thanks a lot.
Regards, Prashant
PS. The attached file is a very simple test class to show the above two issues and Jun-2nd build prints some values on System.out
--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@...For additional commands, e-mail: users-help@...
|

|
Re: Issues faced while updating to substance-5
It's working perfectly. Thanks for your great support. Regards, Prashant On Fri, Jun 6, 2008 at 10:29 AM, Kirill Grouchnikov < kirillcool@...> wrote:
Please try the latest 5.0dev drop. Thanks Kirill Sent: Wednesday, June 4, 2008 1:15:13 AM Subject: Re: Issues faced while updating to substance-5
Hi Kirill,
Thanks for those quick solutions! Now, I've fully updated the application to substance-5 and is working nicely.
I've attached a sample project with java-help(it only has the table of contents!) Add the susbtance-4.3 or 5 library to lib folder and do 'ant run' to see the differences.
Thanks and Regards, Prashant
|