383 Posted Topics
Re: 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) … | |
Re: 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. | |
Re: 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.... | |
Re: all the fields which are created are enabled by default use this code to disable items [code] object.setEnabled(false); [/code] | |
Re: You can add MouseListener or MouseMotionListener for each control in the JFrame... | |
Re: 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] | |
Re: The class Chatclient must be present at provided location.... If its in a jar that jar must be included at source location. | |
Re: [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 … | |
Re: while(boolean)// its enough no need to check like if condition. | |
Re: 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...... | |
Re: [url]http://www.chinesecomputing.com/programming/java.html[/url] Read this .... It can help u a bit. | |
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.... | |
Re: I think you are missing a } close bracket at line 123. | |
Re: 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. | |
Re: Line 21 [code] ArrayList <StudentArrayList> record = new record <StudentArrayList>(); [/code] What is this record? .......................... :) It must be ArrayList | |
Re: 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 | |
Re: 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] | |
Re: [url]http://www.daniweb.com/software-development/java/threads/40000[/url] Already Discussed here | |
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.... … | |
Re: 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] | |
Re: [url]http://www.icepdf.org/[/url] Its a open source library to render PDF files in the J Panel. | |
Re: 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 … | |
Re: [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 :) | |
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 .............. | |
Re: 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] | |
Re: 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. | |
Re: 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] | |
Re: 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. | |
Can we handle of android app by ourself rather then android handling it itself? | |
Re: 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] | |
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 | |
Re: If there are more then one word, y dont u use InputdialogBox or textfield? | |
Re: [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. | |
How to set white back ground for disabled combo box??? I already tried setBackground.... But it didnt work like textfields. | |
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???? | |
Re: 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 … | |
Re: [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.... | |
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? | |
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? :) | |
Re: 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 … | |
Re: u must use os.equals(""); Its a method for string. | |
Re: Create Autorun.inf file , it will execute when ur drive got accessed. But for java you must have jdk kit. | |
Re: //--------- 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] | |
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 … | |
Re: [code] CASE 3: CASE 5: fucntion(); [/code] This is the method for multiple choice in switch. | |
I have forgot my sqlserver 2000 password, any method to recover it??????? | |
Re: 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] | |
Re: [code] Add them in a panel public mypanel extends JPanel { Set Layout... add combobox add list setBorder } [/code] Simple and easy Algorithem. |
The End.