filmov
tv
Java GUI programming, draw an Olympic Ring on a component

Показать описание
public class OlympicRingComponent extends JComponent
{
public void paintComponent(Graphics g)
{
Graphics2D g2 = (Graphics2D) g;
}
}
public static void main(String[] args) {
JFrame frame = new JFrame();
OlympicRingComponent component = new OlympicRingComponent();
}
{
public void paintComponent(Graphics g)
{
Graphics2D g2 = (Graphics2D) g;
}
}
public static void main(String[] args) {
JFrame frame = new JFrame();
OlympicRingComponent component = new OlympicRingComponent();
}