-2

I am new to Java and I want to make a small game like http://www.oopixel.com/games/samegame/ and I want to make same effect like in Yellow box enter image description here

My question is from where should be star because I do not know the name of this to look for it Please help me I have spent hours on this, but I did not get anything

informatik01
  • 15,636
  • 10
  • 72
  • 102
motaz99
  • 441
  • 3
  • 8
  • 15
  • 1
    Where should you start? Look up examples, code, and *tinker*. This isn't a great question, but you should be prepared to go forth and experiment on something like this. – Makoto Dec 30 '12 at 23:18
  • My problem I do not know this characterization to start search for it :( – motaz99 Dec 30 '12 at 23:21

3 Answers3

2

You can read in JOGL ,it is a wrapper library that allows OpenGL to be used in the Java programming language

Alya'a Gamal
  • 5,554
  • 18
  • 34
2

Well, seems like a tool tip here if you are talking about "+15" on the blue background in the yellow box.

Here is the official Oracle Java Swing tutorial and tool tip example: http://docs.oracle.com/javase/tutorial/uiswing/components/tooltip.html

informatik01
  • 15,636
  • 10
  • 72
  • 102
2

You could create your own version of the game using instances of JToggleButton in a GridLayout, as shown here. The yellow rectangle could be drawn on the glass pane using drawRect() with a Stroke of 4. The +15 looks a lot like a tool tip, as @informatik01 suggests. See also this simple MVCGame.

Community
  • 1
  • 1
trashgod
  • 200,320
  • 28
  • 229
  • 974