Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » Swing Tabbed Pane background color ignored
Swing Tabbed Pane background color ignored [message #92282] Fri, 27 May 2005 17:46 Go to next message
Eclipse UserFriend
Originally posted by: richard.pimentel.hci.utah.edu

the problem I am having is the background color I am setting for a Swing
tabbed pane is ignored when I run the application. The color is correct in
VE and when I change it is dutifully changed in VE but when I run the app
it the tab is always the default grey. I am using the following versions:

Eclipse SDK 3.0.2
EMF Runtime 2.0.2
GEF Runtime 3.0.1
VE Runitme M2050504

I have included code from the main class. It instances another visual
class (Extract) that is composed of a pane with several panels, buttons,
etc. Any help with this would be appreciated.

-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- =-=-=-=-=-=-

package ManualMergeExtract;

import javax.swing.JFrame;
import javax.swing.JTabbedPane;

public class MainFrame extends JFrame
{
private JTabbedPane tabbedPane = null;
private Extract extractPane = null;

/**
* This method initializes jTabbedPane
*
* @return javax.swing.JTabbedPane
*/
private JTabbedPane getTabbedPane() {
if (tabbedPane == null) {
try {
tabbedPane = new JTabbedPane();
extractPane = new Extract();
tabbedPane.addTab("Extract", extractPane);
tabbedPane.setFont(new java.awt.Font("MS Sans Serif",
java.awt.Font.PLAIN, 12)); // Generated
tabbedPane.setBackground(new java.awt.Color(236,233,216)); // Generated
}
catch (java.lang.Throwable e) {
// TODO: Something
}
}
return tabbedPane;
}

public static void main(String[] args)
{
new MainFrame();
}

public MainFrame() {
super();
initialize();
}

private void initialize() {
this.setBackground(java.awt.Color.white); // Generated
this.setName("mainFrameTPane"); // Generated
this.setFont(new java.awt.Font("MS Sans Serif", java.awt.Font.PLAIN,
12)); // Generated
this.setSize(620, 700);
this.setTitle("Extract-O-Merge"); // Generated
this.setContentPane(getTabbedPane()); // Generated
this.setVisible(true); // Generated
}
} // @jve:decl-index=0:visual-constraint="10,10"
Re: Swing Tabbed Pane background color ignored [message #92327 is a reply to message #92282] Sat, 28 May 2005 05:35 Go to previous message
Eclipse UserFriend
Originally posted by: no.ddress.here

In article <304e8c62c69ddcb7d9efe63b1ec75eee$1@www.eclipse.org>,
richard.pimentel@hci.utah.edu says...
> the problem I am having is the background color I am setting for a Swing
> tabbed pane is ignored when I run the application. The color is correct in
> VE

Long standing Swing issue:

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4690946
Re: Swing Tabbed Pane background color ignored [message #607842 is a reply to message #92282] Sat, 28 May 2005 05:35 Go to previous message
Gerald Rosenberg is currently offline Gerald RosenbergFriend
Messages: 106
Registered: July 2009
Senior Member
In article <304e8c62c69ddcb7d9efe63b1ec75eee$1@www.eclipse.org>,
richard.pimentel@hci.utah.edu says...
> the problem I am having is the background color I am setting for a Swing
> tabbed pane is ignored when I run the application. The color is correct in
> VE

Long standing Swing issue:

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4690946
Previous Topic:VE Update Manager on the Web Page
Next Topic:Visual Editor update site
Goto Forum:
  


Current Time: Thu Mar 28 15:09:37 GMT 2024

Powered by FUDForum. Page generated in 0.02501 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top