Java interface design skills [original]

xiaoxiao2021-03-06  125

1. Setting the panel unable to change

Java.awt.frame.setresizable (false);

2, set a set of radio Radiobutton?

? First statement:? ButtonGroup jButtonGroup = new ButtonGroup () ;? JRadioButton jRadioButton1 = new JRadioButton () ;? JRadioButton jRadioButton2 = new JRadioButton () ;? JRadioButton jRadioButton3 = new JRadioButton () ;? after bundling: ??? jButtonGroup.add (jradiobutton1); ??? jButtonGroup.Add (jradiobutton2); ??? jbuttongroup.add (jradiobutton3);

3, pop up a prompt box

JOPTIONPANE.SHOWMESSAGEDIALOG (this, "")

4. Get the total length of a list object

GetItemcount ();

5. Judging whether an Item in a list object is selected

IsIndexSelected (int index);

转载请注明原文地址:https://www.9cbs.com/read-126140.html

New Post(0)