Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- list2.addMouseListener(new MouseListener(){
- public void mouseClicked(MouseEvent e){
- JPanel MousePanel=new JPanel();
- JList listp=new JList(PatientDetailArlist.toArray());
- int index = listp.getSelectedIndex();
- System.out.println("Index Selected: " + index);
- String sp = (String) listp.getSelectedValue();
- System.out.println("Value Selected: " + sp.toString());
- MousePanel.add(listp);
- tab.add("tab4",MousePanel);
- visibleGui();
- }
Add Comment
Please, Sign In to add comment