Home Answers Questions Question and Answers


Latest Programming Questions askedAsk your question?

How to Store Float Value into Access Database  April 12, 2010 at 10:34 AM
Hello sir,I want to Store Student Marks Percentage into Access Database in Float Value how i can Store it. ... View Questions/Answers

SWING  April 12, 2010 at 7:11 AM
how can i insert image in Jpanel by extending class with JFrame in swing? ... View Questions/Answers

Java Compilation error  April 11, 2010 at 10:25 PM
ava.lang.NullPointerException at beanUtils.SaleHeaderUtility.getFullRemainPatientList(SaleHeaderUtility.java:754) at forms.ProcessDialog.updatePatientBalances(ProcessDialog.java:119) at forms.ProcessDialog.<init>(ProcessDialog.java:56) at mainUI.AssistaPharmStartup$1.ru... View Questions/Answers


get element through attribute  April 11, 2010 at 9:48 PM
hi,i need a function that gets(nodename and the attributevalue)and returns the nodemy file look like this:<Medicines>- <medicine name="lili"> <recipe>yes</recipe> </medicine> </Medicines>is there functi... View Questions/Answers

Jsp login with Cookie  April 11, 2010 at 8:33 PM
9) Create an HTML page containing the following featuresa. Create a login JSP page with username , password and submit button. b. On submit, display message ?Thank you for logging in ? Also create cookies to store username and password.c. Open login JSP page on a new browser. If t... View Questions/Answers

SQL query  April 11, 2010 at 2:38 PM
hi sir/Madam i am using MS Access wherei have table likeFees_Struc:Amount (INT)Due_Date (Date)Fees_Pay:Paid(INT)Student_Bal:Panalty(INT)my problem is when the Due_date is equal to system date and Paid=0 then i h... View Questions/Answers

Java Program  April 11, 2010 at 1:34 PM
A Java Program to send message from one computer to another ... View Questions/Answers

Java XML modification  April 11, 2010 at 12:51 PM
hey I want to delete the nodes in Xml file & that should be updated in xml file.here is what i have tried.import java.io.BufferedWriter; import java.io.File; import java.io.FileWriter; import java.io.IOException; import java.util.List; ... View Questions/Answers

Designing of textfield arrays in Netbeans IDE  April 10, 2010 at 6:31 PM
Respected sir, Sir I want to create an array of Jtextfield in Jframe Form in Swing GUI in NetBeans IDE.... How can i do this.........????I have a code which will create the same in swings which i m giving below.. but how to implement the same in NetBeans IDE form designing... View Questions/Answers

How to Set Transperent Background Image to Jpanel  April 10, 2010 at 3:36 PM
Sir ,How to set Background Image to Jpanel. ... View Questions/Answers

image embadding  April 10, 2010 at 2:59 PM
sir how to put images in JFrame/JPanel ... View Questions/Answers

color changing  April 10, 2010 at 2:58 PM
sir how to change the color of the selected tab in java swing ... View Questions/Answers

date picker  April 10, 2010 at 2:56 PM
sir i need code for date picker in java swing because for Embedding in my project plz sir... ... View Questions/Answers

Thank U  April 10, 2010 at 2:56 PM
Thank U very Much Sir,Its Very Very Useful for Me.From SUSHANT ... View Questions/Answers

hi  April 10, 2010 at 1:51 PM
hi sir, i am entering the values to jtable at run time,i don't know how many rows i am fill in that jtable ,that may be 1 or 2 or 3 etc... i want to add that table row elements(based on the filled rows) to database when i am click on submit button .submit button is placed in b... View Questions/Answers

