pratik_khetia

Greenhorn
+ Follow
since May 12, 2001
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 pratik_khetia

Hi,
I want to know how to incorporate "File Transfer Protocol" in an applet...basically I want to provide the user with an ability to send and receive files from different machines over the net.
For that I also need to know how to sign an applet. Although I have gone through some stuff about how to sign an applet but still it's not working the way it should...so I would really appriciate if someone can explain it to me in black-and-white !
thanks
Pratik
22 years ago
Hi,
I want to know how to incorporate "File Transfer Protocol" in an applet...basically I want to provide the user with an ability to send and receive files from different machines over the net.
For that I also need to know how to sign an applet. Although I have gone through some stuff about how to sign an applet but still it's not working the way it should...so I would really appriciate if someone can explain it to me in black-and-white !
thanks
Pratik
22 years ago
Hi..I am preparing for SCJP. I have been working on Java since last six months...so preparation is not a problem. But I would need some help from you guys as what kinda questions are asked in the exams ? What is the style ? What is the fee ? and where can I take the exam - I mean ..can I take it at any Prometric centers ?
So if any of you can help me on this ...please do so..
I'd look forward for your answers..
thanks
Pratik
Hi Gary,
For that AWT help...I tried that..but it's not letting me do that..now let me write u the details...
I am using Swing & JDK1.3 now in my applet the layout is something like this..
container cPane = getContentPane();
cPane.add(JSP,CENTER) (JSP is a JScrollPane)
cPane.add(toolbar,SOUTH) (toolbar is a JToolbar)
Now I am using a JEditorPane which is inside the JScrollPane..and on that I want to put a textbox anywhere I click the mouse...
So I tried as u said but it's now working...though it's not giving any errors too !So if I want to keep my layout intact..how should I do ..?
any help from u would be higly appriciated
thanks
Pratik Khetia

Originally posted by Gary Bryan:
You need to set the layout manager to null, add the textfield to the container you want it on, then use the setLocation method to set its position.
(on the container you want)
TextField tf;
...
tf = new TextField(10);
add(tf);
setLayout(null);
...
public void mousePressed(MouseEvent e) {
tf.setLocation(50, 50);
}
would set the location of the textfield's top-left corner to 50,50.
If you want to set it to where the mouse was clicked, use
tf.setLocation(e.getPoint());
Hope this helps.


22 years ago
Thanks.
I think it should work..I'll try that and get back to u again..

bye
Pratik
22 years ago
I have a situation where I need to have a functionality to put a textfield anywhere on the applet ...on MousePressed event...
How do I do that ?
I would appriciate if anybody can write me a reply..
thanks
Pratik
22 years ago