🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #11192

JComboBox question

#11192
From: Arn Cota
Date: Thu, 24 Jun 1999 00:00
48 lines
1667 bytes
How come when I add a combo box to my Frame, it does not drop down when I
click on it?  I can cursor up and down through the items, so I know they are
on the list, but no drop down:

Thanks,
Arn
****************
package Combo;

import java.awt.*;
import java.awt.event.*;
import com.borland.jbcl.control.*;
import com.borland.jbcl.layout.*;
import javax.swing.*;

public class Frame1 extends DecoratedFrame
{
  XYLayout xYLayout2 = new XYLayout();
  BevelPanel bevelPanel1 = new BevelPanel();
  BorderLayout borderLayout1 = new BorderLayout();
  JComboBox jComboBox1;

  //Construct the frame
  public Frame1()
  {
    try
    {
      jbInit();
    }
    catch(Exception e)
    {
      e.printStackTrace();
    }
  }

  //Component initialization
  private void jbInit() throws Exception
  {
    String str[] = {"test1","test2"};
    this.setLayout(borderLayout1);
    this.setSize(new Dimension(400, 300));
    this.setTitle("Frame Title");
    bevelPanel1.setLayout(xYLayout2);
    this.add(bevelPanel1, BorderLayout.CENTER);
    jComboBox1 = new JComboBox(str);
    bevelPanel1.add(jComboBox1, new XYConstraints(50, 85, 277, 21));
  }
}
Technical Details
Message-ID: <7ktsj2$dcg4@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,4cc2568a011ad4de
X-Google-Attributes: gid111d45,public
From: "Arn Cota" <Arnold.Cota@sas.com>
Subject: JComboBox question
Date: 1999/06/24
Message-ID: <7ktsj2$dcg4@forums.borland.com>
X-Deja-AN: 493462391
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Organization: Another Netscape Collabra Server User
X-MSMail-Priority: Normal
Newsgroups: borland.public.jbuilder.java.swing