32,199 Topics
| |
Dear all, I'm sorry to ask you again. This code is my jTable that I copy from my Netbeans source code. tblGroupAnggaran.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { {null, null}, {null, null} }, new String [] { "Kode group", "Nama group" } ) { Class[] types = new Class [] { … | |
Good morning, I'm facing dificulties to understand what i'm doing wrong! I'm trying to send the contents of a file... [TEX]SPI01 184-25-03-T-01-R.F.T.1.47e85ab1spicsv, 4609, 2008.03.25, 09:51:45 AM 184-25-03-T-01-R.F.T.1.47e8966dspicsv, 0, 2008.03.25, 14:06:38 PM 184-25-03-T-01-R.F.T.10.47e863easpicsv, 48, 2008.03.25, 10:31:06 AM 184-25-03-T-01-R.F.T.10.47e897f4spicsv, 0, 2008.03.25, 14:13:08 PM[/TEX] into a database "spimon" with a table LogSPI01 with … | |
Hi everyone..i'm working on a piece of code.. can anyone tell me what's wrong with the code.. public int move() { Random generator = new Random(); int num = 1+generator.nextInt(9); if(thisBoard.getplayer(num) == Board.NO_ONE){ return num; } } Thanks. | |
Not exactly sure what I am doing wrong...it is probably something simple and just being an idiot today but I have these two errors in my program and not sure what I am doing wrong C:\Documents and Settings\Don & Diane Kruep\My Documents\Judges.java:54: averageScores(double[]) in Judges cannot be applied to (double) … | |
am making a small program where the user browses an image then the image get's copied into some directory then i want it to be resized if the size is bigger than the required max size. ok how? | |
can anyone help me to get port no of local system .i tried to write a client server prgm in java though the prgm compiled correctly i didnt get o/p as the connection could not be established ther was a connection exception error. expecting your help. | |
Hi all, I`m doing a project on an online bulletin board. I`m not able to configure tomcat in my windows machine. And i`ve been able to compile and run servlets in command line. Its the browser where i want to see the servlets run. Any help will be appreciated. I … | |
Dear all, How do I disable all columns cell and select row value to put in textbox using Netbeans ? I have searched using google but not found any significant answer. Thanks and regards, Kusno. | |
public void actionPerformed (ActionEvent e) { String hostServer, fromEmail, fromTo, contentSubject, contentMsg; if (e.getSource()== btnSend) { hostServer=txtHost.getText(); fromEmail=txtFrom.getText(); fromTo=txtTo.getText(); contentSubject=txtSub.getText(); contentMsg=msgArea.getText(); // Establish a TCP connection with the mail server. Socket soc = new Socket("" + hostServer, 25); // Create a BufferedReader to read a line at a time. InputStream … | |
Hi all, I use the swing timer to move a dialog from one position to another. Here is the code I have use. [CODE="java"] // Set the main window display location public void setWindowLocation() { int screenHeight = Toolkit.getDefaultToolkit().getScreenSize().height; int screenWidth = Toolkit.getDefaultToolkit().getScreenSize().width; int frameHeight = this.getHeight(); int frameWidth = … | |
I can't figure out why it is saying (Vehicle.java:174: cannot find symbol) but there is a symbol, what is going on? [code]import java.util.Scanner; public class Vehicle{ protected int hp; protected int mileage; protected int year; public String make; public String model; Vehicle(){ hp = 0; mileage = 0; year = … | |
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 … | |
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 { … | |
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? | |
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(); … | |
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 … | |
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 … | |
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. … | |
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... | |
I have to perform an insertion sort in a linked list. Having problems. any help? | |
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 … | |
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 … | |
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 … | |
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. | |
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: … | |
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. … | |
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 … | |
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 … | |
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 … | |
The End.