Vous êtes sur la page 1sur 1

aimport javax.swing.*; mimport javax.swing.tree.

*; public class TreeComponent{ public static void main(String[] args) { vbcvvbbvm jgfhjgh cjcjchj JFrame frame = new JFrame("Creating a JTree Component!"); DefaultMutableTreeNode parent = new DefaultMutableTreeNode("Color", true); DefaultMutableTreeNode njmcvnvbn black = new DefaultMutableTreeNode("Black"); DefaultMut bvnvbnableTreeNode blue = new DefaultMutableTreeNode("Blue"); Default vbnczdMutableTreeNode nBlue = new DefaultMutableTreeNode("Navy Blue"); Default bnkv bkMutableTreeNode dBlue = new DefaultMutableTreeNode("Dark Blue"); DefaultMutableTreeNode green = new DefaultMutableTreeNode("Green"); Default bcxvMutableTreeNode white = new DefaultMutableTreeNode("White"); paren bvnvnt.add(black); parent hjvhj.add(blue); blue.a m,bv,mnmdd(nBlue); blue.add(dBlue); parent.add(green ); p\vxcvzxc fgxgxfcghc bcbjnvhjbvn vbxcvbcvjvb ghxdg fdgasg hsdgsf tyghx zfgh th xgty sgsdg d h setWindowDecorationStyle(JRootPane.PLAIN_DIALOG); frame.setSize(200,200); frame.setVisible(true); } }

Vous aimerez peut-être aussi