Advertisement
Guest User

Untitled

a guest
Jan 19th, 2018
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.44 KB | None | 0 0
  1.    public void addBingoBall(String tempNum)
  2.     {
  3.         ImageIcon image = new ImageIcon("blue_light.png");
  4.         JLabel label = new JLabel(image, SwingConstants.CENTER);
  5.         label.setPreferredSize(new Dimension(83,83));
  6.         label.setLayout(new FlowLayout(FlowLayout.CENTER));
  7.         JLabel text = new JLabel(tempNum);
  8.         text.setFont(new Font("Sans", Font.BOLD, 30));
  9.         label.add(text);
  10.         add(label);
  11.  
  12.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement