aayushpatel

Greenhorn
+ Follow
since May 02, 2001
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 aayushpatel

hello everybody,
i want to chage background color of JDialog and i had tried by using setBackground(Color.Red)..but i am not able to see any changes..Can any body help me to change background color of JDialog..
Thnx in advance.
Aayush
17 years ago
Hello everybody,
Can anybody tell me how can i got Jabber Client code from internet..I want java code for Jabber messenger.Expecting positive reply soon
Aaayush
17 years ago
Can anybody tell me how can i draw string at different angle..
18 years ago
hi there,
i m trying to read data from template files..i had already written codes for that thing but finding problem with recrusion...here i m typing my codes...
import java.io.*;
import java.util.Properties;
import java.util.Enumeration;
import java.util.*;
public class CTemplateLoader
{//static Hashtable ht;
static Properties props;
CTemplateLoader(){}
CTemplateLoader(String templateName){
//System.out.println("name of template :"+templateName);
props= new Properties();

try{props.load (new FileInputStream (
templateName+".template"));}
catch(Exception e){}

}
Hashtable getHashtable(){
return props;
}
public static void subhash(String st)
{System.out.println("in subhash :"+st);
int i=st.indexOf(',');

char charr[]=st.toCharArray();
int startind=0;
int ind=0;
System.out.println("length of string is :"+charr.length);
for (int c=0;c<charr.length;c++ )
{
if(charr[c]==',')
{//ind=c;
System.out.println("Sting is :"+st.valueOf(charr,startind,c-startind));
CTemplateLoader ctl1=new CTemplateLoader(st.valueOf(charr,startind,c-startind));
Hashtable htb=ctl1.getHashtable();
Enumeration e=htb.keys();
while (e.hasMoreElements())
{
//String s=""+htb.get(e.nextElement());
// int i=s.indexOf(',');
// System.out.println(e.nextElement());
if (htb.containsKey("InheriteTemplate"))
{
subhash(""+htb.get("InheriteTemplate"));
}
else
break;

}
startind=c+1;}

if(c==charr.length-1)
System.out.println("Last element is :"+st.substring(startind));



}
}
/*Hashtable getHashtable(String templateName)
{

}*/

public static void main(String[] args)throws IOException
{
CTemplateLoader ctl=new CTemplateLoader("chart");
Hashtable hashTable=ctl.getHashtable();
Enumeration e=hashTable.keys();

//props.propertyNames();
while (e.hasMoreElements())
{
String s=""+hashTable.get(e.nextElement());
int i=s.indexOf(',');
// System.out.println(e.nextElement());
if (hashTable.containsKey("InheriteTemplate"))
{
subhash(""+hashTable.get("InheriteTemplate"));
}
//



}
}
}
--------
now what i want is whenever i got "inheritetemplte"as key i want to execute same method and wanna to store key adn value in hashtable..can anybody help me...
18 years ago
How can i call java files from java sctipt..suppose i have one button on html page..how can i call java file on pressing that button
18 years ago
Can any body help me for the following...
I want to Print something on console when enter key pressed...I dont want this from frame or applet that i can do but i want as an application..can any body help me for the above regards...
Thnx in advance
18 years ago
Hi there,
Can anybody help me in following problem...i want to open notepad when i will click in applet...waiting for positive rep l y . .
18 years ago
I want an GIF image of an applet...now i want that image without creating an applet or frame...can somebody help me in this regards....hoping for positive reply very soon....
19 years ago
hello all,
I want to put .Jpg image as background image in my applet can any body help me in this regards..i want in background that is important....
19 years ago
I m giving by example which i want to solve..suppose i have two textfields and one label..as i m entering value in first textfield then that value had been showed in label..if i m entering value in 2nd textfield then label will give me sum of that two values that is value in textfield1 and value in textfield2..now if i m entering value in third then it will give me sum of three values in label...i had tried but not getting satisfactory result and exception too.so plz help me in this regards...
19 years ago