Article View: borland.public.jbuilder.java.swing
Article #11289Re: JComboBox
From: Timothy Reaves
Date: Wed, 16 Jun 1999 00:00
Date: Wed, 16 Jun 1999 00:00
121 lines
5780 bytes
5780 bytes
Wel, I have two different windows witht he SAME problem. One is built with
ProtoView components (which are supposidilly 100% Swing), and the other is built with
Swing & Borland components. I've included part of the source for you to see.
The odd thing about this one, is that when I first built it it actually worked.
It is a JTable with a JComboBox as the cell editor for column 1. After the first time
it worked, I created a make file and ran it, and sience then, it has not worked.
The first window - with the ProtoView windows - has never worked. It is using
stand alone JComboBoxes. Is their any way to use Borland ChoiceControls with Vectors
instead of strings?
private static final int READ = 0;
private static final int MODIFY = 1;
private static final int ADD = 2;
private static final int DELETE = 3;
ButtonControl buttonAdd = new ButtonControl();
ButtonControl buttonDelete = new ButtonControl();
ButtonControl buttonModify = new ButtonControl();
TextFieldControl textFieldUsername = new TextFieldControl();
BevelPanel bevelPanel1 = new BevelPanel();
BevelPanel bevelPanel3 = new BevelPanel();
JPasswordField jPasswordField1 = new JPasswordField();
JPasswordField jPasswordField2 = new JPasswordField();
JLabel jLabel1 = new JLabel();
JLabel jLabel2 = new JLabel();
JLabel jLabel3 = new JLabel();
JLabel jLabel4 = new JLabel();
JLabel jLabel5 = new JLabel();
BevelPanel bevelPanel4 = new BevelPanel();
JTable jTablePermissions = new JTable();
JList jListUsers = new JList();
JScrollPane jScrollPane2 = new JScrollPane();
BorderLayout borderLayout1 = new BorderLayout();
GridBagLayout gridBagLayout1 = new GridBagLayout();
BevelPanel bevelPanel5 = new BevelPanel();
TextControl textControl1 = new TextControl();
TextControl textControl2 = new TextControl();
TextControl textControl3 = new TextControl();
TextControl textControl4 = new TextControl();
TextControl textControl5 = new TextControl();
TextFieldControl textFieldControlTitle = new TextFieldControl();
TextFieldControl textFieldControlFirst = new TextFieldControl();
TextFieldControl textFieldControlMiddle = new TextFieldControl();
TextFieldControl textFieldControlLast = new TextFieldControl();
TextFieldControl textFieldControlSuffix = new TextFieldControl();
BevelPanel bevelPanel6 = new BevelPanel();
BevelPanel bevelPanel7 = new BevelPanel();
BorderLayout borderLayout2 = new BorderLayout();
GridLayout gridLayout1 = new GridLayout();
GridLayout gridLayout2 = new GridLayout();
BevelPanel bevelPanel8 = new BevelPanel();
VerticalFlowLayout verticalFlowLayout1 = new VerticalFlowLayout();
GridBagLayout gridBagLayout3 = new GridBagLayout();
TextControl textControl6 = new TextControl();
TextFieldControl textFieldControlExtension = new TextFieldControl();
XYLayout xYLayout1 = new XYLayout();
JScrollPane jScrollPane1 = new JScrollPane();
Color systemColor = new java.awt.Color(0,153,169);
SecurityLevelTDM tableDataManager;
JComboBox comboBox = new JComboBox();
com.silverfields.swing.table.EachRowEditor rowEditor = new
com.silverfields.swing.table.EachRowEditor();
Rich Wilkman wrote:
> Timothy:
>
> setLightWeightPopupEnabled() doesn't always work <g>. What components
> are you working with?
>
> -Rich
>
> Timothy Reaves wrote:
> >
> > Rich, I really do appreciate your responses.
> >
> > My understanding (not the greatest :>) is that if I have
> > setLightWeightPopupEnabled set to false I should be O.K., even with other
> > heavyweight components in use. So this is what I did. What happened was this:
> > the popup did not always appear (it only was visible about every third time I
> > clicked the button), and when it did appear, the drawing area was gray - nothing
> > was visible in it. It sort of looked like what a JTable looks like without a
> > data model attached. A gray hole.
> >
> > Any idea? I really am at a loss...
> >
> > Rich Wilkman wrote:
> >
> > > Timothy:
> > >
> > > The hintsandtips.txt file in 2.0 lists all of our items that are
> > > heavyweight and the referenced article there (it's on the Javasoft site)
> > > covers their heavyweight items. Most likely, it is your container that
> > > is heavyweight.
> > >
> > > For International use, the editors in jbcl (the parts you type in) are
> > > heavyweight themselves. JFC was "english-only" when lightweight and
> > > that's not something we can force on 60% of our customers <g>.
> > >
> > > -Rich
> > >
> >
> > --snip--
>
> --
>
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> Rich Wilkman
> Senior Quality Assurance Engineer
> Borland JBuilder Team
>
> If you see something that looks like an opinion up there,
> it's mine and mine alone.
>
> Mail sent to me from the newsgroups won't bounce but will
> be ignored. If I have time, I'll respond, but you have
> a better chance if you confine your posts to the newsgroups
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Technical Details
Message-ID:
<3767A886.1919F20C@silverfields.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<37654A87.CAB29928@silverfields.com> <37655E9D.8AD07B25@inprise.com> <3766607F.615033E6@silverfields.com> <37666D8C.4ECF91C6@inprise.com> <3766ADE7.FF205072@silverfields.com> <3766CCB9.293EC4AE@inprise.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,b2dfac286ac916f5 X-Google-Attributes: gid111d45,public From: Timothy Reaves <treaves@silverfields.com> Subject: Re: JComboBox Date: 1999/06/16 Message-ID: <3767A886.1919F20C@silverfields.com> X-Deja-AN: 490250359 Content-Transfer-Encoding: 7bit References: <37654A87.CAB29928@silverfields.com> <37655E9D.8AD07B25@inprise.com> <3766607F.615033E6@silverfields.com> <37666D8C.4ECF91C6@inprise.com> <3766ADE7.FF205072@silverfields.com> <3766CCB9.293EC4AE@inprise.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Silverfields Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing