The Artima Developer Community
Sponsored Link

Java Answers Forum
COMBO BOXES

2 replies on 1 page. Most recent reply: Mar 21, 2002 1:47 PM by Charles Bell

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
MARY

Posts: 1
Nickname: mk
Registered: Mar, 2002

COMBO BOXES Posted: Mar 21, 2002 9:46 AM
Reply to this message Reply
Advertisement
do combo boxes have a setText property?


Matt Gerrans

Posts: 1153
Nickname: matt
Registered: Feb, 2002

Re: COMBO BOXES Posted: Mar 21, 2002 12:27 PM
Reply to this message Reply
No.

Charles Bell

Posts: 519
Nickname: charles
Registered: Feb, 2002

Re: COMBO BOXES Posted: Mar 21, 2002 1:47 PM
Reply to this message Reply
JComboBox does have an actionstring associated with it.

You can either set it or get it with

public void setActionCommand(String aCommand)
or
public String getActionCommand()

In the hierarchy of classes, JComboBox does not inherit from JTextComponent:

Class JComboBox
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--javax.swing.JComponent
|
+--javax.swing.JComboBox


Check out the java api documents at:
http://java.sun.com/j2se/1.4/docs/api/index.html

You can download them from:
http://java.sun.com/docs/index.html

Flat View: This topic has 2 replies on 1 page
Topic: RMI Classloading and referenced classes Previous Topic   Next Topic Topic: Exception while trying to read a file from applets

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use