I have a Java Swing program with a dialog that i want to design in a better way. A window in the program has a button where user needs to click that button to open a small dialog to select a couple of customers names then save his selection where then i do some action on that selection in the main window.
The problem is in designing that small dialog. The user can do 2 actions inside it :
- Enable the customers' names he wants to use.
- Select a customer name to edit or delete it from the database.
Here is the initial dialog design :
------------------------------>
My initial thinking to accomplish this is :
- To enable a name to use it in the main window user has to tick its selection box (i.e. Name 3).
- To edit or delete a name user has to highlight the label of the name itself then click the Edit button. So highlighting a name will not tick(enable) it (i.e. Name 2).
My 2 questions are :
- Will the user be familiar with this behavior(He can do two actions on each list item).
- In Java Swing should i use a JList of (JCheckBox + JLabel) items to accomplish this, or use a JTable ?