S. Shree

Greenhorn
+ Follow
since Jun 25, 2008
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 S. Shree

Thank you for your time Charles, that was really useful. I think as time advances more and more companies would take the issue more seriously to incorporate in-built security mechanisms into the platform itself.
15 years ago
Hi,

I am just concerned with security for java classes.For example someone could just use our distributed jar files, extract them and decompile them using tools such as dj java decompiler. Is there any way to prevent it from happening?

Regards
15 years ago
The function I have created plays some midi files perfectly well while it cannot play others. The error I get is:



Can someone please help me with this...
15 years ago
Thanks Fred for your reply. I would stick to && just thought was there any other way or java api that would have let me handled that. Thanks though, really appreciate your time.
15 years ago
Hi Norm, thanks for your reply. I understand somethings you told but still can't get the picture clear. I would be glad if you can suggest me a way with example on how I can actually compare a,b,c,d to be equal in a if condition
[ June 27, 2008: Message edited by: S. Shree ]
15 years ago
why doesn't if (p==q==r==s) work? Is there any other way to check whether more than two variables are equal? I prefer not to your AND (&&).
15 years ago
Thanks for your suggestion Justin that really worked sweetly
15 years ago
I have created a animation where balls fall from top to bottom. The balls are inside panels and the panels moves down. The top to down animation is done by run method of a class (Balls) extending Thread class. The animation starts at a click of button, but what happens is the buttons seems stuck and i cannot see the animation.

here is the code:

Balls[] b = new Balls[2];

while (true) {

b[0] = new Balls(0);
b[1] = new Balls(1);

b[0].start();
b[1].start();

// used the following lines so that the while loop waits before current threads are over
b[0].join();
b[1].join();
}

My overridden run() method is right, I load the ball image depending upon the instance variable numb and then use the repaint() method in the paintComponent() method.

Now, if I remove the while loop, it works perfectly fine, but I want it to run again and again and there is where it strucks. Please help!
15 years ago
hey thanks again Norm, somehow you answer quite precisely without knowing the entire code structure Everything works fine now
15 years ago
How can I load two images on the same panel? and
How I use cursors to navigate with mouse keys over different panels?
15 years ago
Thanks a million Norm, it worked perfectly nice
15 years ago
Update : if i remove the overridden paintComponent function my panels appear, if I dont my panels (the panel grid) disappears
15 years ago
I have a frame, I added a panel (panelA) within it with gridlayout and I further added multiple panels within the panelA like :

[] [] [] []
[] [] [] []
[] [] [] []

The [] brackets above signify the multiple panels. I need to add different jpg images to these panels. Images switch position upon user click on the panel.

I tried to make a class ImagePanel and used it to create objects of that type but it still do not work out. The ImagePanel class code is as below:



I got success achieving the panel layout like grid style, but still having problems with loading images onto the panel. Thanks in advance for your help.
[ June 25, 2008: Message edited by: S. Shree ]
15 years ago
I need to draw a background image on multiple panels which have been added to a frame. The panels change images frequently. I am having problems using the paintComponent. Is there any other alternative to set a background image of a panel which can be changed as needed. Thanks in advance
15 years ago
I found out the solution myself. For those who are having same problem - I used the GridLayout for the panel that holds the array of panels.
15 years ago