Extend « Button « Java Swing Q&A





1. extend JButton to make own JButton    forums.oracle.com

I wanted to be as brief as possible but I guess was too brief. I need the button generated 16 times (in the 4x4 grid). I need the block class to get the row and column of each button (there will be a mouse adapter added that will call and extract this information from this class).. I was told by my ...

2. Problem occured when changing JButton to a type that extends JButton    forums.oracle.com

/** * blocknum : [1][2][3] This will be used to link all * [4][5][6] 9 cells in a sodoku game to a * [7][8][9] group of 9. * 9 Groups with 9 Cells in Each * Group * x: X Coordinate to keep track of like rows * y: Y Coordinate to keep track of like columns */