32,199 Topics
| |
Hi, I was wondering if anone here could help me out a bit with my Reflection problem. My problem is that when I try to find the methods inside a class, not only do I get its methods, but all of its inherited methods or something like that. So if … | |
I am new to Java & in my college we r directly being taught the applets. So i have a very simple set of questions since i have not done core Java.please answer them in relation to applets(I have a background in C/C++ also)----- 1) While calling inbuilt functions in … | |
Greetings all, I am, obviously, new to Java. I am in my second Java class at UOP, and quite honestly, they seem to believe in letting us teach ourselves! Enough of my rant. I am currently working on expanding a mortgage calculator program, such that it needs to open a … | |
Okay. I am very new to Java and I am very excited about it. However, I have hit a brick wall. I have a couple of questions about my code. 1. How can I make the program print a blank space in between the ****RESIDENTIAL ....***** and Max number of … | |
I have made this car but am wondering how I would get it to move across the screen either on load or by button click any suggestions? import java.applet.Applet; import javax.swing.*; import java.awt.*; import java.awt.event.*; public class NewCar extends JApplet implements ActionListener, Runnable { Container con = getContentPane(); JButton moveCar … | |
Have you noticed that there are way more C++ developers than Java developers here in this community. See the comparison of the two primary forums: [CODE] Forum On-line members Threads Posts C and C++ (50 Viewing) 2,941 14,622 Java (18 Viewing) 1,212 4,976 [/CODE] Is it true that there are … | |
hi every one i am doing this coursework where i have to design two class one is: Point2D, that models a two-dimensional point. The second class implement a class Oblong(rectangle) from a given specification and will require the use of the Point2D class. 1. A Oblong specifies an area in … | |
Ok, it's like this: I can't have any class file downloaded from my website, for personal reasons. A user could view the applet like this: applet.html then change the url easily to this: applet.class and have my program that easy. Is there way I can secure this somehow??? | |
Hi Not sure if this is the right section of the forum for this question. I am trying to shorten the background in this header I am working on. I do not know java at all so I am less then a newbe perhaps a wanabe (smile) here it is … | |
In my code i take an inputted number, which could be in hex with letters, and put each individual digit into a seperate space in an array. To change the letters in hex to numbers in decimal, i tried doing it two ways: (a is my array name, and i … | |
Hi, i am heading to develop one chatting application in JMF with JAIN-SIP API.. In stead of refering some sites, they talked about Apache Ant and CVS... WHats that..? for what purpose we need that in the Java Application Development..? How to use that in that..? i saw some reference … | |
hii all ..plz can any body help me in writing a java program that solve a public pathroom problem(a sharing pathroom for boys and girls in which no both of them can appear at the same time in the pathroom ) the program must solve the problem and synchronize between … | |
Hello I do not know java however, I know that with java you can log IP addresses. If someone could, would they please write a script that could be embeded into an html file. This sript should collect the IP address and store it in a file. Thats all. Thank … | |
I am writing a program to calculate a numeric palindrome, and to do that i have to reverse the digits of a number, and add that to the original. The best way i can think of to reverse the number would be to put each digit individually in an array, … | |
Hello, I have a quesiton regarding my code. I thought it would be cool to try to implement the reliable UDP file transfer that everone does as a college student. I'm new to java, and im having some problems. Whenever i try to connect with the client, it refuses the … | |
I know HTML, but not Java or Javascript... Is the .jar file the class or are they 2 entirely different things... Also, do ya save the applets as ".jar"? I'm new to programming.. | |
Hi everyone, I have a question about the use of properties. You see usually if you wanted to add a property you would do this [code] Properties systemProperties = System.getProperties(); systemProperties.setProperty("http.proxyHost", proxy); systemProperties.setProperty("http.proxyPort", port); [/code] But the thing is i have heard now that this property class may be deprecated … | |
Hi, I'm teaching a Java course this fall and was wondering if anyone has a favorite Java textbook. I'm planning on using [U]Java Methods[/U], but I'm not totally in love with it yet. Anyone have any input? It would be greatly appreciated! Thanks! | |
Hi everyone, I am trying to set the properties so that i can reach URL's using the Java URL class but usually i use this if there is a proxy [code] System.setProperty("http.proxyHost","proxy"); System.setProperty("http.proxyPort","80"); [/code] but after visiting some sites they said that if i want to connect to a URL … | |
Ok I would like to use Deck in a third class. Deck myDeck = new Deck(); Then in paint I try g.drawString("" + myDeck[1].suit, 50,50); It says 'array required, but Deck found' If I try Deck[] myDeck = new Deck(); I get 'incompatable types' I hate asking for help BUT … | |
Hi I have searched this site for help with this and used an example of a lottery numbers program. However, I need to modify it slightly but can't seem to get it right. I would like to be able to generate random numbers between 0 and 100 (maybe negative oness … | |
Heya all, Is there a way to get the date and time that is set in the Cmos and not the date and time which is set in Windows. My Windows date and time is usually wrong. Thanks! | |
Hi everyone! My name is Paul I have an OO project that I need to complete by the 15th of August and I have attempted to start it but i'm now stuck. If anybody can help me in anyway possible I would greatly appreciate it. Please find the specification below. … | |
[B]Problem[/B] Due to a rather annoying and very old bug in JTable you will never get a horizontal scrollbar on a JTable even if the table is wider than the JScrollPane you placed it in. According to the bug report this is due to an error in the handling of … | |
EMERGENCY I TRIED WRITING A PROGRAM THAT: THROUGH CLASS DAY SETS,PRINTS,RETURN WEEK DAY THE PREVIOUS AND NEXT DAY ,AND SHOWS THE CORRESPONDING DAY OF THE DAY IN A WEEK LIKE : [COLOR=DarkRed]DAY:5 IS SUNDAY DAY: 34 IS WEDNESDAY ......ETC...........[/COLOR] [COLOR=Navy]PLEASE HELP HELP I NEED TO SUBMIT THIS IN 4 DAYS. … | |
Hiya, Does anyone know of linking Java with Fortran under Windows OS, preferably Windows XP? Can anyone give a short example including code? I have found pretty good examples of using Java-JNI-C/C++ works pretty well. I am using Dev-C++ compiler. I look forward to hearing from someone. Thx Rony | |
Hi everyone, Consider this URL. "http://forums.devx.com/newthread.php?do=newthread&f=104" Some URLs have something that are called escape characters("?", etc") Are these characters supposed to encoded using the URI class that has a method called toASCIIString() that returns the escaped characters as a US ASCII format or simply by direct connection or create a … | |
1. How can I send files as mail attachments in java? 2. How can I create a new directory everyday and save files in it? 3. How can I append into a file after saving the file with a save file sequence? | |
I try to use getClass().getPackage().getName() to get the package name of an object to insert into a log message. Sometimes it works, at other times it throws a NullPointerException. Does anyone have any insight into the conditions under which getPackage() returns null ('cause that's what's happening)? The classes in question … | |
Hi, I have developed the attached JAVA programs (*.java) and encountered compilation error (*.txt), it would be very much appreciated if you can help. Thanks, Victor |
The End.