383 Posted Topics

Member Avatar for fonzi

You have written a wrong function [code] public String toString(){//to string summerizing all the inputs on output. return ("The date you have enterd is : " + this.month +", " + this.day+", " + this.year); } [/code] 1) as this.month function prints the integer value 2) you must use setMonth(month) …

Member Avatar for 115harman
0
150
Member Avatar for Muhasin

On top of main java page there is an faq's regarding to java... You will find all kind of stuff necessary to learn java.... And google JDBC.... that's all u need for starter.

Member Avatar for Majestics
0
59
Member Avatar for lena1990

Thesis isnt a java topic ... Thesis consists of chapter's which is according to the information provided by institute. General it consist of Introduction , about old research , then your research etc....

Member Avatar for Majestics
0
47
Member Avatar for harsimran05

all the fields which are created are enabled by default use this code to disable items [code] object.setEnabled(false); [/code]

Member Avatar for harsimran05
0
155
Member Avatar for harsimran05

You can add MouseListener or MouseMotionListener for each control in the JFrame...

Member Avatar for Majestics
0
66
Member Avatar for emmstarr82

1) if its not going in while loop then it means the file u are specifying is empty 2) Remove Declaration out of Loop , i mean [code] String s; loop s = "something"; loop close [/code]

Member Avatar for emmstarr82
0
3K
Member Avatar for drpn

The class Chatclient must be present at provided location.... If its in a jar that jar must be included at source location.

Member Avatar for NormR1
0
60
Member Avatar for chiiqui

[code] try { //------------- Write your code here } catch(Exceptiontype object) { //--------- What will happen when error generate. } [/code] Generally u can use "Exception" to handle all kinds of exception but its not a proper way because you cant understand different type of exception then... Search down exception …

Member Avatar for chiiqui
0
3K
Member Avatar for chiiqui
Member Avatar for nagatron

there is no need to mention auto increment explicitly , it will increment automatically when ever you insert a new row further more the query must be like this [code] insert into Confirm(columnname) values(columnvalue) [/code] Hope this Help......

Member Avatar for nagatron
0
969
Member Avatar for lena1990

[url]http://www.chinesecomputing.com/programming/java.html[/url] Read this .... It can help u a bit.

Member Avatar for Majestics
-2
105
Member Avatar for Majestics

Its providing me error................................ [code] insert into products_information values(1,to_timestamp(current_timestamp,'DD-MON-YYYY HH24:MI:SS'),1200,10,1000,12,1100,10) / ERROR: date format picture end before converting entire input string.... [/code] This is making me nuts... Please Help a bit....

Member Avatar for debasisdas
0
152
Member Avatar for harsimran05
Member Avatar for montjoile

Just a little bit more explanation..... YES, IT IS POSSIBLE, BUT ITS NOT ORACLE FEATURE, ITS RDBMS FEATURE.All the dbms software which support relational database system, support this feature as well.

Member Avatar for Majestics
0
69
Member Avatar for nickliutw

Line 21 [code] ArrayList <StudentArrayList> record = new record <StudentArrayList>(); [/code] What is this record? .......................... :) It must be ArrayList

Member Avatar for nickliutw
0
152
Member Avatar for Onlineshade

1) I dont know about the least but it will easily run over JDK 1.6. 2) It has Javax.mail api which is optional in JAVASE but is included in JAVAEE 5

Member Avatar for JamesCherrill
0
192
Member Avatar for miltondollar
Member Avatar for chamnab

SIMPLE LOOP PROBLEM.................. Let ME just help you with one [code] for i 1 to 5 { for j i to 5 { print i } nextline } [/code]

Member Avatar for Onlineshade
-2
81
Member Avatar for ecclesiastes3:1

[url]http://www.daniweb.com/software-development/java/threads/40000[/url] Already Discussed here

Member Avatar for Majestics
0
73
Member Avatar for Majestics

I am starting this thread to gather some useful information before i start my work I am working on a project which takes user information and store it in database.. Now each user has seperate department's. I simply want to attach the user information to pre-configured outlook with department email.... …

Member Avatar for Onlineshade
0
180
Member Avatar for Nathan_11

Its not a place where u post your homework directly.... Still i am giving u a hint [code] loop { take three variable i,j,sum i with certain value j with certain value sum = i + j rest will be easy if u think a bit. } [/code]

Member Avatar for Onlineshade
-2
105
Member Avatar for sim_pack
Member Avatar for peter_budo
0
108
Member Avatar for chiiqui

