Click here to Skip to main content
15,895,142 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello Everyone,
I m creating a Project like WordWeb in Java in which user can enter one word in JComboBox and according to that record will be fetched from database(MS Access).

I dont know how to use ActionListener class or its methods.

Please give me some suggestions.
Posted

I guess that a small google search could have helped you...

Meanwhile, take a look at this: http://docs.oracle.com/javase/tutorial/uiswing/events/actionlistener.html[^]

and this: http://developers.sun.com/product/jdbc/drivers[^]

Good luck.
 
Share this answer
 
i have done half of the codes but i am not sure how to do the rest need help urgent[^]

Read here - same goes for your code.
It doesn't matter if it's a RadioButton Group or a combobox, the Actionlistener Thingy is the same.

I would suggest to directly make some Class like "DatabaseService" where all read/write/change on the database is handled.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900