35,618 Topics

Member Avatar for
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
62
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
105
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
95
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
207
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
132
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
55
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
93
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
439
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
95
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
93
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
45
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
113
Member Avatar for gsd

Hii frnds, I want to know how to insert data into a table through JSP when u have the table name as a variable...Pls help me out. [code] Statement stmt5=con.createStatement(); String qry5="insert into t1(id) values('"+dat0+"')"; int u5=stmt5.executeUpdate(qry5);[/code] I know this stuff. Wat I want to know is how do we …

Member Avatar for peter_budo
0
134
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
229
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
120
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
88
Member Avatar for nonhlah
Member Avatar for Thirusha
0
50
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
290
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
894
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
233
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
45
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
65
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
89
Member Avatar for jay1992
Member Avatar for masijade
0
232
Member Avatar for xilamei
0
117
Member Avatar for amitabhpandey

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

Member Avatar for masijade
0
109

The End.