syntax error in SQL Insert Statement  April 10, 2010 at 12:40 PM
private class ButtonListener implements ActionListener{ public void actionPerformed(ActionEvent ae){ //tab1 if(ae.getSource()==bt1ok){ // String date=tf1dob.getText(); // if(isValidDate(date)) // { ... View Questions/Answers

syntax error in SQL Insert Statement  April 10, 2010 at 11:20 AM
Dear Sir ,I have write following code to save data into access databse,but code gives following errorcode:PreparedStatement stm1=con.prepareStatement("insert into newfresher(prn,date)values(?,?)");Error:java.sql.SQLException: [Microsoft][ODBC Microsoft A... View Questions/Answers

How to store JComboBox selected Item into Ms Access Database  April 10, 2010 at 10:54 AM
How to store JComboBox selected Item into Ms Access Database. ... View Questions/Answers

How to save JCombobox Selected Item in to Access Database  April 10, 2010 at 10:10 AM
How to save JCombobox Selected Item in to Access Database ... View Questions/Answers

java problem  April 10, 2010 at 10:04 AM
Hotel.javaThis file declares a class of object which maintains a collection of Room objects. It willcontain methods which enable the collection to show the appropriate behaviours as requiredby the menu. This file should be saved into the same working directory as Room.java.Th... View Questions/Answers

https call in AJAX  April 10, 2010 at 9:24 AM
Hi,I am trying to call a https URL in my AJAX script which is in my JSP. But it is not getting the reponse from the url i gave.. am using IE6.suggestions needed.. and more urgent ... View Questions/Answers

servlets  April 9, 2010 at 10:40 PM
why servlets can call server-independent? ... View Questions/Answers

servlets  April 9, 2010 at 10:29 PM
why servlets are component-based ... View Questions/Answers

java  April 9, 2010 at 10:24 PM
QuestionThe below code is for one button two action performed one is inserting into a table and updating in other table it is not working it is not updating the data even after using select statement it is giving error "Array Index Out ofBound Exception".please help meif... View Questions/Answers

java  April 9, 2010 at 10:19 PM
Question 2I have done a project in swing for an organization now they want to use it whenever they open the computer the main frame of the project should be opened directly how to do it Please help me ... View Questions/Answers

java  April 9, 2010 at 10:18 PM
sir many many thanks for ypur help q1)I am working on a swing I have a frame of Fees details and iam saving in fees table upto that it is okBut the thing is that I the student total fees is 5000 and he paid 1000 and the balance is 4000 now he has to pay this 4000 in instal... View Questions/Answers

filing  April 9, 2010 at 7:40 PM
i want to ask when we work file read in c++ then we use seekg to move pointer one location.how can i did handle in java? ... View Questions/Answers

Validate JTexField with date on Text Changed event  April 9, 2010 at 7:22 PM
Hello Sir I want to only Validate date in MM/DD/YYYY Format on TextChanged Event,date will automatically set through MM with two digits,then cursor will automatically set to next DD of Two digits and same as year of four digits within one JTextField and also have onTextChanged Validation ,plz Help m... View Questions/Answers

How I can Set Transparent Background Image to Panel  April 9, 2010 at 7:15 PM
Sir ,How I can Set Transperent Background Image to Jpanel.plz Help Me. ... View Questions/Answers

Non Editable Text File in java  April 9, 2010 at 7:12 PM
Hello Sir ,I want to Show NonEditable TextFile on JButton Click which Contains User Manual of Project ,How I can Do It.plz Help Me ... View Questions/Answers

problem with addactionlistener on JComboBox  April 9, 2010 at 3:22 PM
ViewElements.java:225: <identifier> expectedjccourse.addActionListener(new ActionListener()); ^1 errorsir there is identifer expected error occur ,how i can solve it ... View Questions/Answers

Link To Database with JComboBox  April 9, 2010 at 3:10 PM
sir As ur Source Code i have Load course names from Access Database in to JComboBox but now I want to do ,when i select Course name from Jcombobox i want to display appropriate records relate with taht course on combobox item changed event. eg when i select MCA the fees ,course type will automatical... View Questions/Answers

core java  April 9, 2010 at 2:58 PM
what is thread ? i can't understand it's need? ... View Questions/Answers

Open TextFile on JButton Click  April 9, 2010 at 2:25 PM
Hello Sir I Want to open TextFile on JButton Click.plz Help Me ... View Questions/Answers

please help  April 9, 2010 at 2:13 PM
i am making a program by this i can find out the result for between years for any class.i have three combo box for class_name, from_year, to_year. for class_name, Its value is 1 to 12. when i select class 11 or 12, an combox appear for subject having values Arts, comerce and science will... View Questions/Answers

java  April 9, 2010 at 1:44 PM
My code is attached below..I want to retrieve the image from database in the same panel in the original size...But it see in small size...CAn you help see the retrive images inside a border in right side of the same Frameimport java.a... View Questions/Answers

Reading a xml file  April 9, 2010 at 12:45 PM
Thanks for ur answer sir but problem is that i have to do a reading a xml file of a employee record and then i have to use a employee details to send mail to those employees how to do i sir please help me sir..Thanks in advance.. ... View Questions/Answers

Java  April 9, 2010 at 11:47 AM
Sir,My code is attached below..I want to retrieve the image from database in the same panel in the original size...But it see in small size...CAn you help see tha retrive images in right side of the panel with a borderThanks in advanc... View Questions/Answers

Reading a xml file  April 9, 2010 at 10:48 AM
how to read a xml file using jsp and then i have to retrive a data from that file use it in code? ... View Questions/Answers

java  April 9, 2010 at 10:32 AM
Sir,My code is attached below...It shows the selected file from Jfilechooser...But we can see only a small portion...Can you help to see the full picture.....in my programThanks in advanceimport java.io.*;impor... View Questions/Answers

exception in thread main java.lang.unsupportedclassversionerror unsupported major.minor version 50.0  April 9, 2010 at 9:48 AM
Below class is compling but runtime i am getting the this error :exception in thread main java.lang.unsupportedclassversionerror unsupported major.minor version 50.0class xxx { public static void main(String[] args) { System.out.println("Hello World!")... View Questions/Answers

Load Coursenames from MS Acess Database to JComboBox  April 9, 2010 at 8:40 AM
Hello sir,I want to Load/add Course names which stored in Ms Acess 2007 Database,plz help me ... View Questions/Answers

Java source  April 9, 2010 at 12:54 AM
Can any one help me in giving example coding to automate taking pictures using web camera, please this is urgent experts help me ... View Questions/Answers

core java  April 9, 2010 at 12:00 AM
program logic for finding entered number either positive or negative? ... View Questions/Answers

MS-ACCESS Query Problem  April 8, 2010 at 8:13 PM
hi siri have table which is initially have empty records DeletedAttributes:RollNameAddAgeCourseClassSexHostelso another table is StudentAttributes:RollNameAddAgeC... View Questions/Answers

Acees data from database using combo box  April 8, 2010 at 3:09 PM
please let me how i access the data from database when i select combo box combo2 having values Arts, Commerce, Science. this combo box will appear when first combo box class_name having value 11 or 12, otherwise combo box combo2 remain hide.Here is JSP's files:Here is JSP fil... View Questions/Answers

How to Add JComboBox on JPanel  April 8, 2010 at 3:07 PM
How to Add JComboBox on JPanelD:\java>javac ViewElements.javaViewElements.java:181: <identifier> expected jc.addItem("France"); ^ViewElements.java:182: <identifier> expected jc.addItem("Germany");<... View Questions/Answers

JComboBox on JRadioButton  April 8, 2010 at 3:02 PM
How to add JComboBox on Jpanel ,Give Me Sample Code. ... View Questions/Answers

java  April 8, 2010 at 2:51 PM
Hi sir/madamI am Remya M R, i have written code to store the image in mysql database but i have problem in retrieving the image from the mysql database and showing the same on the java panel.So please help me by giving the sample code to retrieve theimage and showing in the java panel.... View Questions/Answers

Java  April 8, 2010 at 12:33 PM
sir,I attached my code...To retrive the image from database through Frame...But it show the error like this.....Couldn't find file: img.jpgPlz help me...import java.awt.*;import java.awt.event.*;imp... View Questions/Answers

Log In Form Validations  April 8, 2010 at 11:07 AM
Good Morning Sir ,I have Created Log in Form with Databse Connectivity and i have took two JTextFields 1)USERNAME2)password if two Jtextfields are blanks i want to show msg blank Username and Password , How I can Do That ,plz Help Me Sir. ... View Questions/Answers

Error with JCombo Box  April 8, 2010 at 11:04 AM
when i set JComboBox on Tab then Display Error near addItem method,that is Identifer Expected,How I Can remove that Error. ... View Questions/Answers

How to Store Date  April 8, 2010 at 11:01 AM
How to Validate date in JTextField ,How I can Store it in Aceess Databse,and I want to set Last Date of Admission,if Last date of admission is equal to current date then i want display Today is Last date of Admission ,if Current Date is Over than Last Date then I want to Disable All Admission ... View Questions/Answers

Admission Validation  April 8, 2010 at 10:54 AM
Hello sir I have Designed Student Admission Form ,I want to Display Admission Status on Form that is Availbal Seats and Fillup Seats and when I FillUp 60 students in Access Databse I want to Show Status on Swing Application is that "ADMISSION FULL",How I can Show that plz Help Me Sir. ... View Questions/Answers

Java  April 8, 2010 at 10:14 AM
sir,I make a mysql database to insert images and their features ...I attached my code to retrive the images by the given feature in the JFrameBut it cannot see the pictures in the Frame....Plz help me...p... View Questions/Answers

java  April 7, 2010 at 7:39 PM
i just want to write program to add some n numbers it can be any 4digit or 5digir bt i nee get answer in 1 digit between 0to9 without using array using java. ... View Questions/Answers

JRadio Button  April 7, 2010 at 7:15 PM
I have added two RadioButtons in Swing Appliction ,I want to select only one JRadioButton ,How I can Select it?plz Help Me ... View Questions/Answers

Print in a long paper  April 7, 2010 at 4:24 PM
how to print text in long paper?? each print text, printer stops. not continue until the paper print out.Thanks ... View Questions/Answers

How I Choose a folder  April 7, 2010 at 3:52 PM
Thanks my friend for your answer,Perhaps i do not explain clearly my question. I know how I get files from a folder. My question How I select a folder. From this selected folder i get the files.I know how I get files but the problem How I choose a fold... View Questions/Answers

java  April 7, 2010 at 3:28 PM
Hai....Sir.........My java code is Pasted below....In this code I want to show the selected file in the panel....And Also I cannot insert values into database.........But there is ... View Questions/Answers

java  April 7, 2010 at 3:17 PM
Is there any available system for cbir (CONTENT BASED IMAGE RETRIVAL)in java ... View Questions/Answers

Importing in eclipse  April 7, 2010 at 2:53 PM
I'm using eclipse for designing struts application...I'm manually copying the tld files and creating struts-config.xml file for my project...Is there the best way to import the tld filesor to add the struts capabilities automatically in eclipse..?? ... View Questions/Answers

how i conditional access the data from database using combo box.  April 7, 2010 at 2:21 PM
i have combox box named class when i select its value 11 or 12, another combo box appears named Subject values Arts, Commerce, Science.how i conditional access the data from database when i select class 11 0r 12.Here is JSP file:-display.jsp:<html>... View Questions/Answers

File Upload in J2ee on solaris machine using sftp  April 7, 2010 at 1:01 PM
Hi,Currently we are using FTP to upload the file from our J2EE web application. This is working perfectly fine. we are using below command to do so.ftp://abc:xyz@;type=iNow we have to change the application in such a way ... View Questions/Answers

java  April 7, 2010 at 12:18 PM
how to a selected image set a background image in textarea ... View Questions/Answers

swings  April 7, 2010 at 12:00 PM
hi I am using netbeans ide , while i am trying to debug my project it is giving me an error like this Have no FileObject for C:\Program Files\Java\jdk1.6.0_14\jre\lib\sunrsasign.jarHave no FileObject for C:\Program Files\Java\jdk1.6.0_14\jre\classeswh... View Questions/Answers

Please develop code  April 7, 2010 at 11:58 AM
i want to develop a program that search a file in a directory and its subdirectories and rename that file with name of main directory ... View Questions/Answers

java collections  April 7, 2010 at 10:55 AM
i need a sample quiz program by using collections and its property reply soon as possible .... ... View Questions/Answers

Javascript code  April 7, 2010 at 10:42 AM
Hi, This is ragavendran.. I have a simple doubt in my project.. There is a page in which there is a table with each row ending with a hyperlink called "View Image".. Once i click that link, the particular row should be color changed.. In the second phase, if i click another li... View Questions/Answers

java  April 7, 2010 at 10:36 AM
java code for retrive images from mysql database through jFrame ... View Questions/Answers

JDBC  April 7, 2010 at 9:39 AM
What is mean JDBC ANY E BOOK ... View Questions/Answers

java beginners  April 7, 2010 at 8:08 AM
pl. let me know how to exterat the decimal numbers from a number i want a java program for it Example if input 12.453OUTPUT 12 .453 if input 25.7657 OUTPUT 25 .7657 ... View Questions/Answers

Java Aplications  April 6, 2010 at 6:06 PM
Someone please help me write this Java programsi) Imagine you need to open a standard combination dial lock but don't know the combination and don't have a pair of bolt cutters. Write a Java program that prints all possible combinations so you can print them on a piece of paper and check off e... View Questions/Answers

Java Dialogs  April 6, 2010 at 4:27 PM
a) I wish to design a frame whose layout mimics the Firefox print dialog . (please you can go to Mozilla Firefox, click File, then Print- to see the diagram)None of the components actually have to do anything. It should just show me how to lay out components.b) I wish to write an ... View Questions/Answers

