35,618 Topics

Member Avatar for
Member Avatar for Muhasin

iam triying to develop a new java applet programm by help of database. i dont know how to connect and create a database. i am a beginner to java.help me

Member Avatar for Majestics
0
58
Member Avatar for lena1990

hi iam in my final year my Graduation Project in java language can you help me of how thesis

Member Avatar for Majestics
0
46
Member Avatar for maroom

Hello below is the progra... i cann access araylist in the main class function.... like "LoanBook" see that in the code.... plz recity meeee folks... thanking uuuu =--------------------------------------------------------------------------= [ICODE] import java.util.ArrayList; import java.util.Scanner; // To take customer detais by using Constructor and Customer deatils class Customer { int cusId; String …

Member Avatar for JamesCherrill
0
342
Member Avatar for maroom

I have got errors which where commented in below program.Plz compile these program and cpy paste the code ... iam little bit confused... dudee.... [CODE]import java.util.ArrayList; import java.util.Scanner; // To take customer detais by using Constructor and Customer deatils class Customer { int cusId; String fName; String lName; long phNo; …

Member Avatar for JamesCherrill
0
216
Member Avatar for janice91

[I]Dear experts, I am trying to code out my assignment but i made a problem with my [CODE]break;[/CODE] within my [CODE]if (operator.equals(zero))[/CODE]. i have received compilation error stating the following: [/I] [B]HelloWorld.java: break outside switch or loop[/B] [I]Appreciate if someone can point out my mistake. Thank you.[/I] [CODE] import java.util.*; …

Member Avatar for Muhasin
0
238
Member Avatar for SagarSe7en

Hello Everyone! A new thread i have started and this is how the problem goes... I want to display record of a user something like profile details based on the user who has logged in to member's page! So when the user has logged in and clicks on the view …

Member Avatar for SagarSe7en
0
6K
Member Avatar for abrarHuniedi

hi I want to work with GUI and do alot of screen but with java I think its dufficult , I want to use Eclipse but I need some tutoril to start

Member Avatar for mKorbel
0
50
Member Avatar for kalpana17
Member Avatar for NexG

Here is the code I have so far. I'm not sure how to proceed from here. My goal is to make a program that outputs the probability of n amount of coin tosses, where n is the user input. [CODE]import java.util.Scanner; public class toss{ public static void main(String[] args){ Scanner …

Member Avatar for NexG
0
2K
Member Avatar for isebas

Im an AP computer science studen (we started two weeks ago so I dont know much). For homework we had this problem: " Write a program that will let you enter your gender (M or F) and your height in inches and will then tell you wether you are tall,medium …

Member Avatar for isebas
0
234
Member Avatar for nickliutw

I'm programming a program that add feet and inch together(assume feet and inch are integer). I run into a compiler error. I know the problem is I'm missing the returning statement. But I don't know what to return. [CODE]public class Distance { private int feet; private int inch; public Distance() …

Member Avatar for hfx642
0
122
Member Avatar for peter_budo

Sometimes one line of tool tip is not enough. You may want to try and play around with JToolTip, but if you in hurry this "little hack" can be handy. With little of HTML plus CSS code you can work out various formats (font, colour, alignment, size etc.).

Member Avatar for peter_budo
2
507
Member Avatar for bowmaster

i have the folowing code in my jsp page: [CODE]String[] name = null; String[] manufacturer = null; String[] description = null; String[] category = null; String[] price = null; String result = null; String connectionURL = "jdbc:mysql://localhost:3306/syte"; Connection connection = null; Class.forName("com.mysql.jdbc.Driver").newInstance(); connection = DriverManager.getConnection(connectionURL,"root",""); Statement statement = null; statement …

Member Avatar for bowmaster
0
189
Member Avatar for alteran

I've been trying to modify the following code so that it only displays one scrollbar for 3 radio buttons but so far I just can get it to work right. After the modification the gui should have 3 radio buttons at the top, one scrollbar for all 3 buttons, and …

Member Avatar for alteran
0
192
Member Avatar for chixm8_49

Hello. I would like to ask some suggestions to the community. In Arrays, we can implement a 2D array like: [CODE]String[][] testString = new String[][] { {"1", "2", "6"}, {"4", "5", "3"} };[/CODE] How can I implement this in Vector? Or is that even possible? I was doing it in …

Member Avatar for stevanity
0
81
Member Avatar for BuhRock

