corejava第10版
This commit is contained in:
1 parent
2021c3c227
commit
6165543dd3
1088 files changed
+94411
No files matched your search
@@ -0,0 +1,22 @@
|
||||
package circleLayout;
|
||||
|
||||
import javax.swing.*;
|
||||
|
||||
/**
|
||||
* A frame that shows buttons arranged along a circle.
|
||||
*/
|
||||
public class CircleLayoutFrame extends JFrame
|
||||
{
|
||||
public CircleLayoutFrame()
|
||||
{
|
||||
setLayout(new CircleLayout());
|
||||
add(new JButton("Yellow"));
|
||||
add(new JButton("Blue"));
|
||||
add(new JButton("Red"));
|
||||
add(new JButton("Green"));
|
||||
add(new JButton("Orange"));
|
||||
add(new JButton("Fuchsia"));
|
||||
add(new JButton("Indigo"));
|
||||
pack();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user