jsp  April 6, 2010 at 4:09 PM
how can i write a java script inside a jsp.i have a form in jsp and i want to do some client side validations on it. ... View Questions/Answers

JDBC  April 6, 2010 at 3:06 PM
How to connect to mysql database from an applets or GUI components (on J2SE) using Eclipse ? ... View Questions/Answers

java log4j  April 6, 2010 at 1:40 PM
which is the best site to prepare log4j in java since i am new to it ... View Questions/Answers

Jav Applets  April 6, 2010 at 1:36 PM
I need to write a small payroll program, using applet, that provides a text field for the number of hours, a text field for the pay rate, and a non-editable text field for the output. It should also also provide labels to identify all three text fields and a button to calculate the result. ... View Questions/Answers

java code  April 6, 2010 at 1:33 PM
Imagine you need to open a standard combination dial lock but don't know the combination and don't have a pair of bolt cutters. I need to write a Java program that prints all possible combinations so you can print them on a piece of paper and check off each one as you try it. Assume the numbers on t... View Questions/Answers

java  April 6, 2010 at 12:14 PM
java code for retrive an image from mysyl database through jFrame ... View Questions/Answers

ascending or descending order in jsp using servlet  April 6, 2010 at 11:54 AM
My Problem is that how to sort any column in ascending or descending order,with following requirements1. A single click on the header of a certain column causes the table to re-sort based on this column.2. A repeated click on the same column changes the sort dire... View Questions/Answers

