mayur dhawan

Ranch Hand
+ Follow
since Sep 20, 2005
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 mayur dhawan

Hi,
I had done SCJP 5.0 in year 2008 . Am I eligible to give the webservices certification exam this year ? Or I will have to re appear for SCJP exam.

Thanks,
dhawanmayur
8 years ago
Hi,
thanks for all the valuable information.
there is another solution I can find for this problem thats to create a FocusAdapter and on Focus lost event just dispatch the ENTER key event.Thus , as soon as person presses tab and the text field looses focus, we can do our computaions as in :





and add this focus listner to the text field as JTextField sample = new JTextField(); sample.addFocusListener(new TestFocusListener());
sample.addActionListener(new ActionListner() ...../* what ever code you want to write*/. )
13 years ago
Hi,
I am using Linux to build my code through ant .I also have java installed so the javac task works fine and compiles the code.
Now when I type "echo $JAVA_HOME" the output is blank.So, how does the javac task finds the path to java compiler?

thanks,
dhawanmayur
14 years ago
Hi,
I am new to xlink & Xpointer and want to know how to process them.I am able to create xlink, but how to see that working is my problem.
Can any body help me.

thanks in advance,
dhawanmayur
Hi Ulf Dittmer ,
Thanks for the response. Can you please elaborate what kind of maching processing is done using Xlink?

Thanks,
dhawanmayur
Hi,
I am a newbie, just started looking into XML. I was going through Xlink and Xpointer. Now, the problem is that when we put HREF's in HTML we can see the page in a browser and go the specified document.However, if we load the XML with Xlink's in browser we can see the XML only , its not similar to HTML. So, what's the use of the linking when we can't see and browse?

It might be a very bad question. But its bothering me.

Thanks,
dhawanmayur
hi,
I have passed SCJP 1.5 with a good score 97% and want to prepare for scjp 1.6. Any idea how much time would it take for preparation?It would be best answered by people who have already given the SCJP 1.6 exam.

thanks
dhawanmayur
hi,
I have passed SCJP 1.5 with a good score 97% and want to prepare for scjp 1.6. Any idea how much time would it take for preparation?It would be best answered by people who have already given the SCJP 1.6 exam.

thanks
dhawanmayur
Hi,
I am developing an app that pops a window in the system tray when a particular event occurs.Now, One feature I need to add is that ... If any application is working in full screen mode then the pop-up should be disabled.
i.e if we are working on a browser and we press F11 , so now the browser is covering the whole screen.At this moment the pop-up should not appear to the user.

Can this be done in java ??
any help is appreciated
thanks in advance

mayur
15 years ago
I think that there is promotion of type behind the scenes.But I can't understand how is it working.
I hope the problem is clear

any help is appreciated
thanks in advance
mayur
Hi,
following is the code
public <T extends Comparable> T findLarger(T x, T y) {
if(x.compareTo(y) > 0) {
return x;
} else {
return y;
}
}
public static void main(String[] args){
Test t = new Test();

Object x = t.findLarger(123, "456");
}
This code compiles and runs .In an IDE when I browse over the line Object x = t.findLarger(123, "456");
I see that the compiler has converted the function to
<? extends Object> ? extends Object com.generics.Test.findLarger(? extends Object x, ? extends Object y)
I want to know why is it happening.The code is compiling fine.

thanks
mayur
Hi,
thanks for the response.actually even if we do come comparision stuff inside the method.Then also it gives an error when we call it like
You can return x if x is greater than Y or else you can return y.
Object x = t.findLarger(123, "456");

thanks
mayur
Hi Frank,
Java generics don't permit creation of Arrays of generics.That's why you are getting error.

thanks
mayur
hi,
If we have a method
public <T extends Comparable> T findLarger(T x, T y) {}

and I invoke it as findLarger(123, "456");
then the compiler infers it as
<? extends Object> ? extends Object com.generics.Test.findLarger(? extends Object x, ? extends Object y)

Can you explain why?

thanks in advance
mayur