Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import javax.swing.JFrame;
- public class apples {
- public static void main(String[] args){
- tuna bucky = new tuna();
- bucky.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
- bucky.setSize(275, 180);
- bucky.setVisible(true);
- }
- }
- import java.awt.FlowLayout;
- import javax.swing.JFrame;
- import javax.swing.JLabel;
- public class tuna extends JFrame{
- private JLabel item1;
- public tuna(){
- super("The title bar");
- setLayout(new FlowLayout());
- item1 = new JLabel("This is a sentence");
- item1.setToolTipText("This is gonna show up on hover");
- add(item1);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement