Home Answers Questions Question and Answers


 
 

Latest Programming Questions askedAsk your question?

JAVA MAIl  February 1, 2010 at 5:08 PM
Hi,I am trying to send a mail using java mail api. But I am getting following error:javax.mail.SendFailedException: Sending failed; nested exception is: javax.mail.MessagingException: Could not connect to SMTP host: <host name>, port: 25; nested exc... View Questions/Answers

Combobox program  February 1, 2010 at 3:53 PM
import javax.swing.*;import java.awt.*;public class SwingFrame1{public static void main(String[] args) throws Exception{JFrame f = new JFrame("Frame in Java Swing");f.getContentPane().setLayout(null);JLabel lbl1 = new JLabel("Name")... View Questions/Answers

java  February 1, 2010 at 3:10 PM
HOW AND WHERE SHOULD I USE A CONSTRUCTOR IN JAVA PROGRAMMING??? ... View Questions/Answers

Ads

Swing programming  February 1, 2010 at 3:09 PM
import javax.swing.*;import java.awt.*;public class SwingFrame{ public static void main(String[] args) throws Exception { JFrame f = new JFrame("Frame in Java Swing"); f.getContentPane().setLayout(null); JLabel lbl1 = new JLabel("Name... View Questions/Answers

Questions in Swing  February 1, 2010 at 3:01 PM
I have created combobox in my program. I added MCA,MBA,others etc.. If i click others then a new textbox should open beside that combobox for that am in need of coding in java swing. ... View Questions/Answers

java  February 1, 2010 at 1:47 PM
write a program in a pramid like 1 1 2 1 1 2 3 2 1 1 2 3 4 3 2 1 1 2 3 4 5 4 3 2 1 ... View Questions/Answers

java  February 1, 2010 at 12:38 PM
hi,i have one xml file .i want to parse the xml file ,validate the xml file and stored it into the mysql databzse.Iwant the sample code immediately.Please send to me its very urgent.Thanks,valarmathi P ... View Questions/Answers

JavaMail flagging problems  February 1, 2010 at 11:51 AM
Hi everyone, I am working on receiving a mail currently. I use a substring "status" to search for the mail's subject line and read only those mails which have this as the subject line.My problem is, every time i run the program, the old mails are also displayed. how to flag the mails... View Questions/Answers

abt proj  February 1, 2010 at 11:22 AM
which topic i have to study carefully ,when I am going to start java project using swings ... View Questions/Answers

abt java project  February 1, 2010 at 11:20 AM
I don't know too much about java , and I am working on java project, where editor is eclipse and backend postgresqlHow can i take help about my project, which book I should refers plz help me ... View Questions/Answers

XML  February 1, 2010 at 11:09 AM
How to convert database to XML file? ... View Questions/Answers

Java Compilation error  February 1, 2010 at 10:29 AM
i wrote a simple hello world program i get this error every time please helpException in thread "main" java.lang.NullPointerException at org.apache.xml.security.keys.storage.implementations.CertsInFilesystemDirectoryResolver.readCertsFromHarddrive(Unknown Source)... View Questions/Answers

Java Compilation error.  February 1, 2010 at 10:12 AM
when ever i run my console application i get this error or message even if it is a helloworld program please help<terminated>AgentId [JavaApplication]c:\javase\bin\javaw.exe 172.25.12.37/1265000394924/7e8058c4570661aax3480d38fx12687e6305exX800077/1172.25.12.37/1265000394924/7... View Questions/Answers

Error output  February 1, 2010 at 10:00 AM
Can anyone please assist me; The printed output should be:The product is 10. But instead of it I got; The product is undefined. Can anyone trace what went wrong of my code pls?===========================================================================<htm... View Questions/Answers

Day.Gui  January 31, 2010 at 12:51 PM
I am new to GUI Java programming and I am attempting to find the best way of creating a frame to contain a series of menus. I am first adding logic to have the date and time appear in the frame, but the way I am doing it they are both showing up on the same line and I can't seem to find any sources ... View Questions/Answers

Eclipse  January 31, 2010 at 12:45 PM
I having problems getting my program to run in Eclipse 3.2. Could I get some assistance perferabley by tomorrow morning. Thank You!!!!package OFC;import java.awt.*;import javax.swing.*;import java.awt.event.*;class Form extends JFrame{ JLa... View Questions/Answers

java (jquery)  January 31, 2010 at 12:13 PM
i want to combine to things to create a photo gallery.http://spaceforaname.com/galleryview eg: http://spaceforaname.com/gallery-light.htmlandhttp://finnrudolph.de/ImageFlow/Download eg: http://imageflow.finnrudolph.de/the thing i want is....i... View Questions/Answers

source code in java for a program using class  January 31, 2010 at 10:17 AM
Dear sir/madam i want source code in java for following program:WAP which creates a class accountthat stores customer name,account number and type of account.From this derive the classes cur-acc and sav-acc to make them more specific to their requirements.include the necessary member methods i... View Questions/Answers

Unable looping using JOptionPane  January 31, 2010 at 10:17 AM
import javax.swing.*;public class Shop{public static void main(String [] args){ Shop shop = new Shop(); String mainMenu= "(MAIN SCREEN )"; mainMenu+= "\n1) Computer Menu"; mainMenu+= "\n2) Storage Menu";... View Questions/Answers

C Help  January 31, 2010 at 8:15 AM
Dear sir,I'm developing a program in c using TURBO-C, i want that when my program runs the console window(cmd) should be hidden. program should run in task manager.thnx ... View Questions/Answers

create named class  January 31, 2010 at 6:35 AM
Can you check my coding@program:How to create a class named Employee with name and salary. Make a class Manager inherit from Employee with an instance field named department. Supply a method toString() that prints the manager?s name, department and salary. Make another class named Direct... View Questions/Answers

JAVA  January 30, 2010 at 7:31 PM
How to read port number using property file in JAVA? ... View Questions/Answers

java  January 30, 2010 at 7:28 PM
How to send audio file through one mobile to another mobile using JAVA? ... View Questions/Answers

swings  January 30, 2010 at 5:48 PM
i have two combobox.In first combo box i have 5 items.If i selecte the first combo box item then the related data will apear in the second combo box, if i select the another item in the first combobox then the related data will appear in the second combo box. how can i acheive this.thank you ... View Questions/Answers

How can i add a new count to this source code ?  January 30, 2010 at 4:46 PM
Hi everyoneI have 5 variables1. XTSM is between 0~2002. XTS is between 0~23. XRX is 0~34. XHAN is 0~75. ZHTYPE is one of these : (1)TCHF_HLF (2)TCHSD (3)TCHFULLthey are related to their with this shape .XTSM->XTS->XRX->... View Questions/Answers

JAVA  January 30, 2010 at 3:53 PM
How to read MySQL user name and password through Property file using Property class in JAVA? ... View Questions/Answers

swings  January 30, 2010 at 3:38 PM
I have two combo box in the same pannel. when i am going two run the program the out put comes from two combobox selected items..when i am going to select the second combo box item, i dont want the output of 1st combo box item. Two combo box in the same pannel, i am using netbeans.......... View Questions/Answers

How can i add a new count to this source code ?  January 30, 2010 at 3:34 PM
Hi everyoneI have 5 variables1. XTSM is between 0~2002. XTS is between 0~23. XRX is 0~34. XHAN is 0~75. ZHTYPE is one of these : (1)TCHF_HLF (2)TCHSD (3)TCHFULLthey are related to their with this shape .XTSM->XTS->XRX->... View Questions/Answers

Avl tre problem code  January 30, 2010 at 1:43 PM
package DataStructures; // BinarySearchTree class // // CONSTRUCTION: with no initializer // // ******************PUBLIC OPERATIONS********************* // void insert( x ) --> Insert x // void remove( x ) --> Re... View Questions/Answers

how to use toString method?  January 30, 2010 at 10:47 AM
i'm a new student, and learn with java.How to create a class named Employee with name and salary. Make a class Manager inherit from Employee with an instance field named department. Supply a method toString() that prints the manager?s name, department and salary. Make another class named... View Questions/Answers

How to implement a superclass Person?  January 30, 2010 at 10:41 AM
How to implement a superclass Person. Make two classes, Student and Lecturer, that inherit from Person. A person has a name and year of birth. A student has a degree program and a lecturer has a salary. Write the class definitions for all classes. Each class must have a constructor and a toString()... View Questions/Answers

applet not initalized  January 30, 2010 at 3:50 AM
I HAVE TRIED MY HEART OUT BUT THIS APPLET IS NOT GETTING INITIALIZED .....THE FOLLOWING IS THE PROGRAM I HAVE WRITTEN:import java.awt.*;import java.applet.*;import java.awt.event.*;/*<applet code=card width=500 height=500> </applet... View Questions/Answers

java progam  January 29, 2010 at 8:01 PM
write to me java program on simple calculator ... View Questions/Answers

java  January 29, 2010 at 6:31 PM
pls tell me file handling tutorials with examples in detailed manner.. ... View Questions/Answers

Java Coding  January 29, 2010 at 3:17 PM
What is the meaning of following statement in Java? Clasname objectname = another_object_name.method_name;The Example Code is Given Belowpublic void sessionCreated(HttpSessionEvent sessionEvent) {// Get the session that was createdHttpSession sessio... View Questions/Answers

swings  January 29, 2010 at 2:48 PM
I have a combobox.In that i added lot of names. i want to display first five names with one type of font and another five names with different font. how can i do this. please help memy code is File f = new File("C:/Program Files/Java/jre1.6.0/lib/fonts/MAPFONT.TTF"); ... View Questions/Answers

XML  January 29, 2010 at 11:30 AM
How to run XML program? ... View Questions/Answers

swings  January 29, 2010 at 10:59 AM
how to add an image to combobox? i searched for this in google, but i got very difficult programs. i am beginner in java swings . i want a small example to add a image .gif file to combobox list. thank you ... View Questions/Answers

SQL Query  January 29, 2010 at 4:06 AM
Hi I would like to know how to create a SQL query which would copy values from a field which contains multiple values to an existing table. I created table 2 and defined the fields.I tried different types of insert statements but could not figure it out.ExampleTab... View Questions/Answers

java  January 28, 2010 at 11:08 PM
hi i m working on a project in which i have to create a page in which i have to give an feature in which one can create a add project template in which one can add modules and inside those modules some more options please give me idea how to start with ... View Questions/Answers

hiberante installation  January 28, 2010 at 8:44 PM
how to install hibernate s/w in windows xp. ... View Questions/Answers

J2ME  January 28, 2010 at 6:56 PM
Have to develop a tracking system as a project have to track a mobile from computer using GPS.I don't know where to start.This is my final year project can anyone tell me is it ok?If not then suggest some another J2ME application.thank you. ... View Questions/Answers

junit test case  January 28, 2010 at 6:25 PM
how to use junit for testing email id format ... View Questions/Answers

java.lang.ClassNotFoundException:  January 28, 2010 at 4:26 PM
Hi,I cant connect my eclipse(ganymede) to mavenEven I got some errors when launching my first applicationThis is what i gotJan 28, 2010 4:03:02 PM org.apache.tomcat.util.digester.SetPropertiesRule beginWARNING: [SetPropertiesRule]{Server/Service/Engine... View Questions/Answers

Java 2D Graphics  January 28, 2010 at 3:28 PM
I am working on GIS project.I want represent a line in different forms like railroad, airplane etc.How can i acheive thisI know the standard forms like dashed, dotted line.My code is bs = null; bs = new BasicStroke(f... View Questions/Answers

I'v a doubt  January 28, 2010 at 1:19 PM
Hai to all, How to break the mysql jar file, and import into the java file by without using any editiors.With regards,Terrance. J ... View Questions/Answers

java swings  January 28, 2010 at 12:42 PM
if i design the more than two menu on the frame, if i click on the menu than another frame open which contain the some data like as item,price,name of item,color,id etc. plz help ... View Questions/Answers

java swings  January 28, 2010 at 12:36 PM
how to send the data in database using java swing. Example : how to design the registration page using java swing, and how to write the coding to store the data into data base.Plz help........ ... View Questions/Answers

Date Java  January 28, 2010 at 11:09 AM
I'm using the eclipse software and I get an error for my porgramming for the Date.java..Please assist.Here's what I have so far:public class Date { private int month; // 1-12 private int day; // 1-31 based on month private int year; // any year... View Questions/Answers

java  January 28, 2010 at 10:59 AM
i am trying to serialize a transient object which is non-serializable .after serialization the object should restore the reference which was initially assigned.is it possible? ... View Questions/Answers

javascript date picker  January 28, 2010 at 9:43 AM
how to insert a date picker user control in a html/jsp using javascript??? please help, it's urgent. ... View Questions/Answers

java  January 28, 2010 at 9:00 AM
write a program the highest common factor of three numbers. ... View Questions/Answers

java  January 28, 2010 at 8:07 AM
write a program in java to print first 10 prime number? ... View Questions/Answers

java  January 28, 2010 at 7:56 AM
write a program in java to print the number as follow;12 13 2 14 3 2 15 4 3 2 ... View Questions/Answers

programming err  January 28, 2010 at 12:01 AM
<%@page import="java.lang.*" %><%! int i; %><form><input type=text name="t" ><%{String s=request.getParameter(t);String[] sa=s.split(" ");for (i=0;i<sa.length;i++){out.println(sa[i... View Questions/Answers

Programming Error  January 27, 2010 at 9:49 PM
Hello Sir, how to convert a txt written in textarea of html must get converted to integers and should get displayed in words in count text box of htmt .And shoukd displayed in wordsEg: if "Hello hi" is written then in count box it must displayed 2 words then h... View Questions/Answers

Programming error  January 27, 2010 at 8:29 PM
Actually there is an error in placeorder.jsp file where there are 5 fields OrderNo ,Name , Address, Email, PhoneNowhere if I delete an order of client based on orderno then suppose in database if there are 5 orders then if i delete an order no 3then the next order no i.e is 4 should not ... View Questions/Answers

JSP Doubt  January 27, 2010 at 8:11 PM
Hello Sir, Sir Actually I have created my DraftAd in Html and I want that any thing i type in draft ad should be converted into digits i.e integers and should get displayed in another text box ie count text box which is created in html.And in count text box it should not sho... View Questions/Answers

generate graf report..  January 27, 2010 at 7:27 PM
How to generate report(graf) using jsp code?? ... View Questions/Answers

flash diamond  January 27, 2010 at 6:39 PM
* ******** * *** *** * ***** * *** *** * ***** *** * ... View Questions/Answers

C#  January 27, 2010 at 2:32 PM
program to print the following: 1 1 1 1 2 2 1 2 3 3 3 2 3 4 4 4 4 34 5 5 5 5 5 4 ... View Questions/Answers

java  January 27, 2010 at 12:58 PM
Write a menu driven program to find the volume of a cuboids, sphere and a cylinder by using overloading method. Formulas are as mentioned below :Volume of cuboids = height * width * depthVolume of sphere = 4/3 * Pi * r3Volume of cylinder = Pi * r3 * h ... View Questions/Answers

java begginers  January 27, 2010 at 12:57 PM
Display the following pattern: * * * * * * * * * * * * * * * * ... View Questions/Answers

UML  January 27, 2010 at 11:39 AM
How to Draw UML DIAGRAM? ... View Questions/Answers

javascript  January 27, 2010 at 11:16 AM
i want to go to the next page when i will click on the particular image in slide show. so can you help me how to go to next page when click on particular image of slide show in javascript. i used href tag but it does not work so i m posting my javascript code here below.note: in the head secti... View Questions/Answers

java  January 27, 2010 at 9:30 AM
Write a program to encode a message. The idea is to shift each letter of a alphabet (a to z) or numeric digit (0-9) by previous two places. For example :C to A, M to K ?. A to Y. Similarly 3 to 1, 7 to 5 ?. 1 to 8 regards ... View Questions/Answers

java  January 27, 2010 at 9:30 AM
Write a program to encode a message. The idea is to shift each letter of a alphabet (a to z) or numeric digit (0-9) by previous two places. For example :C to A, M to K ?. A to Y. Similarly 3 to 1, 7 to 5 ?. 1 to 8 regards ... View Questions/Answers

java  January 27, 2010 at 9:29 AM
Write a complete java program with the following members of its class:Members Members Name Description private data Ac_num Stores account number Ac_name Stores account holders name Bal Stores balance am... View Questions/Answers

code in java  January 26, 2010 at 5:19 PM
program for a two user chess game(Users must be on different systems) please send me this source code to my mail id with step by step explanation. ... View Questions/Answers

core java  January 26, 2010 at 3:27 PM
what are the type of scope variables and use? ... View Questions/Answers

core java  January 26, 2010 at 3:26 PM
how many keywords are in java? give with category? ... View Questions/Answers

OOP with Java  January 26, 2010 at 12:20 PM
I had a look at the solution for the answers, in the website already, but my lecturer wants us to do it in another method. Here goes the question.Write a program to assign passengers seats in an airplane. Assume a small airplane with seat numberings as follows: 1 A B C D 2 A ... View Questions/Answers

continue of doubts in place ad  January 26, 2010 at 12:11 AM
and when user clicks on confirm check box then only save or submit button should get displayed and when clicked on save everyting selected on place ad page should get saved in database .and when clicked on submit everything should get displayed on next page.and i want that when user clic... View Questions/Answers

Doubts in PlaceAd.jsp  January 26, 2010 at 12:03 AM
In DraftAd when user types in the textarea then it should get converted into digits and should get displayed in count box. in words that is how many words user have typed and there should be limit upto only 500 characters.And this should get displayed in next page when clicked on submit and it... View Questions/Answers

Prog Error  January 25, 2010 at 11:53 PM
<%@ page language="java" import="java.sql.*" %><%@ page import="java.lang.String.*" %><% Connection con=null; //ResultSet state=null; Statement stmt=null; String st;try{Class.forName("sun.jdbc.odb... View Questions/Answers

Programming error  January 25, 2010 at 11:46 PM
<%@ page language="java" import="java.sql.*" %><% Connection con=null; ResultSet rs=null; Statement stmt=null; int No=0; try{ Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); con=DriverManager.ge... View Questions/Answers

star rating code in jsp  January 25, 2010 at 7:36 PM
how to write star rating system using jsp?? ... View Questions/Answers

jsp retrive image  January 25, 2010 at 7:33 PM
How to Display Images in JSP retrieved from MYSQL database?plz help me.. ... View Questions/Answers

java program  January 25, 2010 at 6:58 PM
write a program that asks the user for a starting value and an ending value and then writes all the integers (inclusive) between those two value. ... View Questions/Answers

UML Diagram  January 25, 2010 at 6:26 PM
How I Can Draw my UML Diagram,my Project subject is Graphical Representation of Array Sorting(Bubble Sorting,Selection Sort,Merge Sort,Insertion Sort,Quick Sort) ,How I Can Draw UML diagram for this project.plz Help Me. ... View Questions/Answers

Struts validation not work properly  January 25, 2010 at 3:10 PM
hi...i have a problem with my struts validation framework.i using struts 1.0...i have 2 page which is:1)index.jsp===================================<%@ page language="java"%><%@ taglib uri="http://jakarta.apach... View Questions/Answers

Spring examples  January 25, 2010 at 2:40 PM
Hi,I need the sample example for how to retrieve the values from jdbc using spring.Please send the sample example immediately.Its very urgent.Thanks,Valarmathi P ... View Questions/Answers

java swings  January 25, 2010 at 2:25 PM
When we click on the button , than open a frame, How to create a link on button to frame , example : Suppose I Have to create a login page and on login page there are three button like login, reset, and register. If user is new than click on the register button , w... View Questions/Answers

interview question  January 25, 2010 at 2:14 PM
hello i want technical interview question in current year ... View Questions/Answers

read text file and store the data in mysql  January 25, 2010 at 2:00 PM
when we store the data in mysql table from text file its store the data from new line to new column. how to store the data in different column from a single line of text file. ... View Questions/Answers

Clarify my doubt  January 25, 2010 at 1:17 PM
Hi All,Although i know the concept of Servlet & JSP, but I have never got a chance to work in EJB . So could u please tell me how to create web Project in netbeans and deploy it in tomcat AND/OR creating a web project in netbeans adding jsp/servlet in this web project and deploying in tomc... View Questions/Answers

Javascript validation  January 25, 2010 at 10:44 AM
Hi, this is ragav and my doubt is: I am having a input type="file" text box in which the user can browse the required file.. If that file is a gif file, I have to allow user for further procession else not.. How to check whether that file name selected by the user is a g... View Questions/Answers

identification quiz  January 25, 2010 at 8:17 AM
what is the html java code for a identification quiz?plz help me.. ... View Questions/Answers

java applet problem  January 25, 2010 at 3:44 AM
i was doing a program using java applet. I want to make a simple calculator. So i added four labels,textboxes. And 6 buttons for add,multiply,divide,minus and a clear and exit button to clear the textboxes and to exit from the applet respectively.Now i want to display a message when the user click... View Questions/Answers

Programming Error  January 24, 2010 at 4:25 PM
<%@ page language="java" import="java.sql.*" %><%@ page import="java.lang.String.*" %><% Connection con=null; //ResultSet state=null; Statement stmt=null; String st;try{Class.forName("sun.jdbc.odb... View Questions/Answers

Java Compilation error and how to continue from this  January 24, 2010 at 3:52 PM
Camford Cars Rental Pte Ltd requires a software system to manage its daily operations like renting and returning of vehicles,booking and cancelling bookings,checking the availability of its vehicle,etc.For this project i am required to write the application only for renting its vehicles.... View Questions/Answers

Mastering Struts  January 24, 2010 at 12:46 PM
Sir, how can i master over struts. The theoritical part is very clear but the implementation part troubles me. What should I do? Until and unless i am guided over some struts Project i dnt think...its possible. Right? ... View Questions/Answers

Programming Error  January 23, 2010 at 10:59 PM
<%@ page language="java" import="java.sql.*" %><% Connection con=null; ResultSet rs=null; Statement stmt=null; int No=0; try{ Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); con=DriverManager.ge... View Questions/Answers

Programming error  January 23, 2010 at 9:19 PM
<HTML><HEAD><TITLE> Payment </TITLE></HEAD><BODY BGCOLOR="lightblue"><marquee behavior="alternate" scrollamount=5 scrolldelay=10><h1><font size=4 face="Stroustroup" color="#993355"... View Questions/Answers

Programming Error  January 23, 2010 at 9:09 PM
Ya States and cities and maincategory and subcategory are combobox and maincategory contains suppose matrimonial then sub category will contain groom and bride,if main category contains vehicals then sub category contains cars and their model and different companies of that car etc.and d... View Questions/Answers

java  January 23, 2010 at 7:12 PM
hi can u say how to create a database for images in oracle and store and retrive images using histogram of that image plz help me its too urgent ... View Questions/Answers

differences  January 23, 2010 at 6:25 PM
What are the differences between structured programming and object oriented programming? ... View Questions/Answers

stop an infinite for loop  January 23, 2010 at 5:22 PM
class InfiniteForLoop{ public static void main(String[] args) { for(;;){ } } }i want this infinite for loop program to be stopped by another program named kill. when i run that another program kill the execution of infinit... View Questions/Answers

servlets output to jsp  January 23, 2010 at 4:42 PM
hey i have writing a code lately and wanted to print the output to the jsp page from the servlet.the servlet would read the command prompt n thn return the output as string to the jsp pagehere is the code.i am unable to get a string rather it is returning an objecttry ... View Questions/Answers

bacterial Evolution algorithms  January 23, 2010 at 9:31 AM
Can I have a code for Bacterial evolutionary lgorithm ... View Questions/Answers

DMCA.com