Wanting a type of grid for a pixel editor
Posted
by wiggles
on Stack Overflow
See other posts from Stack Overflow
or by wiggles
Published on 2010-05-24T22:36:35Z
Indexed on
2010/05/24
22:41 UTC
Read the original article
Hit count: 251
Hi,
I am currently trying to develop a basic pixel editor application to build up my programming experience with Java. I am designing it so the user has several colour options on, they click on an option and then they can drag over the cells in the grid and they change colour (like a typical image editor, but with a sort of snap on to each grid cell)
Any idea of what Java component, if any, is able to implement this type of grid in Java?
I had thought of each cell being a JButton, but this seemed terribly inefficient and I don't think it would be possible to change the colour of each cell(button) with out individually clicking on each one.
Any help appreciated.
© Stack Overflow or respective owner