• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

java Graphics

 
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My problem is ,
Let explain with example
In a chess boad many blocks r there,right! vat i want is, if the user choose certain blocks, those block should be filled with colures, and i want to place some data to the colour filled blocks.
How should i do?
Do i have to go for Jtable, or java graphics or any other third party tool,
Can u plz give me some solution?


with regards
kalai
 
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
you should try a 2 dimensional array since you know exactly the size of you board.

so it could be someting like that

[list]
Square board[8][8];
[list]

By creating a class Square...
reply
    Bookmark Topic Watch Topic
  • New Topic