given i have a button that would be added to different panels am i right to say instantiating 1 JButton is not possible?
example: added a "Cancel" Button to exit application and adding it to a Tab Pane with a certain amount of tabs.
can i do
JButton btnCancel = new JButton("Cancel");
and in one of the JPanel for the 1st tab of the JFrame tab1.add(btnCancel);
2nd tab tab2.add(btnCancel);
or must i create a new JButton for each tab pane?