Drawing complex shapes

From Wikibooks, open books for an open world
Jump to: navigation, search

Drawing shapes Java Programming/Graphics
Drawing complex shapes
Drawing text
Navigate User Interface topic:v  d  e )


Computer code Code listing 9.4: Drawing complex shapes
public class Hello {
    JLabel label = newJLabel("Hello, Mundo!");
    JFrame frame = new JFrame("BK*");
    frame.add(label);
 
    frame.setSize(300, 300);
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.setVisible(true);
    frame.setLocationRelativeTo(null);
    frame.toFront();
    }
}


Drawing shapes Java Programming/Graphics
Drawing complex shapes
Drawing text