1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
|
class options extends JFrame{
public options(String titre){
super(titre);
//setContentPane(new ContentPanel("image16.jpg"));
this.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
getContentPane().setLayout(null);
JXTaskPaneContainer taskPaneContainer = new JXTaskPaneContainer();
taskPaneContainer.setBounds(0,0,550,400);
JXTaskPane actionPane = new JXTaskPane();
actionPane.setTitle("Files and Folders");
actionPane.setSpecial(true);
taskPaneContainer.add(actionPane);
JXTaskPane details = new JXTaskPane();
details.setTitle("Details");
JLabel searchLabel = new JLabel("Search:");
JTextField searchField = new JTextField("");
details.add(searchLabel);
details.add(searchField);
taskPaneContainer.add(details);
getContentPane().add(taskPaneContainer);
setBounds(200,120,600,430);
setVisible(true);
}
} |