36,051 Topics

Member Avatar for
Member Avatar for Loony064

Hey all I have an assignment for university where we have to write a program to simulate an IDS. Basically how it works is the user enters a code and the program displays a relevant message. If a specific code is entered, an e-mail must be sent to the adminsitrator …

Member Avatar for Loony064
0
231
Member Avatar for alsoumhi

I want to understant pager-taglib idea , how to use it , where to install it in which directory. please provide me with tutorials that can explain it with clear examples because I read about it and got confused thank you in advance

Member Avatar for peter_budo
0
121
Member Avatar for Wez

hi all ! Long time no see :-) I have a small question regarding communication between applications. I have a project where I have to let 2 java applications communicate between eachother. These 2 java applications reside in one vm. Right now, because of the deadline, I use textfiles, al …

0
121
Member Avatar for kkcaddy

Hi everyone am new to java-ing i cant seem to create a class for my first application my "Hello World" when i type javac helloworld it returns that javac is not a in the path and i have created a path for java. Please help me.

Member Avatar for kkcaddy
0
101
Member Avatar for jrosh

I created a table in mysql db. it has a column with auto increment value. i checked inserting data through mysql console putting jst ' ' to the place of the auto increment value in the query. it worked ok. but when i do it through my java application (using …

Member Avatar for masijade
0
89
Member Avatar for nonhlah
Member Avatar for Thirusha
0
53
Member Avatar for treyd

Okay here is the just of my assignment: Write a test program that creates an Account object with an account ID of 1122, a balance of 20000, and an annual interest rate of 4.5%. Use the withdraw method to withdraw $2500, use the deposit method to deposit $3000, and print …

Member Avatar for masijade
0
291
Member Avatar for mrnutty

Does anyone know how to correctly add a 3rd party library to NetBeans? I have NetBeans 6.7.1 The library is from this site : [URL="http://wps.aw.com/aw_sanders_oopjava_1/36/9390/2403930.cw/index.html"]Link[/URL]. Its called wheels, and its for my class. It comes in a zip file. What I tried was this : 1) Set the zip file …

Member Avatar for masijade
0
896
Member Avatar for destined2bbless

You have been asked to develop an application that will read book information from a text file to determine which publishers you use. The application will print a report of all unique publishers used. Johnny Smith xxxxxxxxxx Harper Collins Freedie Jones xxxxxxxxxx Harper Collins Lilly Laine xxxxxxxx Penquin Bobby Crosby …

Member Avatar for ~s.o.s~
0
110
Member Avatar for imclumsy