So I have this assignment where I am acting as a set. A set that holds numbers. In other words an array I am guessing. So he gave us a generic interface. Then we have to use another class and finish those methods. I'm having trouble because I've never used …

Member Avatar for stevanity
0
169
Member Avatar for harsimran05

when i use border layout and centre alignment, my label content is appearing on left side but i need it on right side, suggest any change here is my code [CODE]import java.awt.*; import javax.swing.*; import java.awt.BorderLayout; class Welcum extends JFrame { Container c; JButton bFd,bAcct; JLabel lWelcome; public Welcome() { …

Member Avatar for harsimran05
0
95
Member Avatar for caswimmer2011

Hey, I've had this question for a while now and forgot to post a thread asking it. I'm really interested in databases and i've been wanting to create a program that recalls information from a database. I've done one that reads a text file but that just seemed...boring to me. …

Member Avatar for caswimmer2011
0
88
Member Avatar for vishalbhavsar

Hi, I am trying to generate javadoc from the file "C:\Program Files\Java\jdk1.6.0_26\src.zip" by using the command "javadoc". But I am not able to do it. How to use that command?

Member Avatar for JamesCherrill
0
107
Member Avatar for jyo1988

hi all, I am having 1 combo box and 3 text boxes in my jsp page. combo box is empid and and the other are name,desig and dept. when i select the empid, need to come all other values into text box fields from database. any ideas please share with …

Member Avatar for javaAddict
0
272
Member Avatar for bhavna_816
Member Avatar for xela

My case: I have several webapps running on my tomcat server like this: demo.myserver.com/application1 demo.myserver.com/application2 demo.myserver.com/application3 This is what I want: Application1.mydomain.com to point to demo.myserver.com/application1 Application2.mydomain.com to point to demo.myserver.com/application2 Application3.mydomain.com to point to demo.myserver.com/application3 This is what I have done: 1. I have set my DNS server to …

0
98
Member Avatar for ranu jain

please some one would explain me why we use Bufferedreader() instead of using InputStreamReader() only.

Member Avatar for JamesCherrill
0
178
Member Avatar for selma_aktra

Hello! I write a simple java program. The user will give a URL adres which have some flags. I will parse the URL by this flags. For example the user will give [url]www.exampledomain.com/abc/[/url][[FLAG1]]/abc_[[FLAG2]]gfc I need to parse load to string parsing the URL: String[1]=www.exampledomain.com/abc/ String[2]=/abc_ String[3]=gfc I need to ask …

Member Avatar for selma_aktra
0
179
Member Avatar for harsimran05

i have a a file Fd.java in which i am trying to call constructor of another class TRrelatn and both the classes are kept in same folder but it is giving error as well as exception that is :\Fd.java:368: cannot find symbol symbol : class TRrelatn location: class FrmAdd new …

Member Avatar for Zaad
0
183
Member Avatar for nagatron

If have a java program with 4 JTextField. In my JButton add, the event code goes like this: [CODE]add.addActionListener( new ActionListener() { //Handle JButton event if it is clicked public void actionPerformed(ActionEvent event) { try { String add = "insert into person (firstName,middleName,familyName,age) values ('"+inputs[0].getText()+"','"+inputs[1].getText()+"','"+inputs[2].getText()+"',"+inputs[3].getText()+")"; st.execute(add); //Execute the add sql …

Member Avatar for nagatron
0
108
Member Avatar for harsimran05

i am trying to create a project file from existing main files , i create my project file(FixedDeposit) where other files are kept i want to add, and i use the option add existing file and add all the files i want to add. And i make the main of …

Member Avatar for harsimran05
0
81
Member Avatar for Prisms

Hey guys I'm new to java and was wondering if I could have a little assistance. I need to have a user input their number of classes, hours for each class and the grade they received after the information is given i need to calculate their GPA. I have gotten …

Member Avatar for Prisms
0
3K
Member Avatar for katyanni_27

The following code is a part of my project and the output of this code is that i get all the title of the posts in the database and a delete hyperlink in front of all enteries now when i click delete for a respective title it should be deleted …

Member Avatar for kvprajapati
0
598
Member Avatar for Muralidharan.E

I am new for struts framework. Now i am in need of learning struts2 with ajax(dojo) which i need to implement in forthcoming project work. So anybody can you please provide me or direct me by giving correct website link where i can learn struts2 with ajax(using dojo library). I …

0
61

The End.