Home Answers Questions Question and Answers


Latest Programming Questions askedAsk your question?

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

html  April 4, 2010 at 12:45 AM
7) Create an HTML page containing the following featuresa. A combo box containing the list of 7 colors: Violet, Indigo, Blue, Green, Yellow, Orange, Redb. Depending upon the color selected from the above combo box, the message in the status bar of the window must be reflect the va... View Questions/Answers

html  April 4, 2010 at 12:43 AM
3) Create a HTML page to display a list of film songs available in the library. The following are features of the pagea. The name of the songs must be hyper linked to the songs, so that the users must be able to download songs.b. The following is the song database available in the librar... View Questions/Answers

java  April 3, 2010 at 12:46 PM
sir i have 2 tables namely FEES(Fileno,Stname,Totalfee,Feepaid,Balance) and INSTALMENT(Fileno,Stname,Totalfee,Balance,Instalmentpaid,Balancetobepaid)i am retreiving Fileno , Stname , Totalfee ,Balance into INSTALMENT table from FEES table , my Balance value is not updated onc... View Questions/Answers

Servlet Question  April 2, 2010 at 11:39 PM
I want to call one servlet when the browser window is closed by User. ... View Questions/Answers

Servlet Question  April 2, 2010 at 11:39 PM
I want to call one servlet when the browser window is closed by User. ... View Questions/Answers

storing details in database on clicking submit button  April 2, 2010 at 7:58 PM
I am using JSP in NetBeans and have developed an application form which has fileds naming 'Name' and 'ID'.I want to store the details of these two fields in the MYSQL database on clicking submit button. I am unable to do this.Can u tell me how to code this page and where and should be my code writte... View Questions/Answers

Problem with Java Source Code  April 2, 2010 at 4:12 PM
Dear Sir I have Following Source Code ,But There is Problem with classes,plz Help Me.package mes.gui;import javax.swing.JOptionPane.*;import java.sql.*;import javax.swing.*;import javax.swing.border.*;import java.awt.*;import java.awt.event... View Questions/Answers

blank space in input field  April 2, 2010 at 3:43 PM
I retrieved the fields from my mysql table...If the field contains null value i want to display a blank space in input field(text box)..but i am displaying null how to overcome this..u r help is highly appreciated. ... View Questions/Answers

