Java Swing - JTable Dark Mode Custom
Vložit
- čas přidán 15. 01. 2022
- Java Swing Customize
Custom Jtable dark mode using java swing
► Custom Scrollbar : • Java Swing - Custom JS...
🙏🙏🙏 Support me by subscribe 🙏🙏🙏
► Subscribe now : czcams.com/users/HelloWorld-...
► Any question comment below
► Source code : github.com/DJ-Raven/jtable-da...
Wow,Damm man you are GOD in design with java!,
You make it look so easy haha,
Thank you so much for this code and this video!
Eres increíble!
You are welcome!
No había visto este video, las notificaciones me llegan muy tarde, Está muy bueno, Gracias
Thank you
You're welcome
Thanks, this really helped! I have one question: How do you change the foreground color of a single cell, but not the others?
Excellent video, bro.🏆😎⚡
Could you change the alignment of the columns to the center and their width?
Ok next video
@@LaingRaven 👍🏻😎
Hello, beautiful video! I had a question. To scroll horizontally? could you make a video please
ATTE: Google translator
You can try this code :
jTable.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_OFF);
it works correctly but after a while i get cannot use component the scroll remains there but the table just goes away is there any fix to that?
Please help screenshot the problem post in github issue.
hello, thanks for the video. i have question how to set border outline of jtable to invisible or no border?
change thickness border I use 2 so you can set it to 0
In class TableDark and method fixTable change
scroll.setBorder(BorderFactory.createLineBorder(new Color(60, 60, 60), 2));
to
scroll.setBorder(BorderFactory.createLineBorder(new Color(60, 60, 60), 0));
@@LaingRaven thanks 👍
a partie del minuto 10:21 todo comienza a marcarme error, podrías ayudarme por favor
Hi
When mouse click 2 time
I use the code to get result ___( String data = (String) jtable.getvalueAt(jtable.getselectedRow(),0);
But I got error like this ----(Exception in thread "AWT-EVENTQUEUE-0" Java.lang.ArrayIndexOutOfBoundsException: Index -1 out of bounds for length 8 )
Help me on this pls to get row value
Example : row value 1, name ,date
Need value is= 1
You need stop cell editing first before get value from cell
for stop cell editing use this code
if (table.isEditing()) {
table.getCellEditor().stopCellEditing();
}