Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!

Ranganath .S.Junpal

Ranch Hand
+ Follow
since Jan 16, 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 Ranganath .S.Junpal

hI guys,

Thanks a lot for your reply.. Actually i am using Eclipse IDe with VEP plugin.. Here in this Frame.. I am extending the JFrame.. SO i dont have any thing like this.setVisible(true with in the constructer.. and another thing is that.. This JPanel is on a TabbedPane.. So still the PIC is not visible till i resize it.. plz let mek now the soln

thank you
Regards
15 years ago
Hi all,

I have just created a JFrame with a JPanel. i have welcome class which extends JPanel, in its paintcomponent(Grapics g),method i have painted a Picture as a background to the JPanel. My problem is that when i start the JFrame it doesnt have that pic painted there.. when ever i resize it.. then that picture will appear .. Please if anybody know the soln for this problem..Pls let me know..The codes is as follows..

Code
---------------------------------------------------------------------------
import java.awt.Graphics;
import java.awt.Image;
import java.awt.Toolkit;
import java.awt.image.ImageObserver;
import java.net.URL;
import javax.swing.JPanel;

public class RemoteMainPanel extends JPanel implements ImageObserver {

private Image bgImage;
RemoteMainPanel()
{
URL ImgUrl = getClass().getResource("bg.jpg");
bgImage =Toolkit.getDefaultToolkit().getImage(ImgUrl);
}
public void paint(Graphics g) {
g.drawImage(bgImage, 0, 0, this);
}
}

Thank you
Regards
15 years ago
Hi,

First of all thanks a lot for your reply.. ya that document does gives me a proper info about the installation. Actually i had gone through it before only.. but my prob is it says install any of the wireless toolkit.. so i was wondering which toolkit to install..I would be working on the nokia S60 series mobile.. so i also have that nokia sdk.. i just wanted to know if i have to use any other wirelesstoolkit.. like sun wireless tool kit or some thing like that..

please let me know at the earliest
thank you
Regards
15 years ago
Hi everyone,

I am a new bie.. I have eclipse with eclipse ME plugin.. I just wanted to know wht else is needed to install to start working on J2ME.. i heard wireless tool kit is to be installed if so which one.. and plz let me know if there is any additional things needed to install..

Thank you
Regards
15 years ago
Hey John Meyers ,

Thanks a lot for sharing ur knowledge and experiences.

Regards
15 years ago
Hi folks,

I just wanted to know how to send messages frm my desktop to my Mobile via Bluetooth medium. I have Bluetooth dongle to my Desktop USB port. i just need tips on how to program to get to know if the Bluetooth Dongle is inserted to USB drive and how to send messages through the Bluetooth medium.. please let me know at the earliest

Thank you
Regards
15 years ago
Hi ,

I have a small program which uses a timer and timer task package.. the program works fine.. but the problem is that as the time elapses i want to show the hour minutes and seconds .. is there a way to print it..
The program is as follows...
===========================================================================
package com.mylib.olrt.Timer;
import java.util.Timer;
import java.util.TimerTask;
import java.awt.Toolkit;

public class TimerBean {

Timer timer;
Toolkit toolkit;

public TimerBean(int seconds)
{
timer=new Timer();
toolkit = Toolkit.getDefaultToolkit();
timer.schedule(new schedtask(),seconds*1000);
}

class schedtask extends TimerTask
{
public void run()
{
toolkit.beep();
System.out.println("Time's up!");
timer.cancel();

}
}

}
===========================================================================
package com.mylib.olrt.Timer;

public class Timertest
{
public static void main(String args[])
{
TimerBean tb=new TimerBean(5);
System.out.println("TAsk Scheduled!");
}

}

=============================================================================


Thank you
Regards
[ April 05, 2006: Message edited by: Ranganath .S.Junpal ]
16 years ago
Hi all,

i am designin a Quiz s/w whre in Questions are laid out in form of a Question paper. My problem is that for every questions and 4 options i have a Form. At the end i have one submit Button.once i submit i wanna know which radio button is checked in the various form and all forms should get submitted.. The code is some thing like this..

<html>
<form name="one" action="me.jsp" method="post">
<input type="radio" name="options" value="some thing">
<input type="radio" name="options" value="some thing">
<input type="radio" name="options" value="some thing">
<input type="radio" name="options" value="some thing">
</form>
<form name="one" action="me.jsp" method="post">
<input type="radio" name="options" value="some thing">
<input type="radio" name="options" value="some thing">
<input type="radio" name="options" value="some thing">
<input type="radio" name="options" value="some thing">
</form>

<form name="one" action="me.jsp" method="post">
<input type="radio" name="options" value="some thing">
<input type="radio" name="options" value="some thing">
<input type="radio" name="options" value="some thing">
<input type="radio" name="options" value="some thing">
</form>

<form name="one" action="me.jsp" method="post">
<input type="radio" name="options" value="some thing">
<input type="radio" name="options" value="some thing">
<input type="radio" name="options" value="some thing">
<input type="radio" name="options" value="some thing">
</form>
<input type="submit" value="submit">

</html>

Thank you
Regards
that done.. I have added all my .jar filed in web-inf/lib still it doesnt work..

Thank you
Ranganath.S
[ March 31, 2006: Message edited by: Ranganath .S.Junpal ]
16 years ago
Hello everyone,

I have done a project using servlets, jsp, Xml. I have an Ant to deploy in the Tomcat/webapps. The Problem is that if i deploy the .war file created by the ant in different system. Its not able to find my Libraries.. I have different Libraries for getters/setters, JDBC connect establishment and etc. My Jsp/servlet files are not able to find or map itself in to these packages.. it says "com.blah.blah" is invalid.. where in com.blah.blah is my package..
I have set all the required path, classpath , and i have added the required .jar files etc. I am using Eclipse 3.1.2 with lomboz plugin. I am using tomcat 4.1.
When i copy the whole tomcat content to the targeted machine. My project works fine.. But still i wanna know how it is getting mapped..
I think we need to map this user defined library through the web.xml file . But I dont know how to go about it..
If any one is aware of this please help me..
Thank you
Regards
Ranganath.S
16 years ago
Thanks a lot .. it works fine now!

Regards
Hi all,

i am using Eclipse3.1.2 IDE with the JDK1.5. The Problem is as follows:-
when i declare like this..

List<String> y=new ArrayList<String>();

The Eclipse IDe gives error as follows:-
1)The type List is not generic; it cannot be parameterized with arguments <String>
2)Syntax error, parameterized types are only available if source level is 5.0.

Can i know whats the problem. I have downloaded the recent make of Eclipse. I am not able to figure out whats the problem. when i execute the above declaration with the simple notepad. Its working fine. Please let me know if any configurations required for the Eclipse IDE to use the Generics.

Thank you
Regards

[escaped lower than and greater than characters using & lt; and & gt; - Ilja]
[ March 05, 2006: Message edited by: Ilja Preuss ]
Hi all,

I am using Business Intelligence and Reporting tool with my eclipse3.1 i want to know how to integrate with my Webapplication. Please throw light if someone is aware of it..

Thank you
Regards
16 years ago
Dude Edwin,

I tried using the way which u suggested.. My eclipse3.1(JDK1.5_03) says that
"The type List is not generic; it cannot be parameterized with arguments <String>" and it also says like this "Syntax error, parameterized types are only available if source level is 5.0 "


I just tried to declare like this..

List<String> ob=ArrayList<String>();

it is having problem.. please let know if you have any idea about this.
Hope my Question is Clear...

Thank you
Regards
16 years ago