Vinod Venugopal

Ranch Hand
+ Follow
since Dec 06, 2000
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Vinod Venugopal

Hi,
I'm using WSAD 5.0 profiler for performance tuning and I found out that WSAD profiler does not record primitive java types. Looking through the various documentation , the JVMPI (which WSAD is using)has various heap analysis levels. One of these levels is to record java classes without primitive types. It looks like this is being set somewhere maybe in some settings file of WSAD? could someone suggest where could this setting be or how do I get out of it so that I could turn it on and get the correct picture?
Thanks,
Vinod
21 years ago
I agree with Aaron, see if a firm uses messaging tools like IBM mq series most likely they would get licences for IBM WAS & so use it, WAS 5.0 is definitely better than previous versions notably a faster Axis web services engine but u need a lotta memory for using it. Performance wise I guess BEA tops. Any comments?
22 years ago
Hi Josh,
could u pls tell me how du add a listener to the Graphics2D object like a line, du have some sample code or something, the API's dont seem to support listeners.
The line needs to have properties viewed on popups so thats y a generic control is to be designed.
Vinod
22 years ago
I know this is wierd but I have to make a JPanel behave like a line, like for example I have a JPanel which looks like a link( a line ) between 2 icons, now I need to add popups to it ( thats y I cant use plain Graphics's line ) as well as stretch it like we could do to lines ( rubber banding )..any ideas?
making the panel look like a line is nothing new but rubberbanding the panels?
Thnx,
VV
22 years ago
No guys,
What I want to do is display a component over a component..its like a chair over a floor, i need to display the floor as well as the chair, but with JLabels having an image,the chair goes under the floor..hope u all get the idea
23 years ago
Hi Greg,
Even im trying to to get a soln this problem, I know its too late, but I found ur messg using the Search option, I'm using labels with images, & the new label gets added below the first one..any ideas?
23 years ago
When u want to use a wait cursor, then u could use:
setCursor(new Cursor(Cursor.WAIT_CURSOR ));
when u want to restore the cursor u could use:
setCursor(Cursor.getDefaultCursor());
23 years ago
Oops sorry , I would like to correct the message above, commponparent is a Panel like MyPanel...
23 years ago
Thanx guys for the feedback, ..Manfred, mine is something similar to the commonparent types except that commonparent is a frame itself, also I just dont need to repaint, based on values obtained from some table based operation in p1 I have to drawrect in p2..& this is dynamic..that means the Graphics context object needs to be active all the time..
Just doing drawrect was creating problems so I tried with adding JLabels with borders & empty text so it looks like rectangles, works out somewhat ok, but it would be gr8 to use graphics object & tinker with drawRect.
23 years ago
hi ,
simple problem but cant rack my brains enuf :-)
Ok, now I have 2 classes which extends from JPanel each, one of them ( p1) has a button draw, once I click on draw I should be able to draw a line in the other panel ( p2) but without creating an object of p2, how do I do it?
for eg.
class p1 extends JPanel
{
}
class p2 extends JPanel
{
draw.addAction...
{
//draw line in p1 ..
});
}
23 years ago
Hi Arun,
Your makePanel method was creating the problem, dont call mp = new ..in ur main class.., first of all declare ur memmer variables in main class, then in ur test constructor call methods which will create define the members & create the panels..
test
{
JLabel j;
public test()
{
buildToolbarPanel();
buildMainPanel();
.
.
}
buildMainPanel()
{
j = new JLabel();
....
}
.
.
}
also try not to create a monolithic code for ur actionPerformed(), try as far as possible to use adapter or inner anonymous classes & in each u can call methods so they can be reused, for eg.
login.addActionListener( new ActionListener()
{
public void actionPerfomed(ActionEvent ev)
{
doAction();//u could reuse this doAction
}
});
try to avoid creating unnecessary objects..thats the most common of mistakes as u learn,..
& u will learn more & more tricks by reading Javaranch's code snippets
23 years ago
You could either set gaps between the panels in ur BorderLayout or u could explicitly set insets.
23 years ago
Hi vinaya,
Why du require X & Y position of the cell, if u want to put a popup menu then u could extends the cell to be a label & then add a popuplistener.
23 years ago
Could anyone tell me what could be the reason behind the universal Java truth that JFrame is not extended from JComponent ?
Vinod
23 years ago
What ur talking about is themes & I dont think Sun's JDK has provided any option to change the themes as such. You can atmost change the icons but not the colour of titlebar.
They will have to customize the PLAF classes to allow such changes.
Vinod
23 years ago