- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 3
- Posts with Upvotes
- 3
- Upvoting Members
- 3
- Downvotes Received
- 7
- Posts with Downvotes
- 6
- Downvoting Members
- 5
Re:
Please any one can guide me how to write a [B] mysql database search[/B][I] in java....[/I] I want to search mysql database for some data in keywords. please help... thnakx | |
Dear Friends, I have a frame which is a JSplitPane which is split horizontally into two. On the upper half I want a JFrame to appear and on the lower half I want a JTable to appear. I tired but couldn't get the answer correctly. Will anyone be able to … | |
Re:
i have 3 months to learn my course Data Base Management System, where i must make a project. I have chosen to make a software to dentist clients. Please help me with any ideas, my entity , my relationships, is it easy to make or hard??? i am null in … | |
Re:
It just won't. No matter what I try, it won't even output what I tell it to, muchless as me for input. Here's the code: [CODE]package javatask1; import static java.lang.System.out; import java.util.Scanner; public class Main { public static void main(String[] args) { public static int moneyEarned = 0; Scanner myScanner … | |
Re:
I divided 13/24 in java but the result value is printed as 0.0; the variables like; int asd = 13; int dfg = 24; double result = (double)(asd / dfg); print(result); // 0.00 How can I get the exact value? | |
Re:
I'm fairly new to java, but I'm sure I've done this before and now it's not working right. What am I forgetting here? LeftPanel class [CODE]Inventory inventory; JTextField txtMoney = new JFormattedTextField([COLOR="Red"]inventory.getInvWallet()[/COLOR]);[/CODE] Inventory class [CODE] public class Inventory { public int invId = 0; public int invPrice = 0; public … | |
Re:
I am just curious if anyone knows how to BEGIN to start the coding for telling the program to have a GUI with typical fields, labels, buttons, panels, etc in a GUI, and then when a user presses a button, it goes to a complete different GUI with brand new … | |
Re:
part of bigger code but i cant understand why its not working in the correct range [code] Scanner input3 = new Scanner (System.in); System.out.println("Enter House Number;"); houseNumber = input3.nextInt(); do { System.out.println("You must enter a house number between 1 and 1000"); System.out.println("Enter House Number;"); houseNumber = input3.nextInt(); }while ((houseNumber <1) … | |
Re:
I am writing a program that calculates Fibonacci numbers... But I keep getting an error on my code when I try to compile it...: Fibonacci.java:18: illegal start of expression public int calcFib (int n) { ^ 1 error I don't know what I am doing wrong? Someone help? Here's my … | |
Re:
Yeah I know the usual Palindrome problem, but anyway here it is. Given a number greater than zero and up to 200. Find Palindrome of it by adding its reverse to it and repeating until a Palindrome is reached. If taken more than 10 iterations stop. So here is my … | |
Re:
My program requires that the user input values for an array do not exceed a declared final int variable. To control this I wrote this code to catch and throw exceptions in order to prevent computer from crashing the program. There are two conditions to be handled. (1) Exceeding array … | |
Re:
How do I go about centering my entire web page in Dreamweaver CS3? I could really use some assistance. Thanks for any input! - J. | |
Re:
Please could someone find out why the website i have made for a client is completely screwed up in Internet Explorer but pretty much perfect in Mozilla Firefox. Problems in IE: 1. Cells in tables are centered 2. Footer is not in line and looks bad 3. On the contact … | |
Re:
So, I am working on a project that uses inheritance. I have a class Creature, which extends Thing. Also, I have classes Tiger and Ant that extend creature. I also have a TestCreature class. All of these are in the same directory, and they all compile. However, when I run … | |
Re:
Hello, i made a basic java desktop application. After building the interface in the form, i compiled it and it worked perfectly. But after i added an event to a button (on click) my app won't close. I use the X button from the title bar, or ctrl+q from the … | |
Re:
My code is : /* Database.java*/ [code] import java.sql.*; import java.awt.*; import javax.swing.*; public class Database{ private static Connection con = null; public static Statement statement = null; public static void makeConnection() { JOptionPane.showMessageDialog(null, "database"); String driver = "sun.jdbc.odbc.JdbcOdbcDriver"; String url = "jdbc:odbc:lib"; String username = ""; String password = … | |
Re:
i need to convert this java code to java applet code here in my java code: import java.io.*; import java.util.*; public class fyp { static int t_value=2; static int no_of_parameter = 0; String binary_setting; static int data[]; static ArrayList<String> constraint = new ArrayList<String>(); static ArrayList<String> seeding = new ArrayList<String>(); static … | |
Re:
how to deal with awt and swing component in java .error is produced when i compare the swing component so what i do for solving it; | |
Re:
What are rules to observer when writting More than one class in single Java file. Let say three classes on the same file Thansk | |
Re:
I am trying to compile this java file and it is giving me an error say : java.lang.nosuchmethodeorror.main what could be the problem? [code=c] import javax.swing.*; import java.awt.*; import java.awt.event.*; public class JChangeFont extends JApplet implements ActionListener { JLabel banner = new JLabel("Your Name"); int fontSize = 18; Font theFont … | |
Re:
I`m trying to write a sample program in java, but the book doesn`t explain how I should write my html code to execute it, I don`t even know what I should use to write a HTML code, I looked online, but didn`t find much. this is the java code: [CODE]import … | |
Re:
I am trying to compile my java file here but I am getting 8 erros with the same sybmol : illegal start of an expression here is my coding: import javax.swing.*; import java.awt.*; import java.awt.event.*; public class JChangeFont extends JApplet implements ActionListener { JLabel banner = new JLabel("Your Name"); int … | |
Re:
hi I have a problem regarding calling print() method through main().It asks to pass arguments but i already done so using constructors.Any help in missing statement. [code] public class ElectricityBill { public static void main(String args[]){ current c1=new current(500,"January"); current c2=new current(1600,"February"); c1.print(double total,String month);/[COLOR="Green"]/this is the place i wanna … | |
Re:
I have a problem with the dispose method. . .I got 3 java files with a class name: MainProgram.java MainPanel.java PageOne.java The MainProgram java extends JFrame. The MainPanel.java extends JPanel. The PageOne.java extends JFrame. The MainPanel.java is where all the actions and etc. are being set. The MainProgram.java calls the … | |
Re:
I am using java.io package in my j2me programe in order to use PrintWriter but package does not show PrintWriter option nor it shows BufferedReader option , why this happen ??i do not know.if any one knows the solution plz tell me.is it require any specific library???? plz help me … | |
Re:
I made a queiry. but every data show in this queiry double. I mean every data show two time in this queiry. why this problem occured. any body help me please. | |
Re:
i am an IT STUDENT MY INSTRUCTUR HAS GIVEN ME ATASK TO BUILD WEB BROWSER IN JAVA AFTER GUI WHAT I HAD TO DO PLEASE HELP ME!!! NOT GIVE ME THE CODE JUST TELL ME EASY STEPS COMPLETE IT THANKS!!! | |
Re:
Hello, I have a problem with my code and can't see what the difference can be. I am trying to change my JLabel text via a timer using .setText I have 2 small apps to demonstrate my problem. 1 - I have a JLabel within a JPanel within a JFrame, … | |
Re:
hi,i have a unique problem.actually i wish to put a polarchart developed using JFreechart on the frame that already has components placed on it.What i want to do is to make the particular component overlap the polarchart. How can i do so? i thought of creating the polar chart using … |