Re: Problem in using arrow keys with JComboBox
From: jude (jude.malar_at_mailcity.com)
Date: 01/14/04
- Next message: Andrew Thompson: "Re: getImage can't find my gif"
- Previous message: Steven T Abell: "Re: Swing application"
- In reply to: hiwa: "Re: Problem in using arrow keys with JComboBox"
- Next in thread: Andrew Thompson: "Re: Problem in using arrow keys with JComboBox"
- Reply: Andrew Thompson: "Re: Problem in using arrow keys with JComboBox"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 13 Jan 2004 22:20:05 -0800
Hello,
I am not using Is validate() is my container
It is right side of the container .. ( -> )
The another ComboBox code is ..
if (ivjknowledgeTypeComboBox == null) {
try {
ivjknowledgeTypeComboBox = new JComboBox();
ivjknowledgeTypeComboBox.setName("knowledgeTypeField");
ivjknowledgeTypeComboBox.setPreferredSize(new Dimension(150, 20));
ivjknowledgeTypeComboBox.setMaximumSize(new Dimension(6000, 20));
ivjknowledgeTypeComboBox.setEnabled(true);
ivjknowledgeTypeComboBox.setToolTipText("Type of references to
naming contexts to be shadowed.");
ivjknowledgeTypeComboBox.setRequestFocusEnabled(true);
for (int i = 0; i <
ReplicationDetails.shadowKnowledgeTypeStrings.length; i++) {
ivjknowledgeTypeComboBox.addItem(ReplicationDetails.shadowKnowledgeTypeStrings[i]);
}
} catch (java.lang.Throwable ivjExc) {
handleException(ivjExc);
}
}
return ivjknowledgeTypeComboBox;
}
Regards,
jude
HGA03630@nifty.ne.jp (hiwa) wrote in message news:<6869384d.0401120318.56d247bb@posting.google.com>...
> jude.malar@mailcity.com (jude) wrote in message news:<40092aae.0401112325.c19444c@posting.google.com>...
> > Hello,
> >
> >
> > In a dialog box i am using JComboBoxes .In left side ComboBox in
> > the drop
> > down list i can use arrow keys . But in the right side ComboBox in the
> > drop list
> > arrow keys are not working .. Any idea what should be the problem .
> >
> > The following is the code i have used .
> >
> > Regards,
> > jude
> >
> > try {
> > ivjagreementInitiatorComboBox = new JComboBox();
> > ivjagreementInitiatorComboBox.setName("agreementInitiatorField");
> > ivjagreementInitiatorComboBox.setPreferredSize(new
> > Dimension(150, 20));
> > ivjagreementInitiatorComboBox.setMaximumSize(new Dimension(6000,
> > 20));
> >
> > ivjagreementInitiatorComboBox.setAlignmentX(LEFT_ALIGNMENT);
> > ivjagreementInitiatorComboBox.setEnabled(true);
> >
> >
> >
> > for (int i = 0; i < agreementupdateStrings.length; i++) {
> > ivjagreementInitiatorComboBox.addItem(agreementupdateStrings[i]);
> > }
> > ivjagreementInitiatorComboBox.setToolTipText("Initiator of the
> > replication agreement.");
> > ivjagreementInitiatorComboBox.setRequestFocusEnabled(true);
> > // ivjagreementInitiatorComboBox.setAlignmentX(LEFT_ALIGNMENT);
> >
> >
> > } catch (java.lang.Throwable ivjExc) {
> > handleException(ivjExc);
>
> Q1: Is this left side or right side?
> Q2: Could you show the code for another JComboBox?
> Q3: Is validate() called in your container?
> (after xxxSize() methods are called on the component)
- Next message: Andrew Thompson: "Re: getImage can't find my gif"
- Previous message: Steven T Abell: "Re: Swing application"
- In reply to: hiwa: "Re: Problem in using arrow keys with JComboBox"
- Next in thread: Andrew Thompson: "Re: Problem in using arrow keys with JComboBox"
- Reply: Andrew Thompson: "Re: Problem in using arrow keys with JComboBox"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|