Re: Problem in using arrow keys with JComboBox

From: jude (jude.malar_at_mailcity.com)
Date: 01/14/04


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)



Relevant Pages

  • Re: DBC Corruption
    ... Your problem is atypical - you can, in fact, routinely perform such edits. ... FoxPro I've tried both of the suggested fixes (validate and rebuild the ... RECOVER it will delete the offending tables from the container, ... I'll also mention that the database container contains a local view, ...
    (microsoft.public.fox.vfp.dbc)
  • Re: Adding rich text in CDOEX Appointment body
    ... Jude ... >> code the BodyPart could not be saved to the store. ... >> I flushed the stream after updating and then save the appointment item to ... >> Best regards, ...
    (microsoft.public.exchange2000.development)
  • Re: Unique data in column or row in Excel
    ... Change references to suit column required. ... Regards ... Roger Govier ...
    (microsoft.public.excel.misc)
  • RE: On Error Goto Next Loop
    ... lot of overhead) so if you can validate the values yourself without try ... Michel Posseth ... On Error Goto NEXTFOR ...
    (microsoft.public.dotnet.languages.vb)
  • Re: meaning of /?scid
    ... If i try the demo, i can validate my identity but after that, when ... the program return to the calling page ... i have a page not found error message ... Regards ...
    (microsoft.public.frontpage.programming)