How to save different component data into text file!

hi ,

I m creating one JPanal and in it i put JRadioButtons,JComboBox,JTextField .

In this, if i click the JRadiobutton1(ex. wireless), then the corresponding items displayed in JComboBox,JTextField.

now, i need to store the displaying contents in seperate text file.

I know, we get Jtextfield by getText ().

How can we get the JComboBox items,shall i use same getText() ?.

[409 byte] By [kalamrama] at [2007-10-2 18:27:26]
# 1

http://jdk.representqueens.com:9090/s/jdk/

type in the first couple of letters of JComboBox

select JComboBox

you will now be looking at the api docs

scroll down to the methods section

scroll to those starting with get.....()

the one you want will stand out

the api docs are handy to have on your pc, download them from here

http://java.sun.com/j2se/1.5.0/download.jsp#docs

Michael_Dunna at 2007-7-13 19:48:37 > top of Java-index,Desktop,Core GUI APIs...
# 2
using getSelectedtem() function u can retrieve the selected item from JComboBoxregards pradeep
Pradeep_M_Va at 2007-7-13 19:48:37 > top of Java-index,Desktop,Core GUI APIs...