I need to make a 9x9 table in Swing to make a soduku table. I tried using JTextBox but this is way to much work to make 81 boxes. I have used a JTable before but It would be hard to make that into a soduku table. (unless there is a way you can set the size of the cells without it changing). I want to also be able to clean the input so you can only input a number between 1-9 which i dont think you can do with textfields. Thanks for any suggestions!
2 Replies - 1482 Views - Last Post: 16 November 2010 - 10:11 PM
#1
What is the best component in Swing to make a soduku Table
Posted 16 November 2010 - 06:59 AM
Replies To: What is the best component in Swing to make a soduku Table
#2
Re: What is the best component in Swing to make a soduku Table
Posted 16 November 2010 - 07:06 AM
You could use a Custom TableCellRenderer to return a JTextField with a Custom Document that allows restricted input.
#3
Re: What is the best component in Swing to make a soduku Table
Posted 16 November 2010 - 10:11 PM
Page 1 of 1