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 ...
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 ...
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 ...
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 ...
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 ...
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?
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 ...
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.
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 ...
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 whith eclipse this can write in a file and when i run it in a html file it can't write in file
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 ...
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?
Is it possible to round a floating point number to 2 decimal places?If so - how?Younis
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 ...
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 ...
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 ...
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 ...
71 byte By
David04a at 2007-10-1 0:39:31
Can anyone tell-me how to read from an InputStream?Thanks
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
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 ...
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 ...
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 = ...
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 ...
83 byte By
h.daya at 2007-10-1 0:40:51
pleas tell me adout god j2se courses online free
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 ...
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 ...
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: ...
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
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 ...
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 ...
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
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 ...
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
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 ...
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........ . . . .
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 ...
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?
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..?- ...
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 ...
53 byte By
at 2007-10-1 0:43:38
Please people, no one is answering it there!!!
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
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 ...
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
[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] ...
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 ...
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
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 ...
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.
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 ...