35,618 Topics

Member Avatar for
Member Avatar for karlee

Everything works, except my WritetoDisk, it gives me a NullPointerException PLEASE HELP! /* * database.java * * Created on March 28, 2008 by Karlee * * This program allows the user to add/remove students' first & last name, social security number, debt, and GPA * The user can change te …

Member Avatar for Ezzaral
0
171
Member Avatar for Dr Windows (XP)

Hi guyz, I''ve done a bank's savings account program in java but can't compile, I keep on gettin the errors. 1. overrides `java.lang.Object.toString` 2. This methode must return a result of type String. both of the errors are on the method public `String toString () {...` public class SavingsAccount { …

Member Avatar for Ezzaral
0
90
Member Avatar for it2051229

How do i disable the editing of row in a table? i saw this property "editing row" which by default is "-1".. i changed it to 0 and still doesn't work, I really dont know what "-1" means... how do i disable editing of row? and enabling the sorting too?

Member Avatar for majestic0110
0
94
Member Avatar for debee

Hi there, I have been trying to figure out how I am getting this error: Exception in thread "main" java.lang.NumberFormatException at java.math.BigDecimal.<init>(BigDecimal.java:368) at java.math.BigDecimal.<init>(BigDecimal.java:647) at newtonsMethod1.sigmoidActivationFunction(newtonsMethod1.java:118) at newtonsMethod1.feedForward(newtonsMethod1.java:136) The following code : [code] for(int j =0; j< a; j++) { System.out.println("Enter into input neuron "+ j); String r = in.readLine(); …

Member Avatar for debee
0
291
Member Avatar for nireekshan

hai i am nireekshan i am using mySql database in this i am create employe table Now i am davalep One .HTML Page in this i am write the employe table fieldes-----------And write Jsp page inThis i write MYSQL CONNection code And Insert Prapared Staments Now i am run TOMCat …

Member Avatar for mr4top
0
92
Member Avatar for 1337455 10534

Hi, I'm a high-school freshman that wont be taking a programming class until next year. I am proficient at Python, and they decided to put me in AB Programming, which is Java. When I first started programming on a z80 TI-83+ with BASIC, I set out to make my life …

Member Avatar for Ezzaral
0
98
Member Avatar for it2051229

Ok I have two frames.. one frame calls the other frame so it's like a dialog box... the second frame pops out, and yeah i want to close this second frame with a button.. how do i do it?? I was also wondering let's just say that I have two …

Member Avatar for Ezzaral
0
299
Member Avatar for a_iyer20

Hello All, I need to create a simple xml document using DOM(I am not specific on using only DOM. It can be SAX also). I tried putting to use a sample from this link: [url]http://www.java2s.com/Code/Java/XML/MakeupandwriteanXMLdocumentusingDOM.htm[/url] In the link above, the line: Document doc = parser.newDocument(); resuts in a null value. …

Member Avatar for jwenting
0
116
Member Avatar for sivaslieko++

Hi, I am developing web page by JSP. I have JAVA classes and I need to implement functions to connect DB2 in JAVA classes. But, I could not connect to DB2.. When I searched I could not find any specific information about "JAVA DB2 connection string". Appreciates any help...

Member Avatar for jwenting
0
139
Member Avatar for Sirjames_da1st
Member Avatar for Sirjames_da1st
0
262
Member Avatar for minamoda

Hi to every one, I need some help about the program i am riting. I am a beginner in java and i cant split my input text file to its tokens. the part of the input file is : [QUOTE]101 Car 06AB1212 100 Y A 3 102 Car 06BG0101 200 …

Member Avatar for Ezzaral
-1
2K
Member Avatar for staneja

i am woring on a project that finds the CPU temprature and shows in the graph. I am using applet to disply this.The CPU temp program is running and fter every minute the Image is modifed but when i m displaying the updated image in the applet it fails to …

0
56
Member Avatar for Kusno

Dear all, I'm newbie in Java language. I get assingment from my teacher to create small project for my final test. Now, I create a Budget Controlling project using Netbeans. I have created main class, Login form, menu and MasterBudgetingGroup (addGroupAnggaran). In menu, I have menuItem. But when I click …

Member Avatar for masijade
0
131
Member Avatar for Kusno

Dear all, Do you know what properties should I set to hide Min & Max button in JFrame. I use Netbeans editor to create login form. Thanks, Kusno.

Member Avatar for Kusno
0
42
Member Avatar for vedmack

Hi i got a jsp page which uses an external .js file and also some internal javascript too... the problem is that none of the functions that inside the external .js file are recognized inside the jsp. But... if i copy the source code of the jsp into an html …

0
74
Member Avatar for Spartan552

Hi I want to be able to find out the int (or float) value of a variable whoose name is in another string variable [QUOTE]int x = 10; String var = "x"; System.out.println(Integer.valueOf(var).intValue());[/QUOTE] I want 10 to be printed but all I get is : [QUOTE]Exception in thread "main" java.lang.NumberFormatException: …

Member Avatar for masijade
0
133
Member Avatar for reygue

Hi everybody I am about to complete a Master degree in Mobile Network and I only have one class left. The Java class. I used to be a networking guy and now I am asked to find an abstract that should be validated by my tutor and solve the problem. …

0
60
Member Avatar for annajee

The question means this: One bank is providing mobile services via GSM modem only for online banking registered customers.Here the customer can register for mobile services provided by Bank through his online bankig account.When he registered for these services successfully (i.e. he successfully enterd all the fields of the reg …

Member Avatar for jwenting
0
90
Member Avatar for CaffeineCoder

I currently have a program using keyboard input from the user, but am trying to replace keyboard input with onscreen buttons. Does anyone have any information on the best way to do this? I've pasted the code file involved with this (there are other files in the program). I'm not …

Member Avatar for CaffeineCoder
0
162
Member Avatar for it2051229

I am trying to make a simple program that makes use of JTable.. actually I am using netbeans IDE to make the interfaces.. although i have this contactsListTable(jtable) and by default it doesn't have any data. The data is only loaded when the program is executed, how do I add …

Member Avatar for Ezzaral
-1
113
Member Avatar for theausum
Member Avatar for vinnodraina

Hi, I have a string and I want to get different combinations out of it. Suppose I have a string "abcdef" I have to get different combinations of it like abc, abd ade etc. thanks for help

Member Avatar for Ezzaral
0
58
Member Avatar for toomuchfreetime

Hey I'm building a application and using JTree to navigate between the functions. This is working but can't figure out how to set up the JTree to have different icons for each node. I can have one default icon that gets rendered to each node or set up an icon …

Member Avatar for Ezzaral
0
1K
Member Avatar for it2051229

I created two version of my program using a buffered reader.. my first version I made using notepad and the second version using Netbeans IDE... my code "new BufferedReader(new FileReader("data/list.txt")" works on my notepad version though FileException error on my Netbeans IDE although it works if i use absolute path …

Member Avatar for masijade
0
106
Member Avatar for enuff4life

I'm suppose return a change to user. Initially, the machine has Bills - 0 quarters - 5 dimes - 5 nickels - 5 user puts a money to machine(each coins are sum up to only maxium $1 i.e, user can only put 10 dimes maximum, or 20 nickels) but only …

Member Avatar for enuff4life
0
158
Member Avatar for Tyster

Hi there everyone, Is it possible to use more than one Layout Manager in a single GUI interface? I have classes (with event handlers) for various buttons, jtext menus, etc... but so far I've only built simple programs that use a single layout manager. When I call the setLayout() method …

Member Avatar for Tyster
0
234
Member Avatar for USUAggie

Hello all, I am having some trouble I hope you can help me out with. I am trying to input a list of text, which has the name of a sub, the hull number, and the homeport of the sub, like this: [B]USS West Virginia [SSBN-736] Kings Bay, Georgia[/B] a …

Member Avatar for ~s.o.s~
0
126
Member Avatar for thureinnyo

Hi everyone, I'm trying out on JTAPI. My objective is to make a call from my Java Application to My hand phone via Modem which is connected to Land Line. And I am getting quite confused reading the API and any hint to get started? Cheers! Thurein

1
57
Member Avatar for wonder_laptop

Hello guys... i came across this statement on the internet "java uses Preemtive scheduling?!!!" and i have NO idea what it means. i found 2 definitions online: [U]A preemptive[/U] operating system allows external interrupts ( such as timers, communication devices, etc.) to cause the task that is running to be …

Member Avatar for wonder_laptop
0
136
Member Avatar for theausum

The End.