Hi I am trying to sort a generic object. When the object is created, it is created with three generic parameters and I want the parameters to be sorted when it is created. Here is my code: [code] import java.util.*; public class SortedTrio<T> extends Trio { T firstST; T secondST; …

Member Avatar for ~s.o.s~
0
235
Member Avatar for LKH

my program cant be resert to ask the user input data again after while(ans.equalsIgnoreCase("y"); pls somebody can tell me!

Member Avatar for exception
0
47
Member Avatar for Nollyvenon

How do i recode a china phone to show customize features like startup images, animations and sounds. this is my midlet code for image [code]//MIDlet-Name: startupScreen //MIDlet-Version: 1.0 //MIDlet-Vendor: MyCompany //MIDlet-Jar-URL: StartupScreen.jar //MIDlet-1: startupScreen, startupScreen //MicroEdition-Configuration: CLDC-1.0 //MicroEdition-Profile: MIDP-1.0 //MIDlet-JAR-SIZE: 100 import javax.microedition.midlet.*; import javax.microedition.lcdui.*; public class startupScreen extends MIDlet …

0
66
Member Avatar for freelancelote

Hi, I'm trying to print a string on the center of a window using GridBagLayout. All I see printed is a part of the string I expect (the current month) instead of the whole string. I don't seem to be able to spot where the error is and I'd appreciate …

Member Avatar for freelancelote
0
209
Member Avatar for harshadap

how can i make os independent .exe file in java. I am using netbeans IDE for developing java project

Member Avatar for stephen84s
0
90
Member Avatar for jay1992
Member Avatar for masijade
0
233
Member Avatar for xilamei
0
118
Member Avatar for amitabhpandey

plz tell me that how we can call one frame window from another frame window

Member Avatar for masijade
0
110
Member Avatar for jrosh

When i run a java file through comand prompt it says.. "Unsupported class exception error"...Bad version number in .class file. (compilation is ok. this happens @ runtime) i checked the versions of jdk & jre . Both are same which is 1.6.0_01. When i compile and run the same code …

Member Avatar for peter_budo
0
108
Member Avatar for rajuchacha007

HI all, I would like to know about Network data mover used for Java APIs. Please do let me know where I can collect technical quality information about it? Thank you very much. Regards.

Member Avatar for masijade
0
506
Member Avatar for Little Bunny

Hello All. Can someone tell me how I can set the first day of the year in the Java Calender? For example, if the first day of the year was 16th September 2007, then that would be week 1. so the 24th september 2007 would lie in second week,so on …

Member Avatar for masijade
0
66
Member Avatar for T'Scoopz

Hello! So, I created my own Arraylist class called myArrayList. I need to read a file that contains strings (which are just short phrases) into myArrayList. I created a class called Phrase that are to be the objects that will be stored into the Arraylist. I also have a class …

Member Avatar for sneaker
0
85
Member Avatar for Abibina

I m creating the page which contains username n password.. I dont know how to store the username n password in a file n to display an error message if the username or password is wrong .. how to do this.. ll anyone explain me using a simple program..?

Member Avatar for javaAddict
0
114
Member Avatar for hery

Hello, all I want to question for all. How to i make script like monitoring real time market data using Java, ex: [url]http://www.rabotransact.com/wps/portal/rtwpub[/url]. Can you help me??? Thank's

0
67
Member Avatar for dewyShaikh

hi, m doing a project on java using matlab......but i dont know the connectivity between them........... can u plz tell me....... thx.

Member Avatar for masijade
0
180
Member Avatar for harshadap

I am developing sudoku. Random numbers are generating but i want to place rthem into particular fields. here is my code [code= java] package sudoku; import java.awt.Color; import java.awt.Dimension; import java.awt.Font; import java.awt.GridLayout; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import java.util.Random; import javax.swing.BorderFactory; import javax.swing.JComponent; import javax.swing.JPanel; import javax.swing.JTextArea; import javax.swing.JTextField; import …

0
47
Member Avatar for nicolek808

hi :) This program requires me to read user input from the commandline (a int and a string) and use recursion to print out the the first letter of the string x times based on the int user input: I have this so far, but it seems print out just …

Member Avatar for VernonDozier
0
144
Member Avatar for javanub123

i started learning java yesterday and its my first programming language to learn. ive covered most of the basics and such but im stuck at one thing i have a program written that asks for a password i want it to compare the user input to the actual password using …

Member Avatar for javanub123
0
98
Member Avatar for herms14

guys..I'm in my senior year and I need to make a senior project by next semester. I'm planning to make a mobile application that will send the data to a computer and store it in a database and finally output it in a webpage or something. the problem is I …

Member Avatar for hansal
0
175
Member Avatar for droeph

Hello, I am new to the forum and to Java have no programming experience. try to write a program that enters a year and month as integers and displays the number of days in the month. here is what I have written any help would be much appericated. import java.util.Scanner; …

Member Avatar for javaAddict
0
166
Member Avatar for alsoumhi

Hi all, I am having a problem in JSP, it is very simple. I have a java class and a JSP program, my JSP program will call the a method of java program in order to work as one complete application .however, I got an error says undetermined method. Based …

Member Avatar for ~s.o.s~
0
60
Member Avatar for ishlux

Hi all, Tomcat5.5 is not working, [url]http://localhost:8080....if[/url] i write this its giving resource not found 5.5.28......i have made all the set as mentioned in this link [url]http://www.coreservlets.com/Apache-Tomcat-Tutorial/tomcat-5.5.html#Start-Server[/url] but still i am not finding any difference.........pls help me out thanks ishlux

Member Avatar for ~s.o.s~
0
73
Member Avatar for karen.tao

When I enter a string that it not in the list, I get this error in my enum CrimeType class: IllegalArgumentException, no enum const class CrimeType.a(in java.lang.Enum [code] public void enterCrime() { Crimes crimes = new Crimes(); System.out.print("\t\tEnter crime: "); crimeName = In.nextLine(); if("murder".equals(crimeName) || "arson".equals(crimeName) || "assault".equals(crimeName)) { crimes.daysToStay(3); …

Member Avatar for masijade
0
275
Member Avatar for anu_anu

Hi All, I am using jdk1.6, tomcat 5.5 and eclipse 3.3. While starting tomcat from eclipse i am getting an error as "Could not find main class.Program will exit". Please suggest. Thanks, Anu

Member Avatar for Salem
0
85
Member Avatar for heels

Hi, I am facing problem with my coding but can't seems to find the problem with it. Can someone guide me? [code] //for loop for (line=1; line <=height; line++) { for(col=1; col <=line; col++) { if (line%2 !=0)// odd line { if (col%2 != 0)//odd line,odd col System.out.print(A); else //(col%2 …

Member Avatar for heels
0
221
Member Avatar for redsunit

hi, everybody i have a question. can jsp get data from other pages? thank.

Member Avatar for redsunit
0
42
Member Avatar for topest1

Hello, I am beginner in Java we are going to develop a chat application But I don't know how to implement the network connectivity..././../ :confused: I googled, and I came to know something like Socket Programming.... Actually I don't know how the chat application works I want to store the …

0
87
Member Avatar for shikharana

Hi. I'm having alot of trouble completing this part of my assignment. can u please help me with it the ques is : Implement the following buttons: Rect, Oval, Image, Colour, and Clear. You do not need to have the Text button or its associated textField. Your Rect, Oval, and …

0
33
Member Avatar for masana1844
Member Avatar for masijade
0
44
Member Avatar for fareast87

Hi everyone! I'm developing some kind of program of handling an images and someone suggesting to me to use PixelGrabber class. I try to use it but I don't know what its return value. Is it some kind of integer value on pixel number 1 or any idea? And where …

Member Avatar for fareast87
0
102
Member Avatar for feartrich

This supposed to return the user's BMI. But the output is always 0. Why is that? [code=java] import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.text.DecimalFormat; public class bmi extends JApplet implements ActionListener { JTextField inputLbs, inputInches, displayBmi; public void init() { JLabel labelLbs = new JLabel("Weight (lbs):", SwingConstants.RIGHT); inputLbs = …

Member Avatar for VernonDozier
0
93
Member Avatar for runee1000

Hi: I'm trying to solve a question as it states: "Create a program which determines if a given number a is a common divisor of two other numbers num1 and num2." I am 100% beginner to Java and just started a couple days ago, so most terms discussed feel quite …

Member Avatar for akulkarni
0
142
Member Avatar for project_java

Hi All, I teach java to 2nd year students who are doing a very basic module on GUI and applets, without any animation etc. I need to give the class an individual mini project. Please could people suggest possible project ideas for a 2nd year CS. The syllabus does not …

Member Avatar for llemes4011
0
87
Member Avatar for Krstevski

Hey people... I have one problem... Find how many total cubes are there in the range from A to B, inclusive. An integer Y is total cube if it can be expressed as: Y = X*X*X, where X is also integer. The first total cubes are: 1, 8, 27, 64 …

Member Avatar for Krstevski
0
101
Member Avatar for Bloubul

I am trying to write a code for the following: Write a Swing program that declares an empty array of grades with a maximum of 50. Implement a JOptionPane input box within a while loop to allow the user to enter the grades using a -1 as a sentinel value. …

Member Avatar for quuba
0
133
Member Avatar for roshnal

I know j2se a good deal. i also know MySQL, Jasper reporting, Log4j. I'm currently searching for a not-too-hard and not-too-easy software to make. I've currently made a address book and a library management system and i don't want to make games. So can someone PLEASE help me?

Member Avatar for Salem
0
149
Member Avatar for dasatti

The scenerio is that I have different type of drawing components on drawing area. In menu I have some combo boxes which apply different properties on these objects. and also add a new UndoableEdit to the UndoManager. Anybody worked with the swing's undo package will get the idea. This way …

Member Avatar for designpattern
0
154
Member Avatar for rp_prasanna

i have a Struts jsp which creates a textbox dynamically using javascript. function addRow_msgField() { var id =0; var table = document.getElementById("msgfield"); var id = table.rows.length-1; var newRow = document.all("msgfield").insertRow(); var oCell = newRow.insertCell(); oCell.innerHTML = "<input type='text' name=alertFieldName"+id+" class='textBoxStyle' size='12' maxlength='50'/>"; oCell.style.verticalAlign = "top"; id++; } My table design …

Member Avatar for mamatachaudhari
0
111
Member Avatar for charliesindex

I decided to develop a java applet to transfer files to a ftp server. I have no java experience but using stuff from the web and using NetBeans IDE for development, I came resonably close. Here is the code I used. /* * To change this template, choose Tools | …

0
50
Member Avatar for ganesh.guddu

Hi all, I have two Java Classes as follows : [CODE]public class A { public int a =5; }[/CODE] and -- [CODE]public class B { public static void main(String[] args) { System.out.println(new A().a); } } [/CODE] Now i want to generate a log file (when the execution of main() method …

Member Avatar for ganesh.guddu
0
81
Member Avatar for rajshree13

I want JSP code to expire the username and password in JSP. Please help in this regards It's Urgent

Member Avatar for peter_budo
-1
86

The End.