Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
~565 People Reached
Favorite Forums
Favorite Tags
Member Avatar for TofiLuk

Hi I have a problem with this code. I'm trying to save a values in the database.. When I click the save button the table is being updated and showing the new values I entered. But the problem is it is not actually saved in the database, when I re-run …

Member Avatar for TofiLuk
0
121
Member Avatar for TofiLuk

the frame is okay but the text2, textfield has occupy the whole frame. what's wrong with my code? image: [URL="http://img68.imageshack.us/my.php?image=73815503ku1.png"]http://img68.imageshack.us/my.php?image=73815503ku1.png[/URL] here's the code: [code=java] import javax.swing.*; import java.awt.*; import java.awt.event.*; public class JFrameTest extends JFrame implements ActionListener { JButton button; JLabel label1, label2, label3; JTextField text1, text2; Container con = …

Member Avatar for masijade
0
111
Member Avatar for TofiLuk

What's wrong with my code? Can somebody help? Thanks! [CODE]import java.io.*; public class Array { public static void main (String[]args) throws IOException { BufferedReader myinput=new BufferedReader(new InputStreamReader(System.in)); int Arr1[]=new int[5]; int Arr2[]=new int[5]; int SumArr1=0; int SumArr2=0; int x=0; int y=0; for (x=0;x<Arr1.length;x++) { System.out.print("Enter Array1: "); Arr1[x]=Integer.parseInt(myinput.readLine()); SumArr1=Arr1[x]+SumArr1; } …

Member Avatar for ~s.o.s~
0
141
Member Avatar for TofiLuk

I have a code that has a denomination like: Example change is 2,830.50 // Output ** Change ** 1000 - 1.0 <-- how can I make this just 1 but not 1.0 w/o using "int" (double is required). 500 - 1.0 <-- 200 - 1.0 <-- 100 - 1.0 <-- …

Member Avatar for darkagn
0
80
Member Avatar for TofiLuk

Can anyone fix this? What's wrong with my code? Accepts username and password as "admin" System.out.print("Enter Username: "); String user=myinput.readLine(); if (user=="admin") { System.out.print("Enter Password: "); String pass=myinput.readLine(); if (pass=="admin") { statement(s) } else if (pass!="admin") { System.out.println("Invalid Password."); } } else if (user!="admin") { System.out.println("Invalid Username."); }

Member Avatar for TofiLuk
0
69
Member Avatar for TofiLuk

I need a code that accepts only the username and password as 'admin' otherwise the system will exit. What will I use? no frame or dialog box.. just in command prompt. Thanks!

Member Avatar for Ezzaral
0
43