sanjay marjara

Greenhorn
+ Follow
since Sep 22, 2000
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 sanjay marjara

Originally posted by JWoody:
I've been given the task of establishing Java coding standards and have reviewed the "Chicken Coop" coding styles. I also have reviewd Sun's "Code Conventions for the java Programming Language" and "The Elements of Java Style" by Allan Vermeulen.
My question is where do I start?
What is the 5% of The "Chicken Coop's" Java Programming Style Guide that has been modified from the JDK source?
What are the more important conventions that should be covered in the standards?


23 years ago

Originally posted by jaideep:
I was compile a code with following starting lines
// QueryFrame - Database Query
import java.awt.*;
import java.awt.datatransfer.*;
import java.awt.event.*;
import java.sql.*;
import java.util.*;
import netscape.security.PrivilegeManager;
public class QueryFrame extends Frame
but at compile time I am getting this error:

D:\code1\query>javac QueryApplet.java
.\QueryFrame.java:8: Class netscape.security.PrivilegeManager not found in impor
t.
import netscape.security.PrivilegeManager;
^
1 error
what does this mean? and How could I rectify it.
any help
sanjay


23 years ago

Originally posted by gururaj sirdesai:
Hello Everybody,
I'm just started Java thru complete reference, i would like to know whether can we have both main() and init() function in a class, and that class should be extended by what class?
i would appreciate any quick reply,


23 years ago

Originally posted by Bonkers:
How can I save a string in a text file ?
My way :
.
.
.
BufferedWriter file;
String s = new String("Test");
file = new BufferedWriter(new FileWriter("textfile.txt"));
file.write(s);
.
.
.
does'nt work !
(I wrote this sourcecode without the book, where I read that. It is possible that there are some mistakes.)
I wrote that as an applet, but the file was not created.
HELP PLEASE !!


23 years ago

Originally posted by Stephanie Grasson:
Hi all.
I am very confused and hope you can help me.
I have an applet that extends class Applet and talks to a remote server via sockets. I use the same basic protocol as in Sun's tutorial on sockets (make the connection to the remote machine, open input and output streams and talk back and forth). In general, this works fine. I check for all possible exceptions and get the behavior I expect from the server.
I have a disconnect button in my applet. When the user clicks this button, the applet:
(1) sends a disconnect message to the server.
(2) closes its input stream
(3) closes its output stream
(4) closes its socket.
This is the exact reverse order from which they were opened.
Now, here is the problem. Sometimes, and I am not sure why,
I will hit the disconnect button and then close my browser. This works and there are no errors or warnings. The browser disappears from the screen. However, the browser doesn't really close. It is still running somewhere in the background. I have to go in and kill it with the Task Manager.
I fear there is some sort of cleanup I need to do which I am neglecting. It is the only explanation I can come up with, but I don't know why this is occurring. Just to be safe, I added the calls to disconnect from the server and close the streams and sockets to my applet's destroy() method (in case the user forgot to disconnect using the button).
I am using JDK 1.2.2 on a WindowsNT 4.0 system. The browser which has this behavior is Netscape 4.73.
If anyone has any advice or insight I would really appreciate it.
Thanks in advance.
Stephanie


23 years ago

Originally posted by rajasekar_i:
how to control the size of button to required size?


23 years ago

Originally posted by samar_chauhan:
what is the common use of applets? can you give examples where applets are commonly applied in webapplications?


23 years ago