java  April 6, 2010 at 10:56 AM
i wanna know about jgapwhat is it?why and how to use it in genetic algorithms?plzzzzzzz help me out as u r the most accurate source i had ... View Questions/Answers

Jtable Question  April 6, 2010 at 10:32 AM
Hello Sir,I have Created Database in MS access 2007 ,I want show the table data in toSwing JTable, How I can Show it,plz Help Me Sir. ... View Questions/Answers

Java singleton program  April 6, 2010 at 8:35 AM
Hi All,Can you please explain me in brife with an example how the singleton program works, i did see some documents but was not able to unerstand except one object can be used.this was a java interview question in Perot systems. ... View Questions/Answers

Swimming Pool Calculator  April 5, 2010 at 10:43 PM
Okay, so I tried making the program with this coding:import java.awt.*;import javax.swing.*;import java.awt.event.*;import java.util.*;import java.io.*;import java.text.SimpleDateFormat;public class SwimmCalc extends JFrame implements Actio... View Questions/Answers

Index.java  April 5, 2010 at 10:14 PM
I need to write a Java GUI application called Index.java that inputs several lines of text and a search character and uses String method indexOf to determine the number of occurrences of the character in the text. ... View Questions/Answers

Swimming Pool Calculator  April 5, 2010 at 10:11 PM
I have to write a program to calculate the volume of a swimming pool. The assignment is as follows:This Swimming Pool Calculator is one that is very simple to use. As you can see, it is a user interface that will allow the user to enter the desired length, width, and average depth of a ... View Questions/Answers

