java美化JScrollPanel的滚动条

上传者: 43647259 | 上传时间: 2022-08-23 18:21:46 | 文件大小: 86KB | 文件类型: RAR
主要代码: setTitle("滚动美化"); setSize(800, 600); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); Container container = getContentPane(); container.setLayout(null); DefaultMutableTreeNode root = new DefaultMutableTreeNode(); DefaultTreeModel model = new DefaultTreeModel(root); for (int i = 0; i < 200; i++) { root.add(new DefaultMutableTreeNode("node_node_node_node_node_" + i)); } JTree jTree = new JTree(model); JScrollPane jScrollPane = new JScrollPane(jTree); jScrollPane.setBounds(10, 10, 200, 200); jScrollPane.getVerticalScrollBar().setUI(new ScrollBarUIEx (JScrollBar.VERTICAL)); jScrollPane.getHorizontalScrollBar().setUI(new ScrollBarUIEx (JScrollBar.HORIZONTAL)); container.add(jScrollPane); setVisible(true);

文件下载

资源详情

[{"title":"( 78 个子文件 86KB ) java美化JScrollPanel的滚动条","children":[{"title":"Demo_App","children":[{"title":"bin","children":[{"title":"Btn2dEx$2.class <span style='color:#111;'> 2.71KB </span>","children":null,"spread":false},{"title":"Btn2dEx$1.class <span style='color:#111;'> 2.71KB </span>","children":null,"spread":false},{"title":"BtnEx$5.class <span style='color:#111;'> 715B </span>","children":null,"spread":false},{"title":"JTreeSelect.class <span style='color:#111;'> 2.15KB </span>","children":null,"spread":false},{"title":"CheckBoxEx$4.class <span style='color:#111;'> 1.92KB </span>","children":null,"spread":false},{"title":"JTreeEdit$2.class <span style='color:#111;'> 1.43KB </span>","children":null,"spread":false},{"title":"JTreeDemo.class <span style='color:#111;'> 1.64KB </span>","children":null,"spread":false},{"title":"BtnEx$1.class <span style='color:#111;'> 1.52KB </span>","children":null,"spread":false},{"title":"Btn2dEx$5.class <span style='color:#111;'> 727B </span>","children":null,"spread":false},{"title":"DiyTree.class <span style='color:#111;'> 2.40KB </span>","children":null,"spread":false},{"title":"MainClass.class <span style='color:#111;'> 403B </span>","children":null,"spread":false},{"title":"MyButtonEditor$1.class <span style='color:#111;'> 664B </span>","children":null,"spread":false},{"title":"TableBtn$1.class <span style='color:#111;'> 1.54KB </span>","children":null,"spread":false},{"title":"MyButtonEditor.class <span style='color:#111;'> 2.32KB </span>","children":null,"spread":false},{"title":"ScrollBarUIEx.class <span style='color:#111;'> 3.79KB </span>","children":null,"spread":false},{"title":"DiyTreeNode.class <span style='color:#111;'> 3.02KB </span>","children":null,"spread":false},{"title":"JTreeSelect$1.class <span style='color:#111;'> 1.86KB </span>","children":null,"spread":false},{"title":"ScrollPaneEx.class <span style='color:#111;'> 1.95KB </span>","children":null,"spread":false},{"title":"JTreeCheckBox.class <span style='color:#111;'> 546B </span>","children":null,"spread":false},{"title":"DiyTreePanel$5.class <span style='color:#111;'> 2.30KB </span>","children":null,"spread":false},{"title":"JTreeEdit$3.class <span style='color:#111;'> 1.48KB </span>","children":null,"spread":false},{"title":"MyButtonRender.class <span style='color:#111;'> 1.40KB </span>","children":null,"spread":false},{"title":"IconEx$2.class <span style='color:#111;'> 1.61KB </span>","children":null,"spread":false},{"title":"DiyTreePanel$2.class <span style='color:#111;'> 1.45KB </span>","children":null,"spread":false},{"title":"TextFieldEx.class <span style='color:#111;'> 1.43KB </span>","children":null,"spread":false},{"title":"Btn2dEx$4.class <span style='color:#111;'> 1.11KB </span>","children":null,"spread":false},{"title":"TextFieldEx$1.class <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"Btn2D.class <span style='color:#111;'> 1023B </span>","children":null,"spread":false},{"title":"DiyTreePanel.class <span style='color:#111;'> 15.24KB </span>","children":null,"spread":false},{"title":"JTreeCustom.class <span style='color:#111;'> 3.02KB </span>","children":null,"spread":false},{"title":"DiyTreePanel$1.class <span style='color:#111;'> 1.27KB </span>","children":null,"spread":false},{"title":"ScrollBarUIEx$1.class <span style='color:#111;'> 1.83KB </span>","children":null,"spread":false},{"title":"CheckBoxEx$1.class <span style='color:#111;'> 1.79KB </span>","children":null,"spread":false},{"title":"IconEx.class <span style='color:#111;'> 1.41KB </span>","children":null,"spread":false},{"title":"DiyTreePanel$3.class <span style='color:#111;'> 1.61KB </span>","children":null,"spread":false},{"title":"BtnEx$4.class <span style='color:#111;'> 1.09KB </span>","children":null,"spread":false},{"title":"TextFieldBorder.class <span style='color:#111;'> 2.05KB </span>","children":null,"spread":false},{"title":"BtnEx$3.class <span style='color:#111;'> 1.52KB </span>","children":null,"spread":false},{"title":"Btn2dEx.class <span style='color:#111;'> 2.87KB </span>","children":null,"spread":false},{"title":"JTreeEdit$1.class <span style='color:#111;'> 1.77KB </span>","children":null,"spread":false},{"title":"BtnEx.class <span style='color:#111;'> 1.91KB </span>","children":null,"spread":false},{"title":"CheckBoxEx$3.class <span style='color:#111;'> 1.79KB </span>","children":null,"spread":false},{"title":"CheckBoxEx.class <span style='color:#111;'> 2.43KB </span>","children":null,"spread":false},{"title":"CheckBoxEx$2.class <span style='color:#111;'> 1.92KB </span>","children":null,"spread":false},{"title":"Btn2dEx$3.class <span style='color:#111;'> 2.71KB </span>","children":null,"spread":false},{"title":"ImageCheckbox.class <span style='color:#111;'> 3.07KB </span>","children":null,"spread":false},{"title":"IconEx$1.class <span style='color:#111;'> 1.50KB </span>","children":null,"spread":false},{"title":"JTreeEdit.class <span style='color:#111;'> 3.28KB </span>","children":null,"spread":false},{"title":"BtnUi.class <span style='color:#111;'> 2.19KB </span>","children":null,"spread":false},{"title":"TableBtn.class <span style='color:#111;'> 2.20KB </span>","children":null,"spread":false},{"title":"DiyTreePanel$4.class <span style='color:#111;'> 1.65KB </span>","children":null,"spread":false},{"title":"BtnEx$2.class <span style='color:#111;'> 1.52KB </span>","children":null,"spread":false}],"spread":false},{"title":".settings","children":[{"title":"org.eclipse.jdt.core.prefs <span style='color:#111;'> 598B </span>","children":null,"spread":false}],"spread":true},{"title":"src","children":[{"title":"TableBtn.java <span style='color:#111;'> 2.71KB </span>","children":null,"spread":false},{"title":"IconEx.java <span style='color:#111;'> 2.55KB </span>","children":null,"spread":false},{"title":"MainClass.java <span style='color:#111;'> 748B </span>","children":null,"spread":false},{"title":"CheckBoxEx.java <span style='color:#111;'> 4.76KB </span>","children":null,"spread":false},{"title":"JTreeSelect.java <span style='color:#111;'> 2.47KB </span>","children":null,"spread":false},{"title":"DiyTreePanel.java <span style='color:#111;'> 20.23KB </span>","children":null,"spread":false},{"title":"JTreeEdit.java <span style='color:#111;'> 4.54KB </span>","children":null,"spread":false},{"title":"Btn2D.java <span style='color:#111;'> 593B </span>","children":null,"spread":false},{"title":"ScrollBarUIEx.java <span style='color:#111;'> 5.10KB </span>","children":null,"spread":false},{"title":"MyButtonRender.java <span style='color:#111;'> 1.13KB </span>","children":null,"spread":false},{"title":"TextFieldEx.java <span style='color:#111;'> 1.56KB </span>","children":null,"spread":false},{"title":"JTreeCheckBox.java <span style='color:#111;'> 328B </span>","children":null,"spread":false},{"title":"BtnEx.java <span style='color:#111;'> 3.94KB </span>","children":null,"spread":false},{"title":"ImageCheckbox.java <span style='color:#111;'> 3.97KB </span>","children":null,"spread":false},{"title":"Btn2dEx.java <span style='color:#111;'> 7.42KB </span>","children":null,"spread":false},{"title":"JTreeCustom.java <span style='color:#111;'> 2.71KB </span>","children":null,"spread":false},{"title":"TextFieldBorder.java <span style='color:#111;'> 1.38KB </span>","children":null,"spread":false},{"title":"MyButtonEditor.java <span style='color:#111;'> 2.72KB </span>","children":null,"spread":false},{"title":"DiyTreeNode.java <span style='color:#111;'> 2.35KB </span>","children":null,"spread":false},{"title":"BtnUi.java <span style='color:#111;'> 1.47KB </span>","children":null,"spread":false},{"title":"ScrollPaneEx.java <span style='color:#111;'> 1.15KB </span>","children":null,"spread":false},{"title":"JTreeDemo.java <span style='color:#111;'> 1.52KB </span>","children":null,"spread":false},{"title":"DiyTree.java <span style='color:#111;'> 2.08KB </span>","children":null,"spread":false}],"spread":false},{"title":".project <span style='color:#111;'> 384B </span>","children":null,"spread":false},{"title":".classpath <span style='color:#111;'> 301B </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明