freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內容

swing完整實例-jtree(右鍵菜單-可拖拽)jtable(可翻頁-列中含有按鈕-隱藏列)(更新版)

2025-09-01 18:54上一頁面

下一頁面
  

【正文】 166791132L。 } public int getColumnCount() { return 。 } public DefaultMutableTreeNode getSelectedNode() { return (DefaultMutableTreeNode) ()。 i++) { ().setValueAt(false, i, 0)。 i++) { ().setValueAt(false, i, 0)。 if (totalPage * maxFilesAPage filesNum) { totalPage++。 } int filesNum = ()。 if (filesNum = maxFilesAPage) { curPageLabel .setText(\u5F53\u524D\u9875\u6570\uFF1A 1 | \u603B\u9875\u6570\uFF1A 1)。 } })。 } private void createNodes(DefaultMutableTreeNode top) { ListDefaultMutableTreeNode nodes = () .getFirstLevelDirs()。 JPanel panel_3 = new JPanel()。 (btnNewButton, gbc_btnNewButton)。 (curPageLabel, gbc_curPageLabel)。 = 4。 ().getColumn(6) .setCellRenderer(new ButtonCellRenderer())。 ().getColumn(1).setPreferredWidth(206)。 i 50。 = new Insets(0, 0, 5, 0)。 GridBagConstraints gbc_button_1 = new GridBagConstraints()。 JButton button = new JButton(\u5220\u9664)。 = 0。 = new double[] { , , , , , }。 = 0。 = new int[] { 556, 0 }。 (true)。 = 0。 = new Insets(0, 0, 5, 5)。 GridBagConstraints gbc_lblNewLabel = new GridBagConstraints()。 (panel, )。 setDefaultCloseOperation()。 private final int maxFilesAPage = 50。import 。import 。import 。import 。 import 。import 。import 。 private JTable table。 /** * Launch the application. */ public static void main(String[] args) { (new Runnable() { public void run() { try { InnerDocsMgt frame = new InnerDocsMgt()。 contentPane = new JPanel()。 = new int[] { 31, 0, 0 }。 = 0。 (button_4, gbc_button_4)。 DefaultMutableTreeNode top = new DefaultMutableTreeNode(/)。 } catch (ClassNotFoundException e) { ()。 (gbl_panel_1)。 (\u6587\u4EF6\u4E0E\u76EE\u5F55\u7BA1\u7406, null, panel_2, null)。 GridBagConstraints gbc_lblonetwothree = new GridBagConstraints()。 GridBagConstraints gbc_button_3 = new GridBagConstraints()。 = 4。 = 1。 = 2。 j++) { tableDatas[i][j] = null。 ().getColumn(4).setPreferredWidth(58)。 totalFilesNumLabel = new JLabel(\u6587\u4EF6\u603B\u6570\uFF1A0)。 GridBagConstraints gbc_curPageLabel = new GridBagConstraints()。 } })。 } })。 = new int[] { 0 }。 (new AbstractAction(添加子目錄) { private static final long serialVersionUID = 1L。 docFils = ().getFilesViaDirid( ())。 } curPageLabel .setText(\u5F53\u524D\u9875\u6570\uFF1A 1 | \u603B\u9875\u6570\uFF1A + totalNum)。 if (totalPage * maxFilesAPage filesNum) { totalPage++。 setDocTableValues((curPageNum * maxFilesAPage, ((curPageNum + 1) * maxFilesAPage, filesNum)))。 ().setValueAt( (i).getFileDate().toLocaleString(), i, 3)。 ().setValueAt(null, i, 3)。 private Class[] columnTypes = new Class[] { , , , , , , }。 } public String getColumnName(int c) { return headName[c]。 public ButtonCellEditor(JTable table) { super(new JTextField())。 } })。 }}關于上面的TableCellRenderer子類和CellEditor子類,這兩個都被設置到table的ColumnModel中了, ButtonCellRenderer在每次GUI渲染的時候都會調用,ButtonCellEditor只會在點擊到這個Cell的時候才會調用,并且如果失去焦點后return的Component將消失,所以ButtonCellRenderer這個很重要。return 。顯然按照之前的理論 Transfer中放置的是被移動的對象,則通過下面的兩句就可以得到被移動對象的結點列表,要注意的是這個地方是列表,即表示拖拽時可以使用Shift來選擇多個結點進行拖拽到一個目標結點!Transferable transfer = ()。import 。import 。 } Override protected void exportDone(JComponent source, Transferable data, int action) { } Override public boolean canImport(TransferSupport support) { if (()) { if (() == MOVE) return true。 DefaultMutableTreeNode newParent = (DefaultMutableTreeNode) location .getPath().getLastPathComponent()。 return false。 = nodes。import 。 } } } return rmi。 } for (int i = 0。 i 97。 private String fileName。 = fileSize。 } public int getFileSize() { return fileSize。 }}package test。 } public int getDirId() { return d
點擊復制文檔內容
公司管理相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1