本文介紹了如何在 JTable 中拖放一行?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!
問題描述
限時送ChatGPT賬號..
如何設置 JTable 以便能夠將行拖動到表中的不同索引.例如,如果我有 5 行,我想將第 4 行拖到第 2 位?
How do you setup a JTable to be able to drag a row to a different index in the table. For example if I have 5 rows and I want to drag the 4th row to the 2nd position?
推薦答案
查看 拖放部分的 Java 教程.有一些關于如何為 JTable
實現此功能的示例.
Check out the drag and drop section of the Java Tutorial. There are some examples on how to implement this for JTable
.
這篇關于如何在 JTable 中拖放一行?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!
【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!