Witam!
Potrzebuje umiescic niebieskie wypelnione koleczko po lewej stronie przed napisem JMenuItem-u "Blue".
Probowalem wyrysowac ale mam ogromne porblemy z metoda paint.
Czy jest ktos wstanie rozwiazac mi ten problem. Bardzo prosze o pomoc.
Kod:
import java.awt.BorderLayout;
import javax.swing.JFrame;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
public class Kolko extends JFrame{
public Kolko(){
setSize(800, 800);
setDefaultCloseOperation(EXIT_ON_CLOSE);
setLocationRelativeTo(null);
setLayout(new BorderLayout());
JMenuBar br = new JMenuBar();
JMenu edit = new JMenu("File");
JMenuItem blue = new JMenuItem("Blue");
edit.add(blue);
br.add(edit);
setJMenuBar(br);
setVisible(true);
}
public static void main(String[] args){
new Kolko();
}
}