35,618 Topics
![]() | |
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 … | |
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) | |
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){ … | |
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 … | |
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 … | |
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 … | |
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] … | |
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 … | |
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; … | |
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 | |
hii frndz...i want to make a all in one key generator wid d help of java....plz help....... | |
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] … | |
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 … | |
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 … | |
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 | |
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 … | |
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. | |
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 … | |
| |
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 … | |
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 … | |
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 … | |
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; … | |
my program cant be resert to ask the user input data again after while(ans.equalsIgnoreCase("y"); pls somebody can tell me! | |
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 … | |
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 … | |
how can i make os independent .exe file in java. I am using netbeans IDE for developing java project | |
can u plz suggest the coding for making key generator in Java?? | |
please guys... help me to connect a textfield on my mobile app to be connected in ms access... thanks alot :) | |
plz tell me that how we can call one frame window from another frame window |
The End.