check at line 24 , 25 [code] for(int a = 1 ;a<11; a++){ System.out.print("\t "+briefcase[a].getFace()+" "); [/code] why are u leaving location 0 Also u cant use 11 th position , it should be less then 11, even u want to show something , dont code like this. [code] for(int …

Member Avatar for Majestics
0
242
Member Avatar for Bobonoinc

[code] frame.setVisible(true); Graphics g = canvase.getGraphics(); g.drawRect(0,0,50,50); [/code] Getgraphics take graphics when frame is visible, You just have to get graphics after setting it visible.... Simple Solution :)

Member Avatar for Bobonoinc
0
1K
Member Avatar for Majestics

i have two products , product one has 5 entries of date and product 2 has 4 entries. I want to select max date entries of both... [code] select max(entrydate) from products,products_information where products_information.pno = products.pno [/code] It return a single max date of one product.... Please Help ..............

Member Avatar for Majestics
0
90
Member Avatar for binoman

Use Round Function if u want to round the data [url]http://download.oracle.com/javase/1.4.2/docs/api/java/lang/Math.html#round%28double%29[/url] You can also format double to 2 digits by DecimalFormat class in java... [url]http://download.oracle.com/javase/1.4.2/docs/api/java/text/DecimalFormat.html[/url]

Member Avatar for binoman
0
1K
Member Avatar for aldeene

Error can be because JTextfield is defined outside static class "like main class". and u are accessing it in static class. In short you cant place non static variable in static functions.

Member Avatar for JamesCherrill
0
128
Member Avatar for caswimmer2011

Robot class to create robotic function of mouse, keyboard and screen... For executing a command or function you can use Runtime class. [url]http://download.oracle.com/javase/1.4.2/docs/api/java/lang/Runtime.html[/url]

Member Avatar for harinath_2007
0
3K
Member Avatar for baby_c

1)Study Java layouts.......... [url]http://download.oracle.com/javase/tutorial/uiswing/layout/visual.html[/url] 2)Extra code for adding image to button [code] button.setIcon(new ImageIcon("")); // For adding image to button [/code] 3)U cant set buton location like u did above at line 22.

Member Avatar for baby_c
0
27K
Member Avatar for Majestics
Member Avatar for Majestics
0
147
Member Avatar for D3X

As transferaccount_id is string then use string function to compare and thats equals function [code] if(name.equals("String you want to match"); [/code]

Member Avatar for JamesCherrill
0
111
Member Avatar for Majestics

As the title stated i want to show tooltip when the user press up and down keys in combo box, Please any hint ..... Regarding to problem

Member Avatar for mKorbel
0
129
Member Avatar for thompsonSensibl
Member Avatar for NormR1
0
258
Member Avatar for EL69

[url]http://download.oracle.com/javase/1,5.0/docs/api/java/util/Scanner.html[/url] You can use Scanner Class for console inputs [url]http://www.java2s.com/Code/JavaAPI/javax.swing/JOptionPaneshowInputDialogObjectmessage.htm[/url] You can use JOPTIONPANE INPUT DIALOG FOR GUI... Also u can use text fields, area many more things but for starter its easy.

Member Avatar for Majestics
-1
181
Member Avatar for Majestics

How to set white back ground for disabled combo box??? I already tried setBackground.... But it didnt work like textfields.

Member Avatar for mKorbel
0
1K
Member Avatar for Majestics

I have googled alot exampled to create auto complete jcombo box, found many libraries also codes but they are pretty much complex, has any one idea to create this as easy as possible????

Member Avatar for Majestics
0
1K
Member Avatar for syeda amna
Member Avatar for bangor_boy

Reason this error is coming is u have button with action listener too You simply have to use if code to enclose line 301 statement , [code] if(source is equal to combo box then) [/code] Right now even a button is pressed that code is executed which is creating a …

Member Avatar for NormR1
0
855
Member Avatar for SurrounD

[code] puzzle[i][j] [/code] For accessing specific index u have to specify its index location... in loop it will print puzzle[0][0] then puzzle[0][1] and so on....

Member Avatar for SurrounD
1
144
Member Avatar for Majestics

I want to create a tool tip which has fix rectangular size and show custom font's... Any tips or link or any material to start with?

Member Avatar for mKorbel
0
158
Member Avatar for Majestics

I m using windows vista, and i have set l&F of my app "classic look and feel", which is fixed, as windows seven doesnt have classic theme , will java "classic look and feel" work on windows 7? If not then how can we make it work? :)

Member Avatar for Ezzaral
0
144
Member Avatar for mharklance02

Its a simple program but you have to try first we dont create assignments. Algorithem will be like this [code] define array of int for age define array of string for gender loop 45 times to get all data loop 45 times with if condition to check age between 8 …

Member Avatar for Ezzaral
0
129
Member Avatar for sirin_adam
Member Avatar for marsangel

Create Autorun.inf file , it will execute when ur drive got accessed. But for java you must have jdk kit.

Member Avatar for marsangel
0
104
Member Avatar for naffan

//--------- When Course Matches break from for loop else it will make matched again false. [code] if (courseObjects[i].equals(tempCourse)) { matched = true; //Matched Course Code break; } [/code]

Member Avatar for JamesCherrill
0
216
Member Avatar for Majestics

Is there any method in java to know size of decimal?? I mean 14 has 2 digits , 100 has 3 etc....... I m going to implement auto generated number like A0001 , now i want to change it on each new entry , so Does any one has any …

Member Avatar for Majestics
0
119
Member Avatar for aman rathi

[code] CASE 3: CASE 5: fucntion(); [/code] This is the method for multiple choice in switch.

Member Avatar for aman rathi
0
101
Member Avatar for Majestics
Member Avatar for Majestics
0
160
Member Avatar for abhinavM

A string buffer is like a String, but can be modified. At any point in time it contains some particular sequence of characters, but the length and content of the sequence can be changed through certain method calls. [url]http://download.oracle.com/javase/1.5.0/docs/api/java/lang/StringBuffer.html[/url]

Member Avatar for Majestics
0
12K
Member Avatar for lena1990

[code] Add them in a panel public mypanel extends JPanel { Set Layout... add combobox add list setBorder } [/code] Simple and easy Algorithem.

Member Avatar for lena1990
0
84

The End.