JTextField.setText(String s) not working?

1107 byte By zachvaca at 2007-10-1 0:34:42
I have some code in a for loop that creates a certain number of JTextfields directly to the right of JSliders. Each JSlider has an anonymous inner class with a listener. So what I do on the listener is just go through the array and test if the corresponding JSlider is equal to the source of the ...

JTextField.setText(String s) not working?

1107 byte By zachvaca at 2007-10-1 0:34:43
I have some code in a for loop that creates a certain number of JTextfields directly to the right of JSliders. Each JSlider has an anonymous inner class with a listener. So what I do on the listener is just go through the array and test if the corresponding JSlider is equal to the source of the ...

JTextField.setText(String s) not working?

1107 byte By zachvaca at 2007-10-1 0:34:45
I have some code in a for loop that creates a certain number of JTextfields directly to the right of JSliders. Each JSlider has an anonymous inner class with a listener. So what I do on the listener is just go through the array and test if the corresponding JSlider is equal to the source of the ...

argh, sorry for the crossposts, here's the correct one

1476 byte By zachvaca at 2007-10-1 0:34:46
I have some code in a for loop that creates a certain number of JTextfields directly to the right of JSliders. Each JSlider has an anonymous inner class with a listener. So what I do on the listener is just go through the array and test if the corresponding JSlider is equal to the source of the ...

javacode(convert excel file to textfile tab delimeter )

