Marc Beck

Ranch Hand
+ Follow
since Sep 09, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Marc Beck

I wrote this program several years ago. Then I got too busy with other things and stopped working on it. Earlier this year I decided to start it over from scratch and now I realize that I have run into exactly the same problem as the first time.
11 years ago

I am working on a point and click strategy game, so this might fit into the game development section as well as into the GUIsection.
I have a grid map, which extends JPanel. On that grid map, I have my units (planets, spacecraft) as JLabels. A mouse listener checks if a grid square that contains a unit has been clicked on (by using the coordinates), and then opens a menu that lets you move the selected unit, etc. Everything worked fine until I added tooltips that would display information about each unit. Now I can no longer click on the unit itself, but have to click somewhere on the grid square away from the unit to get the menue. And even then it does not always work. Please let me know what I did wrong and how I can fix it. Thanks
11 years ago
I tried it and it did not help. Must be something really simple, but I just don't get to it.
That is what the code looks like:

15 years ago
I am still having problems. For some reason it worked when I tried it a week ago and I got a picture, but now when I run the applet it is blank. When I click refresh, the area where the picture is supposed to be flickers.
15 years ago
Now I am getting a picture. I will play around with it over the weekend and see what I can do with it. Thanks for your help.
15 years ago
I copied the applet and ran it from a html file, but nothing happened. It only says 'applet RotateImage started', but nothing appears on screen. I tried it with a jpg first and then with a png.I am sure that I spelled the names of the pictures right.
15 years ago
I checked all the images and they are the correct ones. Rotating sounds like a good idea, I just don't know the code for it.
15 years ago
I have the problem that my icon faces left when moving up or down. It faces however in the correct direction when moving left and right.

15 years ago
I changed it to:



The error message is gone, but still nothing happens when I click on the icons.I am sure that ImagePanel is the correct panel, because that is the one that contains the icons and that has the main MouseListener. Thanks for your help and for being patient.
16 years ago
I have this now:



and I get the following error message:
16 years ago
Thanks for pointing that out. That must be the reason, because I just recently added tooltips on my ImageLabels, and I think everything worked alright before then. How can I get around the problem? I am sure there must be a way somehow.
16 years ago
I have a panel with ImageIcons. When I click on the panel, I get the coordinates where I clicked, but when I click directly on the icons, nothing happens. This is part of a larger program(>4000 lines of code). I want to get feedback when I clicked on the icons. I hope this problem is not too complex.
16 years ago
I am using box layout manager to display Leaderlist and all my other lists. I tried what you suggested, but it did not do anything.
16 years ago
SetVisibleRowCount gets ignored. The list always displays all of its items, but I only want to display four at a time. This happens with all my lists. This piece of code is just one out of several cases.

16 years ago
Nevermind, I figured it out on my own when I looked on the code again shortly after my last post. But thanks for trying.
16 years ago