35,617 Topics
![]() | |
Hey Guys and Gals I just seeing if anyone can help me out? I discovered how to convert a Gui textfeild into an String but cant seem to find the on the api to do it for an int? For example int num = tfNum*****; Just cant find a appropiate … | |
I'm trying to write a Java application that will read five double values and find the total, average, minimum and maximum of the values entered. For some reasons after trying to find what wrong with it it's still not building. I'd appreciate someone's expertise on the matter. import javax.swing.JOptionPane; class … | |
I got a new laptop today and was trying to put some of my old info on the new comp. I went to yahoo sitebuilder to download the file to manage my web site. It downloaded ok , but when i go to the icon, it says " unable to … | |
I'm working on yet another graph problem. This time, we have to sort it topologically, using a DFS Based algorithm. I've been able to write most of it down, but there is one for loop that confuses me. Our instructor did not make it very clear as to how it … | |
Hello. I have been trying to trouble shoot my brother's computer for some time now. One day, the javascript on his computer disabled or deleted itself. He can't open new web page links, or anything with javascript, his search is disabled because the javascript is not working, and programs like … | |
already done the TIO one as follows: do { dStr=JOptionPane.showInputDialog("Please enter "+name+"'s demand:"); d=console.nextInt(); if (d<0) System.out.println("Demand can't be negative."); }while(d<0); but don't know how to transfer it into GUI style? anyone can help me? Thx!!!! | |
Hi, How do you go about in creating a direcory folder? I've been playing around with class [B]File [/B]which has the method [B]mkDir()[/B] (no arguments and returns type boolean), which i thought would be the answer to making a directory but apparently not, or perhaps i just dont understand it. | |
I need to validate the numbers 1-16 within the given array. Any numbers that are duplicate or are outside of the range need to be outputted. While if all numbers 1-16 are inputted only once then the boolean value is true. The numbers for the array theSquare are inputted previous … | |
For a major simulation project in our lab, we are receiving a series of integers from the lab equipment (note: we usually have in excess of 100 numbers per simulation). These numbers represent some actions of an ant colony. We need to return the number of elements in the largest … | |
I'm completely new to Java, and programming in general, and I'm trying to do something that I thought would be simple but I'm stumped. I probably did something wrong thats obvious to other people but not to me. I'm trying to display a GPA after you put in the grades, … | |
Hi, I haven't any idea about servlet chaining. anyone send small sample for servlet chaining. Thank you | |
This is my code: import javax.swing.*; public class Two { public static void main(String args[]) { JOptionPane.showMessageDialog(null, "Computers, computers everywhere\n As far as I can see\n I really , really like these things,\n Oh joy, oh joy form me!" JOptionPane.WARNING_MESSAGE); } } I am trying to make the text appear … | |
Hello to all! I want to learn JSP. I have basic level of knowledge about java and also about javascript. Dont know any thing about javabeans. I need to know of a good site where i can start from. Thanx in advance. | |
Hi Guys, wonder if any one can help?? I have been asigned some home work to make a CaesarCipher class, listed below, where by there is a test class below which would need to be passed to it. I have figured out the first bit but cant debugg and get … | |
I have downloaded the J2SESDK and installed it. It is the bundle pack that comes with NetBeans. However when I run the installation only the directories for the 2 are created and there is nothing in there. I haven't a clue if thats supposed to happen but I'm guessing no. … | |
When using a third party ad server, do you use the IFRAME or JavaScript method? Usually the JS method is more robust and offers more features, but it can slow down page rendering times. Currently struggling with this battle right now. | |
I like to use sql procedure to java code how i connect it to my project please send code to be more obvious | |
I wanted to know if anyone know how to get the length of digits, like if the user enters 12345 the computer will return 5 because the length is 5 | |
Well i am pretty confused between the three,,,,i tried going through the java forums [url]http://forum.java.sun.com/thread.jspa?threadID=583383&messageID=2981007[/url] and [url]http://forum.java.sun.com/thread.jspa?threadID=671804&messageID=3926799[/url] but just couldnt make out anything.......Could someone please explain it in a bit simpler terms.....Thanks a tonne :) | |
Hey guys! :D My program implements the vector class however it only shows I know how to use the Vector Class, and not how to develop a code for a linked list :( My teacher says I can just do a copy paste job, which is precisely what I did. … | |
I have tried every avenue I can think of, but this forum seems to be the best to supply help. I am creating a class using NetBeans. I have created the following code, but get an error message for the line "public static Connection getConnection (String strFileName, "","") throws Exception. … | |
i am doing a chat client server program.. i have a doubt in retreiving data from a applets textfield and passing into the stream. send some code if possible......... renick... | |
hi friends... i am new jsp's..i have done a web application.. i want to excecute the web application on the click of the mouse on a .exe file.. i mean.. that .exe should have the sever configuration also.. so that it can run on any comp which doesn't have a … | |
I don't know why I'm getting this return statement :sad: Please help. Error is in green public class Card { private int rank; private int suit; public Card() { suit = (int)Math.floor(Math.random() * (4-1) + 0.5) +4; rank = (int)Math.floor(Math.random() * (14-2) + 0.5) +14; } public Card(int r, int … | |
Hi guys, I'm currently making a GUI which displays a graph. At the moment it reads coordinates within an array in the code: public int datax[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}; public int datay[] = {1, 1, 1, 1, 1, 1, 1, 1, 1, … ![]() | |
I want to add theme support to my program so that users can just download jar files containing a LnF and just drop it into an extension directory or whereever. I'll just scan that directory for jar files to see which are present. Is there a way search for a … | |
![]() | Hello everyone. At the moment I'm compiling all my .java files in the same directory where the javac program is. I know this is a bad idea. How do I link it from the command line and let's say export the .class files to another directory of my choice. ThanQ |
I have created two GUIs with netbeans. I simply do not know how to call them to display on the screen. I'm sure it's simple, but I must not be understanding properly. I created the GUIs as JPanels and all they have on them right now is some labels and … | |
Hi everyone! (it's been awhile XD) I've gone and done my homework. And here I am with a program that works...pretty well I think. There appears to be a problem with the saving/loading. Originally it worked without a problem, but when I attempted to make it more graphically friendly (when … | |
hello I,ve wrote a program but it doesn,t work correctly please help me i want to sort some strings based on the number that should be entered at first of each string for example the strings that you enter should be in this form: 12_hello it means you should enter … ![]() |
The End.