35,617 Topics

Member Avatar for
Member Avatar for Efliction

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 …

Member Avatar for tomkeys2006
0
129
Member Avatar for ben1977

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 …

Member Avatar for ben1977
0
165
Member Avatar for dwn

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 …

Member Avatar for freesoft_2000
0
74
Member Avatar for Tigerdude

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 …

Member Avatar for Tigerdude
0
260
Member Avatar for Mikecool509

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 …

Member Avatar for Mikecool509
0
191
Member Avatar for c_est_la_vie

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!!!!

Member Avatar for Dark_Omen
0
97
Member Avatar for fdrage

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.

Member Avatar for jwenting
0
121
Member Avatar for lanario

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 …

0
84
Member Avatar for wsafdbv

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 …

Member Avatar for Phaelax
0
126
Member Avatar for tripnip

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, …

Member Avatar for tripnip
0
203
Member Avatar for muthumari

Hi, I haven't any idea about servlet chaining. anyone send small sample for servlet chaining. Thank you

0
90
Member Avatar for Lunaticrr

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 …

Member Avatar for Lunaticrr
0
122
Member Avatar for Reham Ejaz

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.

0
53
Member Avatar for tomkeys2006

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 …

Member Avatar for server_crash
0
111
Member Avatar for Lunaticrr

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. …

Member Avatar for Lunaticrr
0
130
Member Avatar for Dani

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.

Member Avatar for Dani
0
132
Member Avatar for soso30

I like to use sql procedure to java code how i connect it to my project please send code to be more obvious

Member Avatar for aniseed
0
64
Member Avatar for tdoggrme

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

Member Avatar for hooknc
0
733
Member Avatar for jigvesh

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 :)

Member Avatar for server_crash
0
289
Member Avatar for buggytoast

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. …

Member Avatar for buggytoast
0
144
Member Avatar for dgrblr

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. …

Member Avatar for dgrblr
0
929
Member Avatar for renick_j_v

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...

Member Avatar for Phaelax
0
120
Member Avatar for yashu

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 …

Member Avatar for aniseed
0
128
Member Avatar for gagirl14

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 …

Member Avatar for malaya_champ
0
109
Member Avatar for lev_arris

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, …

Member Avatar for iamthwee
0
140
Member Avatar for Phaelax

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 …

0
69
Member Avatar for iamthwee

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

Member Avatar for chrisbliss18
0
146
Member Avatar for dgrblr

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 …

Member Avatar for dgrblr
0
165
Member Avatar for buggytoast

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 …

Member Avatar for buggytoast
0
145
Member Avatar for parvin1987

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 …

Member Avatar for iamthwee
0
106

The End.