32,204 Topics
| |
Take just this simple method from the graphics class: fillOval()....Why is it abstract? Or better yet, where does it become concrete? I know I've never had to create my own implementation of that method. | |
I need assistance with the following: Write the Java code which uses iteration to produce the following output:: 1 1 2 1 2 3 1 2 3 4 //////////////////////////////////////////////////////////////// My Source code: (Not correct) Please review, I must include a loop to produce output as follows: 1 1 2 1 … | |
Hi everyone, I am trying to add pictures into a html document and so far everthing has been going well but i have a question. Wen i insert the pictures into the html document they show up and i am able to save them to disk in html format. The … | |
Im pretty new to java and I have created a couple simple programs... and I was just wandering how exactly to use textFields and textAreas. I have created a textfield before, but I need a simple textField that works like the windows prompt. I just want a textField that will … | |
I am making a Java application and I can't make it save multiple text files. The program must save a different file everytime the save button is pressed. Can it be done? I thank you in advance | |
Hi everyone, I am currently trying to do an application that does the upload as well the download of files from a http server that needs authentication. The thing is i am not very sure where to begin and i am open to any suggestions. Basically what i am trying … | |
I'm trying to learn Java on my own; however this book(for lack of a better word) sucks. It only has integer examples; therefore, I am unsure of how to script names, I'm trying "cha"; however it doesn't work. I want to write a program that reads: the total number of … | |
My problem usually happens when I have logged off the internet and I go back. I get a small screen in the center and it says "dtdp://748/331lljgen44.cjt1net/HTM/704/0/JavaSiteRequest.asp?LV=6000&DC=453&NF=0&IW=720&IH=300&ORD=1121629852397? 7" and after I hit OK it then says can not find site "dtdp://748/331lljgen44.cjt1net/HTM/704/0/JavaSiteRequest.asp?LV=6000&DC=453&NF=0&IW=720&IH=300&ORD=1121629852397? and after that I can go about my business | |
I've been writing a java application to run employee data and compute their salary. I'm having some problem with my Manager class. Manager class is for adding and removing employee record supervise by a manager and compute their total salary. Can anyone guide me how to develope this class with … | |
The assignment is as follows: Write an original program with a theme of a family vacation. The name of the class containing the main method should be VacationXXX. There should be at least four classes. Use a menu with a switch statement to provide a menu of options to call … | |
Okay, when I first started trying to teach java to myself, I picked up a book called "Java: A beginners guide" by Herbert Schildt. I thought compiling was going to be as easy as c, I was of course wrong. Well through various searches I've figured out how to get … | |
Can anyone help I have the oddest problem on my PC. I am running Windows XP with SP2 and have IE6. The problem is when I go to [url]www.porsche.com[/url] and try to run the Porsche Car Configurator web page, the page loads up and says done at the botton conner … | |
hi i want to do a program for mway search( external sorting),displaying each step of sort in java, can any one of you please help me, i am a starter in java. thanks in advance | |
Hi all, Im new to the site and to Java. Im having some trouble with my current assignment. I was suposed to make an isosceles triangle with asterisks based on a number entered by user. I got the first half correct but I can not figure out my loops for … | |
I have attached 2 java files which, when run, simulate a calculator that performs addition and multiplication only. I have been working on it for some time...getting assistance from varioius sources. I am having two issues I need help in correcting. They are as follows: 1) When multiplying two single … | |
Hi everyone, I need a bit of help on java proxies and managed to find some articles about them on javaworld but the thing is that i can't seem to access these articles for over a week now and really don't know why. Could someone please try to access these … | |
I was told a problem was due to corrupted Java, so deleted all files and folders using find function. I also wiped MSIE to use an earlier version which I was told contained MSVM. Original system: W 98 SE, MSIE 6 SP1, AOL 8.0 Java working normally current system: W98 … | |
Hi everyone, I need to ask a very broad based question about the JAVA Authenticator class. Is this class only meant to be used for authentication for the Http internet protocols or it can also apply to Ftp internet protocols and Https internet protocols?? Any help is greatly appreciated Yours … | |
Heya, Are there any possibilities to deactive or hide the "minimize" button on the JFrame like you can do with the "exit" button. I got around it by setting a listener for minimizing the window. When the window is minimized, I restored it and bring it to front again. Thanks | |
I am trying to create a class which could be a subpanel. It extends JPanel and implements AdjustmentListener. The JPanel is used here as a container and it keeps JLabels and JScrorrButtons layouted with gridBagLayout. This class instantiated in application doesn't work, none of components (labels and scroolButtons) don't even … | |
as above im am getting pretting good at java now and have make a few 2d games. i want to get into 3d now. i have tried google but it is really hard to find normal java 3d tutorials. i keep finding the applet ones which i dont want to … | |
How is it to pass `int [] rank` to main method? public class Card { private int [] rank= new int [13]; private String [] suit={"Spades","Hearts","Diamonds","Clubs"}; private static void rankMaker (int []rank) { for (int i=1;i<=13;i++) rank[i]=i; } public static void main (String []args) { System.out.println("Jack ="+rank[11]); } } Ignoring … | |
Hi everyone, I have a rather silly question but please bear for with me for a while. Does anyone have the Java Sun api for this class sun.net.[url]www.http.HttpClient[/url] I tried googling, went to sun's site but also could not find the api for this class. I would appreciate it if … | |
someone can teach me about the random genrated? let say i would like to generate a random number between 100 to 200 and store it into one integer variable, what is the code?????? | |
Is it possible to start thread in paintComponent() method ? I would like that thread to invoke the drawLine() method and count new parameters (points) for this method, and to draw a chart of function in this way. Here's the code,hoply describe better my purposes: [CODE] public class generator2 extends … | |
Hi everyone, If i were to set the http proxy for a particular url i did this [code] Properties systemProperties = System.getProperties(); systemProperties.setProperty("http.proxyHost", proxy); systemProperties.setProperty("http.proxyPort", port); [/code] Is the way that i did the best way to do it?? Richard West | |
I'm trying to create a calculator using the gridbag layout, but I can't even get started. This layout managers keeps starting stuff in the direct center of the frame and wont put anything anywhere else. I tried this: c.anchor = GridBagConstraints.SOUTH; I just can't seem to get this thing working. … | |
Hi everyone, I really need some advice and guidance on the following code [code] import javax.swing.*; import java.util.*; public class PopupAuthenticator extends Authenticator { public PasswordAuthentication getPasswordAuthentication() { String username, password; String result = JOptionPane.showInputDialog( "Enter 'username,password'"); StringTokenizer st = new StringTokenizer(result, ","); username = st.nextToken(); password = st.nextToken(); return … | |
Hi, I am running a system which consists of eight concurrent Java processes. All these processes run on the same box and are backend daemon processes which means they are designed to be started and then run continuously, as they are backend processes they have no user interface. Thus the … | |
hi, i'm fairly new at java, and i'm expected to make a plotting program soon, and i am stuck as to what to do. i haven't found any good tutorials online (most of them just confused me or they made a plotting program that i didn't exactly have in mind)... … |
The End.