32,199 Topics

Member Avatar for
Member Avatar for bibiki

Hey there, I built the following app; A frame that with three sections inside it. Each section is actually a panel. The first panel is a form I use for saving soccer matches on my database; The second holds only one button that reads textfields from the form above and …

Member Avatar for bibiki
0
549
Member Avatar for getmet

i get no GUI when i run! import java.awt.*; import java.awt.event.*; import javax.swing.*; public class Calculator { private JTextField resultTF; private JButton calculateB, numbersB[] = new JButton[11]; public void driver() { //Create Window JFrame calc = new JFrame("Calculator version 1.0"); calc.setSize(500, 500); calc.setDefaultCloseOperation(calc.EXIT_ON_CLOSE); //Get the content pane (object of type …

Member Avatar for JamesCherrill
0
205
Member Avatar for Ravi tiwari

I want to know that wheather php is good or java for web apllication development?

Member Avatar for Tofayel
0
181
Member Avatar for mattnguyen45

The Class has no error, but the test program has a constructor error on line 21. [CODE] /** * DataSet Class * * @version 10/3/11 */ public class DataSet { private int Sum; private double Average; private int Largest; private int Smallest; public DataSet(int Sum,int Largest,int Smallest, double Average) { …

Member Avatar for JamesCherrill
0
212
Member Avatar for spencer.kindt

I have to make a bank GUI and I have a Jlist that populates with the customer objects (viewable by name) and I can view their individual info... but when I select the customer, I also want to be able to pull their account info and put it in a …

0
120
Member Avatar for new_2_java

Hi all, I am trying to compile a servlet, and am getting the following error. [code] C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\flatironswp1\WEB-INF\classes>javac export\ExportUtil.java export\ExportUtil.java:5: package javax.servlet.http does not exist import javax.servlet.http.*; ^ [/code] and here's my code: [code] package export; import java.io.*; import javax.servlet.http.*; import javax.servlet.*; public class ExportUtil extends HttpServlet …

Member Avatar for Taywin
0
4K
Member Avatar for geeerald1131

I am going to make a project. My professor told us to make any java program. I am planning to create a grading system. That outputs: Name: Student Number: Course: Class Standing: Seatworks Grade: 5% Homeworks Grade: 5% Quizes Grade: 15% Preliminary Exam: 35% Final Exam: 40% Total: 100% and …

Member Avatar for Ezzaral
0
99
Member Avatar for Santosh gupta

Hello everybody. I am new to java and to this forum so please excuse my mistakes. i wanted to knew what happens internally when we do typecasting of any reference variable to its super type/sub type.Does there is any change in its reference?

Member Avatar for tkud
0
70
Member Avatar for shootingrubber

Hello, I recently started learning java, and I am trying to make a program and I am running into some trouble. Basically what I want is for the user to input the number of people attending a movie, and then the user could input all of the ages of the …

Member Avatar for shootingrubber
0
186
Member Avatar for mastdesi

I really need help with my assignment for java. Please give me a little push start with this assignment. I am really bad with getting the concept of the arrays. Please give me the starting part for a couple of classes and the driver class. Once i get started i …

Member Avatar for mastdesi
0
148
Member Avatar for kweigand

I am creating methods that will extract info out of a text file. The program is for a real estate office manager who needs to run reports on property listings. The text file will contain property number, property type, price, and agent id as follows. [CODE]110001 commercial 500000.00 101 110223 …

Member Avatar for ~s.o.s~
0
668
Member Avatar for softswing

Hai Fiends, I need to add \r\n(if \n is present or not) at end of every line of a huge file. how can i do this in java, with high performance. please help me in this problem.

Member Avatar for softswing
0
120
Member Avatar for Ranek

Hey there everyone. I wondered if anyone could help me out with writing a simple program that checks through blocks of HTML code replacing specific sections of code within each block of 3 <div>'s. It is basically to make my life easier when I have to edit a website, otherwise …

Member Avatar for Ranek
0
178
Member Avatar for rotten69

Hi everyone, I am doing a Java course at uni at the moment and it kinda doesn't make you become a real programmer with the confidence that a programmer should have. I really want to program in Java and any language(not python though because it is not a user-friendly programming …

Member Avatar for rotten69
0
169
Member Avatar for kmbl84

Hi, The whole idea of this program is allow teachers to input marks results for 6 students. Once all marks have been entered, It must to display the marks and grade for each student. For some reason it can't display the grade properly. It just display "Fail" on each mark. …

Member Avatar for kmbl84
0
125
Member Avatar for geeerald1131

I dont know how to add a next button that will continue to a next page. The next page will have: Prelim Exam Grade Midterm Exam Grade Final Exam Grade Compute Button Exit Button Here is the code i have done. HELP ME PLEASE. THANKS. [CODE]import javax.swing.*; import javax.swing.event.*; import …

Member Avatar for JamesCherrill
0
323
Member Avatar for solomon_13000

The err variable contains a message. The format will be the same but the value -1 will change accordingly. [CODE]String err = "Result:-1|Error|sSide: Value Must Be Either b|s."[/CODE] Therefore I attempted to retrieve -1 value from err variable using the code below: [CODE]String[] temp2 = err.trim().split(":"); StringTokenizer st = new …

Member Avatar for JamesCherrill
0
90
Member Avatar for Stjerne

Hello guys, I need help with one task. I've to make a program which generates random numbers and stores them in an array. How many numbers to be extracted depends on the arrays length, which are parameters in the class constructor. The array needs to contain only one instence of …

Member Avatar for JeffGrigg
0
162
Member Avatar for Mi_99

he question is to get my shapes to change over time according to some criteria of my own design therefore i tried to make the shape change size as it hits certain coordinates but it would turn into line and keep moving as lines below is my move method to …

Member Avatar for Taywin
0
107
Member Avatar for mohamed moamen
1
81
Member Avatar for javaNooblet

Hi All, The GUI works as intended to. But I was wondering if some of you java gurus could look over my code and maybe give me some tips on how I could have written this code better. Thanks! [B]GUI CLASS: [/B] [CODE]import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.*; …

Member Avatar for hfx642
0
227
Member Avatar for fonzi

So i have been assigned a program where i create a interface a bag and the main or tester i have been trying to get this done for a while now and so far two other people have checked my work and have no idea why my list prints the …

Member Avatar for fonzi
0
178
Member Avatar for Sunyata

Hi, I'm trying to make a program which reads a text as an input and counts the letters as an output. For example, if my input is: "Hello, my name is Alan", I want my output to be: A = 3, B = 0, C = 0, D = 0, …

Member Avatar for Taywin
0
141
Member Avatar for fraandres

I'm getting a error code : java:23: error: cannot find symbol monthlyPayment=(balance*(interest/12))/(1-(Math.pow(1/(1+(interest/12)),(numberOfYears*12)))); ^ symbol: method pow(double,int) location: class Math 1 error it's pointing at Math.pow, but I dont understand what else to do thank you for any help. [code] import java.util.*; public class Loan { public static void main(String[] args) …

Member Avatar for Taywin
0
220
Member Avatar for torkolort

Hi, My problem is pretty simple, but I'm not sure about the solution. The idea is simply to send a list with an unknown number of java objects from a servlet to a jsp page, and display the objects as checkboxes on the page. The user should then check the …

0
65
Member Avatar for buba_kazouba

i am trying to make a program that edits contacts on a Nokia phone using J2ME but i don't know how to access the contacts help please

Member Avatar for peter_budo
0
169
Member Avatar for JamesCherrill

The sort methods for collections specifies that the parameter must be a collection of objects that implement Comparable for their own class or superclass, eg [CODE]public static <T extends Comparable<? super T>> void sort(List<T> list)[/CODE] Can anyone tell me how to define an ArrayList that will only accept such objects? …

Member Avatar for ~s.o.s~
0
185
Member Avatar for buba_kazouba

i am trying to make a program that edits contacts on a Nokia phone using J2ME but i don't know how to access the contacts help please

Member Avatar for buba_kazouba
0
177
Member Avatar for rezial

ok for some reason I keep getting this error. I know that it normally happens when u forget to put in a curly brace and the compiler thinks your trying to define a function within a function but I cant seem to fix the error sooo hopefully someone here would …

Member Avatar for JamesCherrill
0
194
Member Avatar for jigglypuff13

I am having problems running a JSP with a java class file on a Tomcat server. My files are located at: tomcat/webapps/ROOT/temp.jsp tomcat/webapps/ROOT/WEB-INF/classes/tempbeans/TempBean.class The contents of my JSP file: [CODE]<%@ page import="tempbeans.*" %> <% TempBean bean = new TempBean(); %>[/CODE] The contents of my class file. package tempbeans; [CODE] package …

Member Avatar for javaAddict
0
376

The End.