Re: base the value of first combo box, how i display the second combox  April 2, 2010 at 1:12 PM
Dear Sir,in this program when i click on submit button, the corrosponding value of combo box should be sent. but when i clicked to submit button, it do nothing.please review this code:<%if((school.equals("indus"))||(school.equals("dps"))||(s... View Questions/Answers

How to change backgroundcolor and foreground color of JLabel in Java  April 2, 2010 at 10:42 AM
How to change backgroundcolor and foreground color of JLabel in Java ... View Questions/Answers

javascript code  April 2, 2010 at 4:31 AM
Hi,thanks for ur slideshow coding which is very user interactive and attractive.but in this we r explicitely specifying each image file name one by one. Can we make it in a while loop which will read all the files in a image folder and display it. Kindly clarify my doubt. ... View Questions/Answers

conversion  April 1, 2010 at 7:54 PM
how to convertor .xl to .pdf and .pdf to .xl and .mp4 to .mp3 ... View Questions/Answers

Connecting JTable to database  April 1, 2010 at 7:28 PM
Hi..I am doing a project on Project Management System for which i created the user interfaces..I have a user interface in which i have used JTables..Now my problem is I dont know how to how to store this JTable content in my database table..This is a very important table of m... View Questions/Answers

how to link differnt modules  April 1, 2010 at 7:11 PM
i am doing my final year project which is based on steganography.we hide the secret msg in the spaces between the words and paragraphs.we have around 4 modules.all the modules are running fine individually.the prob is how can i link all the 4 modules so that they work in a step by step manner.... View Questions/Answers

Struts  April 1, 2010 at 6:59 PM
Hi, I am doing a reverse engineering in a project based on struts 1.1,after seeing the log file, i encounter some lines that are written by applicatoin, following are the lines in log related to strtus while actionservelt is doing his task.****************************o... View Questions/Answers

Wireless communication  April 1, 2010 at 6:33 PM
I want to send and receive data(message/data) between 2 lappys which are connected in wireless lan. can u plz expalin how to start the JAVA source code?? ... View Questions/Answers

Remote Location Handeling  April 1, 2010 at 5:32 PM
I have application where I want main control from one location and have to connect two more locations remotly and have to handle it.So what should I use in my application Server/RMI or web application?Also help me to connect me to the remote locations having main control with my location ... View Questions/Answers

Re: base the value of first combo box, how i display the second combox  April 1, 2010 at 3:55 PM
thanks for your reply.i want to know suppose the second combo box appear only when i select the class 11th or 12th.please review.your answer:<html><h2>ComboBox</h2><script language="javascript">... View Questions/Answers

datagrid search  April 1, 2010 at 3:11 PM
Hi friend, i have displayed a datagrid using jsp but i need a search option in that which is used to display and sort it in a alphabetical order....pls help me...Thanks in advance... ... View Questions/Answers

Retrieve Value from Table  April 1, 2010 at 3:05 PM
Hai friend,I need help, How can i retrieve values From database using hibernate in web Application. As I new to hibernate I couldn't find solution for this problem.. Can anyone help please.. ... View Questions/Answers

Html / Java Script  April 1, 2010 at 2:15 PM
Hi There,in my form there are ten text boxes. my requirement is that when i click checkbox,the values of first five textbox has to copy to next five. I need jscript for that ... View Questions/Answers

base the value of first combo box, how i display the second combox  April 1, 2010 at 1:25 PM
i have a combo box for classes. my requirement is when i select the class, if class is 11 or 12 the second combo box of subject should be appear.please let me how i implement this in JSP.<%! int i=1; %><tr><td>Class</td><td><selec... View Questions/Answers

java Exception handling  April 1, 2010 at 12:44 PM
what is the difference between throw and throws keywords ... View Questions/Answers

java Exception handling  April 1, 2010 at 12:42 PM
what is the difference between throw and throws keywords ... View Questions/Answers

Paging or pagination  April 1, 2010 at 10:34 AM
1.how to do paging or pagination in jsp using servlets?I have a 20 records ,i have to show them in 2 pages like pages 1 2...i done this but i m geting starting 10 records correctly but i m unable to get a next 10 records it is showing a starting 10 records only please help me... View Questions/Answers

jsp  March 31, 2010 at 11:35 PM
How to creat table in jsp which show single containt tha is employee nameWhen u enter the employee name and submit.then another box will display which show the every detail of the employee of the same name from data base if of employee dose not existing in same name then another box will disp... View Questions/Answers

Encryption In Swing  March 31, 2010 at 9:43 PM
Hi sir i have a JFrame Containing User Name and Password is there any way to encrypt password and how can we store the encrypted passwaord to MS ACCESS ... View Questions/Answers

javascript code  March 31, 2010 at 9:00 PM
hi,i want to display all the image files in a folder one by one like a slidshow on my website using javascript. Will you please help me for this??? ... View Questions/Answers

SWING  March 31, 2010 at 7:48 PM
how to insert image and components such as JLabel,JButton,JTextfield in JFrame in swing? ... View Questions/Answers

enable users to enter names  March 31, 2010 at 6:51 PM
this is the code for tic tac toe game, i want users can save their name as player X and player O, but I do not know how? can you give me some tips?package threeTsGame;import java.awt.*;import java.awt.event.*;import javax.swing.*;publ... View Questions/Answers

core Java  March 31, 2010 at 6:04 PM
how is it possible to create object before calling main() in Java? ... View Questions/Answers

Keep servlet session alive  March 31, 2010 at 3:40 PM
Hi,I am developing an application in java swing and servlet. Database is kept on server. I am using HttpClient for swing servlet communication.I want to send heartbeat message from client to server after every specific time interval so that servlet will not invalidate session... View Questions/Answers

exporting data to excel sheet  March 31, 2010 at 3:25 PM
Sir i have already send request about this problem sir.Sir i want code for below applicationSir whenever execute query in java swing program,i want to print the result about the query in excel sheet.Sir plz help me sir. ... View Questions/Answers

java  March 31, 2010 at 3:06 PM
siri have 2 tables namely FEES(Fileno,Stname,Totalfee,Feepaid,Balance) and INSTALMENT(Fileno,Stname,Totalfee,Balance,Instalmentpaid,Balancetobepaid) i am retreiving Fileno , Stname , Totalfee ,Balance into INSTALMENT table from FEES table , my Balance value is not updated onc... View Questions/Answers

server-jsp  March 31, 2010 at 2:01 PM
how can we implement a simple database(ms access) for storing information about the HTTP requests sent to a web server(database)? ... View Questions/Answers

EJB JNDI LOOK UP PROBLEM  March 31, 2010 at 12:53 PM
Hi, I am using jboss4.2 and created a sessionbean<stateless> using EJB3 but while running client code I am finding NoInitialContextException claname not set in enviornment properties... Thankx. ... View Questions/Answers

java  March 31, 2010 at 12:28 PM
just by removing the package name???? ... View Questions/Answers

swings  March 31, 2010 at 12:27 PM
hi i want to fill a polygon with a pattern. for this i am trying to use the HSSFCellStyle.FINE_DOTS, but it gives a error like cannot find the variable HSSFCellStyle.how can i use the all hsscfill patterns give me a small example for this.......... ... View Questions/Answers