在main里面,最开始
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
}
catch(Exception e) {
e.printStackTrace();
}
就行了.
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
}
catch(Exception e) {
e.printStackTrace();
}
就行了.
{
public void actionPerformed(ActionEvent e)
{
if(jCheckBoxMenuItem2.isSelected() == true)
{
jCheckBoxMenuItem1.setVisible(true);
}
else
{
jCheckBoxMenuItem1.setVisible(false);
}
}
}