amarnath srinivasan

Greenhorn
+ Follow
since Mar 28, 2005
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 amarnath srinivasan

Hi I have an intensity matrix and would like to display it as a image. To start with i thoght I will use the following matrix to try displaying all colour in a self generated color scale. The displayed image has only four colors(blue, green, magenta and orange). Can somebody tell me why?

Also please let me know if there are predefined color mappings in java.

15 years ago
Hi,
I would like to share a panel between two frames. How do I do that?

In detail, I have a panel, that has the controls(move control and position info) for a motor. In main frame, I display only the position information from the panel and make the other controls invisible. When a user wants to move motor, he clicks a button on this frame. On the button control, I create a new frame and pass the panel to the new frame and make all controls(move and position info) visible. Then the user can move the motor and when he is done can clos the new frame to revert back to the main frame. The problem is when I revert back to the main frame the panel is not there any more even if I try to repaint. How do I solve this problem?

I also have one more question. For the above problem is it okey to use multiple frames? what do you guys think. One other idea is to use a single frame and change the content pane of ythe frame with the motor controls when I click a button. But the problem here is the code will be cluttered with this controls for multiple panels.

Thankyou
15 years ago