This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
Hello I am new to Java AWT/Swing and have a question. I would like to create a 10x10 grid, where each "cell" can handle mouse events. So if I click on cell with a coord A4 then it would change color. I was thinking of using JButtons but I want the "cells" to look more like Excel-like in appearance. Any suggestions?? I want the end result to produce a look of a rubix cube and when clicking a cell it changes to a random color. Can JButtons accomplish this look??
Originally posted by El Durango: Can JButtons accomplish this look??
They can look like anything you want them to look like. Consult the Custom Painting trail of the Swing Tutorial. However, for your purposes, you could probably acheive an excel-like gui by using JLabels and setting a boarder on them. The Swing Tutorial can help you with that too.