Skip to main content

jButton enable only after some selections

2 replies [Last post]
bplusg
Offline
Joined: 2010-05-06
Points: 0

Hi to all.
I'm new in java swing, and im having some troubles.

I have a JPanel with some tabs with JList's and one jButton. My button must only be enable when the user select at least one item per JList in the Panel, how can i do this?

Any help will be very appreciated :)

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
anthony_p
Offline
Joined: 2006-07-24
Points: 0

You can find all relevant information in the Swing Tutorial. Please read a section about the JList programming at: http://java.sun.com/docs/books/tutorial/uiswing/components/list.html

bplusg
Offline
Joined: 2010-05-06
Points: 0

Thanks Anthony, i will check the tutorial.