Deepti Tewari

Greenhorn
+ Follow
since Mar 21, 2002
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 Deepti Tewari

Hi Everyone,
I wanted to create a java program which will display a String
in all the fonts available on the System. (using a loop)
To achieve this I wrote 2 classes
1. AllFontsStringDrawer1
2. DrawString
AllFontsStringDrawer1 class has the main code while DrawString
has the main method to test the first class.
The problem is when I run my code A frame appears but there is
nothing written over it.
Pls. help.

code from second class


thanks in advance
Deepti
[ June 27, 2003: Message edited by: Deepti Tewari ]
20 years ago
Thanks Cindy.
Your article really helped me.
20 years ago
While going through various java books i come across the sentences like "Objects are alocated memory from heap" or String are part of String Pool..
I want to know what all kind of memories (heap/pool)are there in java and what are their advantages ...e.g. why objects are allocated on heap?
20 years ago
Hi Garion,
I think you should have a look at JInternalFrame
class.
regards
Deepti

Originally posted by Garion Winters:
Hi again, all.
I was having a minor problem, and wondered if someone could point me the right direction. Basically, within a GUI JFrame I want a button to pop up another dialog box, or what not. Then, I want that box to only be movable within the JFrame... if you move it out, it hides the portion that goes off. I guess this would make it a child window? Well, I am having trouble finding how to do this. Any places I should look, or examples I could see? Thanks again.

21 years ago
Hi Drake,

you can write a method in your bank class e.g.
int updateBalance(acctno,amount)
which will take acctno and amount to be added as the arguments.
You can call this method from your actionPerformed() method.
regards
Deepti

Originally posted by Drake Silver:
This is my code for my deposit procedure.
void jBtnDeposit_actionPerformed(ActionEvent e)
{
if(jTxtFAmount.getText().equals(""))
{
jTxtArea.append("No amount added\n");
}
else
{
BankAccount depositInto = new BankAccount(jTxtFName.getText(),
myBank.getAccountCounter(),
Double.parseDouble(jTxtFAmount.getText()));
depositInto.deposit(Double.parseDouble(jTxtFAmount.getText()));
jTxtArea.append("Account Number: "+ depositInto.getAccountNumber()+ "\n" +
"Account Owner: " + depositInto.getOwnerName() + "\n" +
"Amount deposited: "+ Double.parseDouble(jTxtFAmount.getText())+"\n"+
"Balance: " + depositInto.getBalance()+ "\n");
}
}
It keeps creating a new account each time, obviously it's becuase I'm using a constructor...but How would I go about not using the constructor and depositing into a specific account ID?

21 years ago
Hi Everyone,

I've one year experience in Core java.
Now I want to learn JSP.
Please suggest me some tutorials or some links
on net.

thanks & regards
Deepti
21 years ago
JSP
Hi Frank,
I downloded the admin guide from SOLARIS8 from sun's site and got the following information.
===============

Regardless of where their home directory is located, users usually access their home
directories through a mount point named /home/username.
When AutoFS is used to mount home directories, you are not permitted to create any
directories under the /home mount point on any system.
The system recognizes the special status of /home when Autofs is active.
For more information about automounting home directories, see System Administration Guide, Volume 3.

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

So now I at least know that /home has a special status in Solaris. rest is yet to be explored.
thanks for the pointer
Deepti
21 years ago
Hi again,
still don't know the reason
but rebooting the machine solved the problem.
and as per your suggestion in another post (chmod of /home problem)of mine i've downloaded the solaris admin guide from sun's site.
hope it will help me.
thanks for your help
Deepti
21 years ago
Hi Frank,
thanks for the prompt reply.
but this error is coming even if i use
"su - user"
command from root to log to a user's account.
and this is happening for every non root unix user.
thanks
Deepti
[ June 14, 2002: Message edited by: Deepti Tewari ]
21 years ago
Hi,
Some times on my unix (solaris) system it so happens that
when i try to login as a non root user then it
hangs i.e. the prompt never comes.
but at the same time it allows me to login as root.
has anybody faced this problem?
thanks and regards
Deepti
21 years ago
Hi Everyone,
I'm facing a strange problem.
On my Solaris 8 system I'm unable to change the permission of
directory "/home".
The current permision are
# ls -ld /home
dr-xr-xr-x 1 root root 1 Jun 12 16:50 /home
When I give following command as root user
# chmod 700 /home
It gives following warning
chmod: WARNING: can't change /home

I don't understand why this is happening.
By any chance is /home directory any special???
Please help
thanks and regards
Deepti
21 years ago
Hi Vinita,
I agreee with Clemet.
Once you have called suspend() the thread stops running and resume method is never called.
and thus the print statement after resume is never executed.
regards
Deepti
Hi,
I think to define new environment variable
following should be used.
1. setenv CATALINA_HOME "c:\PATH"
2. setenv CATALINA_HOME="c:\PATH"
I think one of them should work.(which one i'm not sure)
whichever command works you should put it in your .profile file
regards
Deepti
22 years ago
Hi everyone,
I've recently installed LINUX on my PC.I have got absolutely not idea how shall i go for installing the modem.
Please help !!
22 years ago