356 byte By raymela at 2007-10-1 0:34:51
Hi to all!! Im making a web application program using JSP and Servlet..In my program theres two option where you can choose.. import by Excel or by Textfile format.I believe that its faster to process a textfile rather than excel file..can someone give me an example code (HOW TO CONVERT EXCEL ...

converting char to ascii

90 byte By xytora at 2007-10-1 0:34:53
is there a method that takes in a char as a parameter, and returns its ascii value?

proxyservice.jar

419 byte By stevenbeitha at 2007-10-1 0:36:00
I am having problems with IE 6.0 and very slow response from the address bar. I tried uninstalling Sun Java and it helped. But now I get a meggase eveytime I boot my (Win XP) machine that says;Windows cannot oopen this file:File: ProxyService.jar I can't seem to find any information about what ...

MousePessed/MouseClicked

115 byte By ibicema at 2007-10-1 0:36:03
Hi,I would like to know what's the difference between mouseClicked and MousePessed.thank you.

Problem with JDK1.5.0 Classpath

467 byte By KaiserChiefa at 2007-10-1 0:36:09
Hi guys,Having a little problem setting the classpath. I've installed jdk1.5.0 in the following directory - C:\Program Files\Java\jdk1.5.0 and I'm using the following directory for my classes - C:\Program Files\Java\ClassesI've already set the PATH variable in System to ;C:\Program ...

Creating and Controlling Windows in a Servlet

575 byte By NCattona at 2007-10-1 0:36:40
Hi, I would appreciate some help/guideance on a small problem I have with a Servlet. I have a control servlet that is mapped to execute upon entry of a single URL - this servlet will display a number of options with all the code for the web pages being dynamically constructed by the servlet. ...

why when i run an applet in a html file it cant't write in file

127 byte By madamadaa at 2007-10-1 0:36:44
why when i run an applet whith eclipse this can write in a file and when i run it in a html file it can't write in file

adding zeros to a variable..

326 byte By pourbaa at 2007-10-1 0:37:08
I hav ea program that manipulates/works on six digit number entered by user.what i want is that if user enters less than 6 digits, program adds zeros at the end of number to make it 6 digit. like if user enters 241 program converts it into 241000 before manipulating it.which area i must look ...

Why only one class can be extended?

151 byte By prathi_82a at 2007-10-1 0:37:15
In java multiple inheritance is not supported(though it can be achieved through interfaces).We cant extend more than one class.But why is it so?

Rounding floaters

107 byte By younis786a at 2007-10-1 0:37:21
Is it possible to round a floating point number to 2 decimal places?If so - how?Younis

class path problem

350 byte By gnpa at 2007-10-1 0:37:27
I have a .jar file which is in c:/JUnit folder.I set the class path as set CLASSPATH=%CLASSPATH%;C:/JUnit/junit.jar;I create a class SimpleTest.java(which is in c:) and tried to compile it from command prompt.But it's not finding the class files which is in junit.jar file.What setting i have ...

ftp ; the best practice

888 byte By Sangitava at 2007-10-1 0:37:50
Hi All,I have a question about FTPing the files/folders etc from a "source" UNIX/LINUX box to the "target" box. I know that you can use FTP, Secure FTP, may be some java package, there is on thing like "RSYNC" ....and others in the market.But i wanted to know what is the greatest and best ...

Regarding string tokenizer

365 byte By bond123a at 2007-10-1 0:38:53
Hello all,Can anybody help me to get the file name which is specified in the path likeC:/programs/folder/example.txt" or "C:/programs/folder/test.txt" or "C:/programs/example/verify.txt" . The path name will change dynamically in my program.What I want to do is to get the filename from the path ...

Using the same construct with different values

926 byte By AcidReniXa at 2007-10-1 0:39:23
I have a problem but im not sure how to word it yet, so here it goes.Here are some sections of my code (the relevant bits anyway):DrawingWindow dWin = new DrawingWindow( 500,400 , "Anim"); int circleTopLeftX = 5; int circleTopLeftY = 5; int circleTopRightX = 95; int circleTopRightY = 5; int ...

stupidly simple

71 byte By David04a at 2007-10-1 0:39:31
Can anyone tell-me how to read from an InputStream?Thanks

Something like a virtual Stream

118 byte By David04a at 2007-10-1 0:39:39
Can I have something like a virtual stream, were i can read and write in a FIFO law?Thanks--david

retrieve the name of a reference to an instance of a Class

1257 byte By nextOnea at 2007-10-1 0:40:03
HiI am a newbie.I am wonder if is it possible to retrieve the name (not the type of the instance .getClass) of the reference to an object, which calling a method.class A{void edit () { System.out.println(" Here i want to display the name (alpha or beta; or both) of the instance which call the ...

set ToolTipText!

631 byte By JohnPhama at 2007-10-1 0:40:04
Hi All,Could you please me to solve this problem?I have two Icons (with 2 different ToolTipText on its) display on 2 JButtons. The Buttons are display on a JPanel. The Panel is display on one of the cell inside JTable. Is it possible that when I move the mouse over each Icon it will displays ...

Multiplying floats

432 byte By mmchenrya at 2007-10-1 0:40:11
Why is that when I multiply 0.9 and 9 do I get 8.099999? Both variables are set to floats, but this is the output I am getting when I know it should be 8.1! As you can see I am getting so frustrated!float num1 = rand/10f;//divide by 10 to get a decimal value, i.e. - 2 = 0.2float num2 = ...

help

374 byte By jacobhazard17042a at 2007-10-1 0:40:34
I have a problem that states:Write the statments that close fileOut, and then associate it with the file dataOut.datNow the first part is easy: fileOut.close();But i dont really get what kind of file association you can make, let alone with a file thats already been closedIm not looking for an ...

need help fiding good courses for game making on j2se

83 byte By h.daya at 2007-10-1 0:40:51
pleas tell me adout god j2se courses online free

Help With Regular expressions

407 byte By mani2k_ina at 2007-10-1 0:40:56
Hi All,Can someone help me out in writing a regular expresstion for the following 2 patternsThe used pattern is:###.###,## The regular expression needs to match the thousands as they growFor eg, Valid Input can be : 100.454.777,2210.454.777,22Invalid input1004.454.777,221.23.444,22Thanks in ...

request.getSession().getAttribute() and session.getAttribute()

1219 byte By redders83a at 2007-10-1 0:41:11
Hi All,Sorry guys, I'm a novice in web programming and this may sound like a stupid question to you guys... Here it goes...Is there any difference between request.getSession().getAttribute() and session.getAttribute()?I have tried doing the following in ...

Java Comm accessing parallel port

7957 byte By -kaaJ-a at 2007-10-1 0:41:26
Hi,I'm stuck implementing parallel port access with the javax comm api. Serial communication class compiles without any problems and works. But I'm having troubles compiling the parallel access class.The error is: ParallelWrite.java:29: inconvertible typesfound: javax.comm.CommPortrequired: ...

Logical OR operator

212 byte By gw@balaa at 2007-10-1 0:41:33
Hi, Anyone can help how to solve the following ..System.out.println( 4 | 7);I have tried with logical opertor (0100 OR 0111) with result 11 !!but the answer was7 ?.-Alex

Java2 Platform - What does the number "2" mean ?

431 byte By nguyenhuyhunga at 2007-10-1 0:41:43
Hi all, it is likely stupic. I have used java for nearly 2 years but until now, I don't know what does the number 2 accompanied with java mean ? It is a kind of naming, versioning or what ? We have java2 including j2ee, j2se,j2me. The number 2 appears everywhere which remains a question in my ...

int Vs Integer

766 byte By gw@balaa at 2007-10-1 0:41:47
Hi, i have a method like ...public int args(int s){int s12 = 23;Integer inte = new Integer(s12);....?return inte.intValue();}this method wrapes the int to Integer ... but there no need on that....why we wrap the primitive int to Integer actually what is the technical advantage on that (apart ...

Word Count

147 byte By eviljoea at 2007-10-1 0:42:14
hey, i need help writing a piece of code that takes a text area and counts the number of words the user has written.thanks in advance

AbstractClass a = new ChildClass() ?

1242 byte By gw@balaa at 2007-10-1 0:42:15
Hi, I have an abstractclass along with two sub classes . the skeleton is here..... abstract class A {abstract method1()} class B extends A {//method1() implementation//one own methodB() here } class C extends A {//method1() implementation//one own methodC() here } when i try to typecost into ...

Chinese characters display

268 byte By manisha_cssa at 2007-10-1 0:42:22
I want to store corresponding chinese words for few labels inside the global variables (.txt) file and want to display it inside JSP.Do i need to take any precautions for this ? Or like normal variable i can make use of that ?regardsManisha

Private Access problem

997 byte By manisha_cssa at 2007-10-1 0:42:25
I have created a normal Java class "ConnectionManager" to get the connection and reated public method called getConnection inside this.I am having a servlet "MatchServlet" in the same directory. I want to call the getConnection method of ConnectionManager. I faced 2 problems1)I wanted to ...

How to read from Runtime application?

242 byte By jignesh20a at 2007-10-1 0:42:29
If i m opening a calculator by using the Runtime class then how is it possible to read the value from it....... That is suppose if i Press 1 than how can i get the value in my program... please help me out........ . . . .

Need Experts advice on Sychronisation and Thread safe

576 byte By manisha_cssa at 2007-10-1 0:42:31
I am bit confused because of these terms. I am having a very simple JSP (currently in a very raw stage) All my connection / common variables - inside JSP only. Slowly tring to separate it out.What i am doing is taking the data from backend (MSSQL) and putting it into JSP file (in between HTML ...

types of java applications

101 byte By 24601a at 2007-10-1 0:42:50
im new to the whole java thing and was wondering what sort of applications are made with java?

HashMap load factor ?

346 byte By gw@balaa at 2007-10-1 0:43:08
Hi, HashMap has an constructor to define the load factor....... HashMap(int initialCapacity) {}//Constructs an empty HashMap with the specified initial capacity and thedefault load factor (0.75).Initial capasity is the size of hashmap..what it means the defalt load factor..?- ...

java.security.AccessControlException

714 byte By Tuikea at 2007-10-1 0:43:23
Hi,What should I do when Java Console gives this message (because of jButtons' ImageIcons)?java.security.AccessControlException: access denied (java.io.FilePermissionimage1.gif read)at java.security.AccessControlContext.checkPermission(Unknown Source)at ...

Please answer my query in Java Programming

53 byte By at 2007-10-1 0:43:38
Please people, no one is answering it there!!!

events

246 byte By ibicema at 2007-10-1 0:43:40
Hi,I have three buttons : b1, b2, b3.I want b3 to perform a specefic action after b2 and another one after b1.I have no idea how to do that.I have the same problems with lists.Please help.thank you

Using breakers and drawString()

679 byte By da_wannabesa at 2007-10-1 0:43:42
Having coded in C++, I was used to the breaker \n. I am trying to draw strings on an applet hoping that a new paragraph will be created for each different string, as seen in the following code: gatherData = "\n"+"Model "+phone[cntr].getModelName()+ phone[cntr].getTimes()+"\nWeight ...

how to send email with an attachment?

113 byte By gabgaba at 2007-10-1 0:43:49
Runtime.getRuntime().exec("cmd /c start mailto:)what should I add in order to send email?10x

accessing a methord of another class

4379 byte By bleak26aa at 2007-10-1 0:44:13
[nobr]I have created two files, dmv.java and sessionchecker.java i would like to be able to access a method of the sessionchecker object called sessionCheck. at the moment i am reciving the error. but i do not understand why.u215312/webapps/dmv/src/dmv.java:39: cannot resolve symbol[javac] ...

Quick Java Help

856 byte By DeepPocketa at 2007-10-1 0:44:16
Hello, Im kinda new to this logic and would just like to ask a quick question...-- My MAIN method calls a static void method called Price-- public static int Price(){int price = 1000;int total = 0;total = price + otherCost():System.out.println(" The total is " + total)}-- public int ...

How to open AcrobatReader from Java

193 byte By DesarrolloScreenNamea at 2007-10-1 0:44:52
I'm developing a user interface and I would like that when I push a determined button the Acrobat Reader gets open with an specific pdf file, that I would send as parameterThanks

Summing up integers displayed in a textfield.

668 byte By bolo78a at 2007-10-1 0:44:57
I have an applet where a user can place order(s) on the items displayed in a combobox. So I have a textfield that will show the price, another texfield that shows the total, a textarea that displays the user's order and a button called checkout. Okay, here is my problem. When the user orders ...

key event didn't work

217 byte By chongchonga at 2007-10-1 0:44:58
My program works very well on windows 2000, but when I run it on Windows XP, I found the key event didn't work, and the font size is a little bigger than in win2000. I really cannot understand, please help me.

OAS9ias and WLI; please advises

409 byte By Sangitava at 2007-10-1 0:45:16
Hi,I would really appreciate if somebody can throw some light on oracle 9ias doing some integration with WLI8.1.We have an application that is using APACHE as webserver, and then uses 9ias and wli8.1. The backed DB is oracle9i.I wanted to know if somebody has this experience and if he/she can ...