java  April 5, 2010 at 8:24 PM
sir please helpme as i need this to complete my module . q1)How to add Month in a Current Date , i am using simple Date Format in swing . ex: if Current Date is 5/4/2010 then it should displayed as 5/5/2010 q2)I have two table namely F... View Questions/Answers

Login form using Jsp in hibernate  April 5, 2010 at 6:24 PM
Hai Friend,As I new To hibernate, I'm facing problem in My project(JSP with hibernate).. My login form is working but the problem is ,when i enter correct user name and password it is working but when i enter wrong user name and password that it is also accepting and entering into... View Questions/Answers

How to call jasper from jsp or servlet  April 5, 2010 at 5:54 PM
Hi Expert ,I created jasper report using ireport.how to call that jasper with jsp file or servlet file ?Thanks in advanceEswaramoorthy.s ... View Questions/Answers

How To Display MS Access Table into Swing JTable  April 5, 2010 at 1:10 PM
How to Display Records From MS Access Database To JTable.Plz Help Me ... View Questions/Answers

Ascending or descending order  April 5, 2010 at 12:00 PM
I have a table by name employee,attributes are emiid,fstname,lastname,address,emailid and soon..I have to create a 2 fields in a column empid,fstname,lastname1 for asc and another for desc order for each column.if i click on a asc in empid column the empid should be order in asc order an... View Questions/Answers

