Home Answers Questions Question and Answers


 
 

Latest Programming Questions askedAsk your question?

Error with KeyListeners  April 15, 2010 at 3:23 PM
Here tf1id is Jtextfield,when I implement following code Gives ErrorSource Code- tf1id.addKeyListener(new KeyAdapter()) {public void keyTyped(KeyEvent e) {String input=tf1id.getText();Pattern p = Pattern.compile("[A-Z,a-z,&%$#@!()*^]");<... View Questions/Answers

recursive  April 15, 2010 at 3:19 PM
Question Details:I need to write a recursive method that displays the lyrics of the song "Bingo".Verse 1: There was a farmer had a dog And Bingo was his name-O B-I-N-G-O !... View Questions/Answers

how to create a jar file for java classes?  April 15, 2010 at 3:02 PM
I have 2 classes x1 and x2. packages names are com.bank.xyz;how to create a jar file for classes. ... View Questions/Answers

Ads

JSP tree view  April 15, 2010 at 11:59 AM
Hi...In my project i need to display the data from database in the form of tree structure...i.e. like horizontal binary treeI've to dynamically get the values...Can you plssssss suggest me how to implement this...Thanks in advance.. ... View Questions/Answers

hi  April 15, 2010 at 10:06 AM
hi sir,when i am enter a one value in jtextfield the related values to that value (which is already existed in database) is came to my jtextfield automatically,how 2 resolve this sir,in my swings application.plz provide ur phone no sir ... View Questions/Answers

how to point my jsp form action to servlet?  April 14, 2010 at 8:27 PM
I am currently using netbean 6.8, tomcat 6.0, and mysql database.I was having problem when I was trying to point my jsp action to my servlet.(f.action="../fyp.servletLogin";) fyp is the folder that stores my servlet.Here is my function code in jsp, when user click on submit but... View Questions/Answers

Java Swings problem  April 14, 2010 at 4:44 PM
Sir, I am facing a problem in JSplitPane. I want the divider in the splitpane to be customized. I have a splitpane with Horizontal orientation and here, there lies the divider between left component and right component. Now, I want this divider to display only half that is, it is displaying starting... View Questions/Answers

java and xml problem. plz see this 1 first  April 14, 2010 at 4:44 PM
hi, i need to write a java program that generates an xml file as follows:<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ocs="http://ocs.ztesoft.com"> <soapenv:Header> <AuthHeader xmlns="http://ZTE.com/webs... View Questions/Answers

java and xml problem  April 14, 2010 at 4:37 PM
hi, i need to write a java program that generates an xml file as follows:<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ocs="http://ocs.ztesoft.com"> <soapenv:Header> <AuthHeader xmlns="http://... View Questions/Answers

PHP ARRAY()  April 14, 2010 at 2:09 PM
Hello,I have to compare two arrays.1)Array contain a Image from Directory like(test.png. tesnt2.jpg)2)Array contain a Images from a file.I have used a Preg Function to read all Images from File Into an Array()Like (/image/default/test.png)(/image/fre/play.jpg).Now... View Questions/Answers

please help in jsp  April 14, 2010 at 1:24 PM
i have two Jsp's pages.on main.jsp have some list of schools. from there i can go home page of any school. home.jsp represents a school home page. in home.jsp have some links like message, vision, addmission etc.when i click on any of these link then i get some information in a tab... View Questions/Answers

hi  April 14, 2010 at 11:07 AM
hi sir, i am using jtable to add the records to the database by using submit button ( i am using submit 4 add records 2 database sir) ,if i want to add a some more record into my jtable then previous record is overlapped 4 my new record,when i am try 2 enter the record into my jtable,how to re... View Questions/Answers

Java Compilation  April 14, 2010 at 7:03 AM
I want to write a program that takes a positive integer from the keyboard. I want my program to sum all the integers from 1 up to and including the number entered. For example, if the user enters 5, the loop will sum 1+2+3+4+5.I want the program to make the same calculation three times (... View Questions/Answers

Java Compilation  April 14, 2010 at 6:47 AM
I want to write a program that takes a positive integer from the keyboard. I want my program to sum all the integers from 1 up to and including the number entered. For example, if the user enters 5, the loop will sum 1+2+3+4+5.I want the program to make the same calculation three times (... View Questions/Answers

jsp  April 14, 2010 at 12:47 AM
How to create the table which show the project detail like id number of the project,project name like (constructon project,software project,webdesine),project type (finance,marketing,construction).when we click on single project like webdesigning then the table show status of the project like when ... View Questions/Answers

steganography  April 13, 2010 at 3:00 PM
I want to do a mini project in steganography. please give me the ideas. ... View Questions/Answers

Problem with Double type Value in Access Database  April 13, 2010 at 10:59 AM
Hello sir I have store Double Type Value in MS Access Databse,but when I search Record then it Gives Round Figure Value related with Percentage andI want to Store and Retrieve Mobile Number with MS access Database,plz Help Me Sir. ... View Questions/Answers

Print Form  April 13, 2010 at 10:51 AM
Hello Sir I have Created Admission Form when user fills data and submit that data to access database,then when i Click on PRINT Button I want to get Print of that forms Contents,How I can Do it with JAVA SWING,plz Help Me ... View Questions/Answers

web method  April 13, 2010 at 10:26 AM
I want to know details about enterprise application integration(eai)?I want the books available and how to code using eai? ... View Questions/Answers

java programing problem  April 13, 2010 at 4:29 AM
Create a class named Movie that can be used with your video rental business. The Movie class should track the Motion picture Association of America rating , ID Number, and movie title with appropriate accessor and mutator methods. ... View Questions/Answers

c++  April 13, 2010 at 12:02 AM
hi friends,i got this question and i need u help."Two subjects namely computer aided design(subject1)and computer programming(subject2)are to be assessed.a set of marks are available for a class of students.For each student,the following details are available:a candidate number -4 d... View Questions/Answers

jsp code for employee payroll  April 12, 2010 at 2:37 PM
jsp code for employee payroll. i need to generate the payslip with tax calucation and deductions,allwoance .how to calculate the employee tax using the jsp code ... View Questions/Answers

Read from a window  April 12, 2010 at 10:53 AM
HI,I need to open a website and read the content from the site using Java script.Please suggest. Thanks ... View Questions/Answers

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@10.1.55.101/data/XYZ_DEMO20100405165736.txt;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

DMCA.com