32,199 Topics

Member Avatar for
Member Avatar for progresspeter

hi I need somebody to tell me how I can package my java code for distribution and installation

Member Avatar for masijade
0
60
Member Avatar for AbiSuren

The following program works well.But it cant identify any null values present in the csv file. For Example if csv file contains "Suren,Java,Dojo,Hibernate,,Spring,SOA" .I reads first four strings properly but for fifth string instead of reading the null value it reads the sixth string. Pl. help. import java.io.DataInputStream; import java.io.FileInputStream; …

Member Avatar for masijade
0
152
Member Avatar for moyphus

Hi all, I need to subtotal the amount for all employees using extended data table...If there is any possibilities,.,.

Member Avatar for javaAddict
0
52
Member Avatar for kahaj

I'm having some trouble getting the times to show up correctly. inputTime is running fine, but neither displayStandardTime nore displayMilitaryTime is displaying. I've been playing with this for a couple of hours and can't figure it out. I'm probably missing something small, but it's driving me nuts in a big …

Member Avatar for kahaj
0
144
Member Avatar for kahaj

I'm toying around with Java trying to familiarize myself with the basic GUI stuff. I can't get my program or my text field inside of it to center on the screen. For the Simple... file, I've tried using the [code]theTextArea.setLocation(15, 30);[/code] and [code]//theTextArea.setAlignmentX(CENTER_ALIGNMENT); //theTextArea.setAlignmentY(CENTER_ALIGNMENT);[/code] seperately. When I have either of …

Member Avatar for kahaj
0
156
Member Avatar for sawant_nitesh

What is the best approach of writing java code in following 2...... ? What happens at jvm level in each case ? 1. [ICODE] for(int i=0;i<10;i++) { MyClass m = new MyClass(); m.doSomething(); } [/ICODE] 2. [ICODE] MyClass m; for(int i=0;i<10;i++) { m = new MyClass(); m.doSomething(); } [/ICODE]

Member Avatar for javaAddict
0
114
Member Avatar for Elektrikz

Hello guys. After some time searching around the forums for a thread about an e-book for crash course from C++ to Java and no luck I decided to post a thread about it. So my question is,does anyone has or knows such book? Thanks in advance.

Member Avatar for mvmalderen
0
281
Member Avatar for DigitalGirl

Hello :) I've been trying to compare to array lists with the following code: [CODE] final VideoObj v1 = new VideoObj( "A", 2000, "B" ); final VideoObj v2 = new VideoObj( "B", 2000, "B" ); ArrayList<Record> list = new ArrayList<Record>(); list.add(new Record(v1,1,0,0)); list.add(new Record(v2,3,0,0)); ArrayList<Record> list3 = new ArrayList<Record>(); list3.add(new …

Member Avatar for DigitalGirl
0
100
Member Avatar for splurchner

I wrote this small program for a class im taking, and its supposed to take an int n and a radix (int between 2 and 16) r and give me the number converted to the new base. It only has to go from decimal to other radix's. I run my …

Member Avatar for splurchner
0
189
Member Avatar for roswell67

Hello, I don't even if memlocs/offsets are the correct terms for such thing. but I'll try to explain as much as I can. What am trying to figure is; is there a possible way that I could read information off other applications running? For example, I want to make a …

0
61
Member Avatar for jrosh

i created a table with a files with auto number in mysql. i added 15 raws of data i deleted some added data (say 6-15) when i add data again, auto number starts with 16. how can i make it 6? (i hope u get the point)

Member Avatar for roswell67
0
102
Member Avatar for masterjiraya

this is a while loop structure.... the output is this .....* ....*** ...***** ..******* .********* *********** supposed to be... this must be a perfect triangle... the dots represents blank spaces my code was this [ICODE=JAVA] public class stars{ public static void main(String args[]){ int stars=5, space=5; while(int i=1; i<=stars; i+2){ …

Member Avatar for padtes
0
93
Member Avatar for AbiSuren

Hi, The following code works well but the problem is it does noy reads the null values.For Example if csv file contains" Surendar,Java,maths,science,,history,english " Here the program reads the first four strings properly and for fifth string instead of reading null value it reads the next string. Please Correct the …

Member Avatar for roswell67
0
206
Member Avatar for kevlam

hello, I'm a beginner and I'm trying to create a mortgage GUI and I'm having some trouble trying to figure out why the variables in my ActionListener are not read. can someone assist? here is my code: import java.awt.Container; import java.awt.Font; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import …

Member Avatar for kevlam
0
129
Member Avatar for Paradox1

I am working on a coilgun, for a more in depth explanation of how it works PM me ;). Basically it uses electricity to launch a projectile I need to output pulses of varying lengths to precisely regulate the on and off times of some circuits. So basically I need …

0
54
Member Avatar for arpodojil

Here's my program: import java.awt.Rectangle; public class RectangleTester { public static void main(String[] args) { Rectangle r1 = new Rectangle(0, 0, 100, 50); Rectangle r2 = new Rectangle(0, 0, 100, 50); r2.grow(10,20); System.out.println(r1); System.out.println(r2); } } No error compiling but when I run this is the output 2009-09-14 16:00:29.174 java[414] …

Member Avatar for sneaker
0
89
Member Avatar for chu121su12

I have question on how to detect an action invoked by a component in some class by the other class. Say: [CODE] public class C1 extends JPanel { JButton button; C1() { button = new JButton(); add(button); C1Action h = new C1Action() button.addActionHandler(h); } public void doSomething() { // code …

Member Avatar for chu121su12
0
436
Member Avatar for jrosh

This gives a compilation error " missing return statement".. there is no sql error or such...where to put the return.??? private boolean checkpword(){ pasWd = pword.getText() ; try{ /*this works ok...>>>*/ResultSet pwrd = c.getData("Select Pword from users where userNm = '"+uname.getText()+"' "); while(pwrd.next()){ if(pasWd.equals(pwrd.getString("Pword"))){ return true; } else{ return false; …

Member Avatar for masijade
0
92
Member Avatar for rahmet

please can anyone help me doing this example. Add to the text editor's GUI a menu that lists these font sizes: 12, 14, and 16. When the user selects one of the sizes from the menu, the text displayed in the text area changes to the selected size. SNIP

Member Avatar for quuba
0
92
Member Avatar for jay1992

hii frndz...i want to make a all in one key generator wid d help of java....plz help.......

Member Avatar for .11
0
44
Member Avatar for .11

I have the log file blackjacksample.txt $10000 3 [2H, 4C, KC, 5D] $10 [QS, QD] $5 [AC, 3C, 4D] $25 [10H, 5C, 7H] [7C, 5C, 10H] $20 [JH, 3C, 8H] $15 [3H, 6D, JC] $5 [AH, KH] [9C, JS] $40 [5C, 7H, 3D, KS] $30 [9C, 10D] $50 [AD, 10C] …

Member Avatar for .11
0
111
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
228
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
119
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
100
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
85
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
287
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
833
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
107
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
231
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
43

The End.