values of Combo boxes are not stored in database  April 5, 2010 at 11:28 AM
i have some combo box values.when i click the submit button after select combo box values, the values are not going in database.please review the code:<%if((school.equals("indus"))||(school.equals("dps"))||(school.equals("mdn")))... View Questions/Answers

exception in thread main java.lang.unsupportedclassversionerror unsupported major.minor version 50.0  April 5, 2010 at 11:12 AM
I am getting the below error when the class now.java -version java version "1.4.2_06" javac -version java version "1.6.0_10" ... View Questions/Answers

INSERT CAPTCHA  April 5, 2010 at 10:05 AM

validation of date,phone number,email  April 4, 2010 at 5:43 PM
Sir how to validate date,phone number and email in java swings ... View Questions/Answers

date picker componnt  April 4, 2010 at 5:41 PM
sir i need code for date picker in java swing for my project sir please send me sir ... View Questions/Answers

java  April 4, 2010 at 3:35 PM
Dear,Please I hope you help me. I want to select all files that ends with txt ( txt files) using Filechooser from a directory that I choose. Can you help me.With my best regards ... View Questions/Answers

error occured in oracle  April 4, 2010 at 12:13 PM
hi... this is the error i got in oracle 11g when i am trying to insert image ORA-00984:column not allowedd here for the insert statement like this insert into imgapp('1','xxx','G:\image folder\ultrasound image\02us12a.jpg") ... View Questions/Answers

oracle insert statement error  April 4, 2010 at 9:55 AM
hi.. please help me to insert a image into oracle 11g database and please say me how can i insert image from directory like G:\imagefolder\ultrasoundimage\02us02.jpeg please help me ... View Questions/Answers