Home Answers Questions Question and Answers


 
 

Latest Programming Questions askedAsk your question?

Animation in Applets  March 25, 2010 at 1:16 PM
Hello sir,I have a code for you .this code is for moving a plane in an applet,but unfortunatlythis code is not working .can you kindly help me out to solve this problem.code:import java.applet.*;import java.awt.*;import java.net.*;/*<ap... View Questions/Answers

file upload in jsp  March 25, 2010 at 12:33 PM
how to upload a file in jsp and store it in my project directory ... View Questions/Answers

Add Items in JComboBox from Access Database  March 25, 2010 at 11:44 AM
Heelo Sir I want To add ittem in JComboBox which is stored in Access Database.plz Help Me SirDatabase Column name -CourseItems -MBA,MCA,MBA IT,MBA FINANCEI want Load Database records in to my JComboBox. ... View Questions/Answers

Advertisement

oopengl on3d using c/c++  March 25, 2010 at 11:43 AM
sir i want a programs on opengl in 3d using c/c++ language give me new one sir. ... View Questions/Answers

file upload in jsp  March 25, 2010 at 11:07 AM
how to upload a file using jsp. my operating system is linux. ... View Questions/Answers

java 2d graphics  March 25, 2010 at 10:51 AM
Hello AllI need to use 2d graphics in java to build up a map from the given geographic coordinates. What i am not getting is how to scale down these geographic coordinates to device coordinates. I would highly appreciate for some sueful suggestions. Thanx. ... View Questions/Answers

Alphabetical order  March 24, 2010 at 4:33 PM
Hi..I've a swings application about adding a record into a file and displaying it in text area.It contains the fields... ID, name, age notesIts working well to display the files in text area when i clicked the view buttonNow i want to display the records present in the ... View Questions/Answers

pagination problem  March 24, 2010 at 4:32 PM
Thanks sir for posting the answer.But i have 2 problems1.i have created one employee class in that i use getter and setter methods,i created another class in that i wrote the methods like modify(),delete(),insert() methods using or importing employee class.finally i created a class using... View Questions/Answers

java Using net beans  March 24, 2010 at 2:49 PM
Dear Sir,I just like to ask why i cant add a data to the answer you have given me last time where i have to pick the data of the student like id , name , class , age & address using netbeans jframe then i have to store these data into my package so that i can edit it as well as delete some... View Questions/Answers

java Using net beans  March 24, 2010 at 2:48 PM
Dear Sir,I just like to ask why i cant add a data to the answer you have given me last time where i have to pick the data of the student like id , name , class , age & address using netbeans jframe then i have to store these data into my package so that i can edit it as well as delete some... View Questions/Answers

java Using net beans  March 24, 2010 at 2:48 PM
Dear Sir,I just like to ask why i cant add a data to the answer you have given me last time where i have to pick the data of the student like id , name , class , age & address using netbeans jframe then i have to store these data into my package so that i can edit it as well as delete some... View Questions/Answers

swings  March 24, 2010 at 2:23 PM
how to get a buffered image from image ... View Questions/Answers

java  March 24, 2010 at 11:42 AM
how to play audio song in java? ... View Questions/Answers

design patterns  March 24, 2010 at 10:46 AM
what is singleton design pattern? ... View Questions/Answers

swings  March 24, 2010 at 10:22 AM
hi friends how can i know the rgb value of a color ...bi.setRGB(1, 1, 0xff0000ff);in the above example they mentioned the rgb value for blue color but i dont know the rgb value of all colors , how can i know this Thanks ... View Questions/Answers

pagination problem  March 24, 2010 at 9:19 AM
Thanks sir for posting the answer.But i have 2 problems1.i have created one employee class in that i use getter and setter methods,i created another class in that i wrote the methods like modify(),delete(),insert() methods using or importing employee class.finally i created a class usin... View Questions/Answers

validation on dates  March 24, 2010 at 9:03 AM
how to find difference in days between two dates in java. ... View Questions/Answers

core java  March 23, 2010 at 8:31 PM
question1:- what is default members? ... View Questions/Answers

Overloaded methods  March 23, 2010 at 7:50 PM
Write two overloaded methods that return the average of an array with the following headers: a) public static int average(int[] array)b) public static double average(double[] array) ... View Questions/Answers

Save JRadioButton Text in to database  March 23, 2010 at 5:17 PM
Hello Sir I have Two JaradioButtons 1)Semwise Course2)Yearwise Course I want To Save Text from JRadioBuuton in to Access Databseand Access Databse. with user can select any one option from that two RadioButtons.plz Help Me Sir. ... View Questions/Answers

servlet code  March 23, 2010 at 4:44 PM
how to implement paging or pagination in java code using servlets. ... View Questions/Answers

Code Works  March 23, 2010 at 3:54 PM
Hi The code provided is working fine along with the pagination . i edited the queries and that makes difference..here is the code.Thank youRegardsEswaramoorthy<%@ page language="java" %><%@ page im... View Questions/Answers

java byte stream array  March 23, 2010 at 3:36 PM
I have a byte array that contains hexadecimal data for eg byte[] testMessage = {0x02, // STX 0x31,0x32,0x10,0x02,0x33, // Data 31 32 02 33 0x03, // ETX 0x31^0x32^0x02^0x33^0x03}; // LRC cal... View Questions/Answers

Open website on Button Click  March 23, 2010 at 3:21 PM
Hello sir I want to open website on button click using java swingplz help me sir.in my swing application one "VISIT US BUTTON"i want to open my website on Button CLick ... View Questions/Answers

probliem in pagiation  March 23, 2010 at 2:58 PM
Hithe code provided for displaying editable datagrid in jsp works fine. but there is some pagination problem.when my sql data are more then 5 record,the link for 2 nd page doesn't work.RegardsEswaramoortyhere is the provided codehttp://www.rosein... View Questions/Answers

data are not display in JSP from database  March 23, 2010 at 2:19 PM
i want to finding some data through a SQL query from SQL server database to a JSP page based on some condition which i specfied in parameters. but it is not going in while loop.one.jsp<%String school=request.getParameter("school");out.println(school... View Questions/Answers

JSF  March 23, 2010 at 2:19 PM
Hi, I am getting class not found exception java.lang.ClassNotFoundException: org.apache.commons.collections.map.LazyMap in JSF even I added the commons-collections-3.2.1.jar file to my project ... View Questions/Answers

Java  March 23, 2010 at 2:13 PM
Sir , please let me know the exact usage of DAO design pattern ... View Questions/Answers

connection  March 23, 2010 at 11:50 AM
how can i establish connection between netbean_ide6.9 with mysql or oracle ... View Questions/Answers

javascript  March 23, 2010 at 11:17 AM
HI,Greetings....I want to call javascript file i.e. ".js" from xml file. If it is possible tell me how to do that. and i want to know how to call javascript function from xml...Please help me in this regard...Thanks in advance.... ... View Questions/Answers

Re:Need Help for Editable Display table  March 23, 2010 at 11:00 AM
Hi Geniusi need a help in jsp to display editable display tag.I able to show the datagrid in jsp but i cant edit in that.My backend is with Mysql.I need to fetch the data and edit it in the same grid..Thanks in advanceEswaramoorthy ... View Questions/Answers

Re:Need Help for Editable Display table  March 23, 2010 at 10:56 AM
Hi Genius ... View Questions/Answers

Correct errors  March 23, 2010 at 7:55 AM
Identify and correct the errors in the following program: public java Method { public static method1(int n, m){n += m;xMethod(3. 4);}public static int xMethod(int n){if (n > 0) return 1;else if (n == 0) return 0;else if (n &l... View Questions/Answers

JFrame Components Printing  March 23, 2010 at 2:16 AM
hi sir i am doing a project so i am working in netbeans i have to print a JFrame it contains Labels and few textboxfields so i want to take the whole JFrame contents for printing so would you specify how can we do it please ... View Questions/Answers

What are the different types of interfaces in java?  March 22, 2010 at 10:54 PM
Hi, Is it correct question.I faced this in one interview.If yes can u tell me please.thankschandu ... View Questions/Answers

Caterer Company  March 22, 2010 at 8:28 PM
Local Caterer?s Company operates a small catering service. They ask you to write an application for them to schedule their catering events. They mostly cater special events, but they occasionally cater corporate, private and nonprofit events as well. All catered events have an event minimum r... View Questions/Answers

Perfect Numbers  March 22, 2010 at 8:26 PM
The number 6 is said to be a perfect number because it is equal to the sum of all its exact divisors (other than itself). 6 = 1 + 2 + 3Write a java program that finds and prints the three smallest perfect numbers. Use methods ... View Questions/Answers

calender devlopment  March 22, 2010 at 3:57 PM
Sir i need help sir.Sir how to develop calender by using JAVA SWING.Here conditions are one textbox and one small button are needed for this application.whenever i click on small button small calender window will be open and select on perticlar date the selected data will be sent t... View Questions/Answers

java  March 22, 2010 at 3:50 PM
Thank you for your reply and effort to answer my question. The program you've sent was almost what I need program. Can you please help me more. because what you had send isn't what I need. Because it just deduct whole numbers from the given..example when I widhtra... View Questions/Answers

Graphs using JFreeChart  March 22, 2010 at 3:27 PM
Hi Friend, I need to draw a graph of the powerconsumed by a consumer in specific dates with a const line showing the max power can be consumed.Now My data is like this15-12-2009 15016-12-2009 200Max power ------400How can i do thisAny help... View Questions/Answers

core java  March 22, 2010 at 1:16 PM
what is object serialization ?with an example ... View Questions/Answers

Servlet doubt2  March 22, 2010 at 1:14 PM
Dear sir,thanks for your response?my question is how can i develop a chatting application using servlets?like can we use socket programming in servlets?can you give me an example? ... View Questions/Answers

java code(API calls)  March 22, 2010 at 1:07 PM
How to insert an image into Word document?????????can any one tell the API call for inserting an image or picture into word document............using JAVA(APACHE POI PACKAGE (Word-HWPF))plzzzzzzzz...........In power point there is a call namely "addPicture" to insert an image..........In w... View Questions/Answers

ATM IN JAVA RMI  March 22, 2010 at 1:03 PM
How to write code for ATM using Java RMI? ... View Questions/Answers

FILEOUTPUTSTREAM and FILEINPUTSTREAM  March 22, 2010 at 12:56 PM
Using FILEOUTPUTSTREAM and FILEINPUTSTREAM provide code that will write bytes to file and read them back. ... View Questions/Answers

Tracing unexpected closing of awindow...  March 22, 2010 at 12:33 PM
Hello friends,How can we track unexpectedly closing a window when a jsp project running with session concept. And this tracking should update the log in status in data base. ... View Questions/Answers

path setting  March 22, 2010 at 12:31 PM
Hello friends,I download file uploading coding from the following url:http://www.roseindia.net/jsp/file_upload/Sinle_upload.xhtml.shtml. And i changed the file saving path into a different folder. While setting this path i need to give the full path from drive name, instead o... View Questions/Answers

Using a image for Browse button instead of normal html Browse button for Uploading files from a JSP  March 22, 2010 at 11:36 AM
I am using the following code snippet :<input type=file name=browse style="display: none;"> <input type=text name=file style="font-style:veranda; font-size:12px; width:600px; text-align:center;" ><input type="image" name="sele... View Questions/Answers

About jsp and Servlet  March 22, 2010 at 10:42 AM
Servlets are directly using java technologies. It is used in HTTP,FTP..etc, But Jsp only used in HTTP. Servlets are running fastly... Then why we moved from Servlet to JSP.. Pl Tell me the reasons... ... View Questions/Answers

Business logic vs Presentation logic  March 22, 2010 at 10:38 AM
what is the difference between Business logic and Presentation logic?. ... View Questions/Answers

how to create a jar file for my packages classs  March 22, 2010 at 9:57 AM
how to create a jar file for my packages classs in struts application .we don't want to see the see the classes other persons ... View Questions/Answers

Java Binary data file  March 22, 2010 at 9:55 AM
Hi,I have a binary data file(binfile.data) and the file has what is commonly referred to as variable length records.Specifically the format of the file is:HEADER SECTION//RECORD--------------------------------------------DATA SECTIONS//RECORDS... View Questions/Answers

servlet doubt  March 22, 2010 at 9:45 AM
How do I read and output a text file from a Servlet?How can I invoke a servlet from JavaScript? ... View Questions/Answers

How can I Define a JFrame subclass that has four vertically positioned buttons.  March 22, 2010 at 8:16 AM
How can I Define a JFrame subclass that has four vertically positioned buttons. The labels for the four buttons are Senior, Junior, Sophomore, and Freshman. When a button is clicked, display a message that identifies which button is clicked, using JOptionPane. ... View Questions/Answers

Database Sql question?  March 22, 2010 at 8:15 AM
Given relation r (a, b,c), show how to use the exstended SQL features to generate a histogram of c versus a, dividing a into 20 equal-sized partions (that is where each partition contains 5 percent of the tuples r sorted by a). ... View Questions/Answers

Java programming or net beans  March 22, 2010 at 8:13 AM
Help with programming in Java?Modify the dog class to include a new instance variable weight (double) and the Cat class to include a new instance variable coatColor (string). Add the corresponding accessors and mutators for the new instance variables. Modify excercise 4 by inputting additional... View Questions/Answers

Java map building  March 22, 2010 at 7:56 AM
Hello AllI want to build a map for a road network from ESRI shapefiles. Up to now i have the code that can read the shapfiles like polyline, polygon, points etc fetch the coordinates from the shapes. Now to proceed further i need to build a map using these coodinates which i am unable to thin... View Questions/Answers

exceptions in java  March 22, 2010 at 12:18 AM
can any one explain exceptions with example and how can i handle those plz explain me with examples. ... View Questions/Answers

Java Program  March 21, 2010 at 8:43 PM
A java Program that send message from one computer to another and what are the requirements. ... View Questions/Answers

Mean, Median and Mode  March 21, 2010 at 8:27 PM
Write a java program that computes three measures of central tendency of a given set of students marks: mean, median, and mode.Generate students marks randomly.Please include comments in the program so that I can understand what is being done. ... View Questions/Answers

Java Kick Start  March 21, 2010 at 6:27 PM
Hello Sir, i like to become a good developer in Java. Im good in JAVA basics. So how to get started with any kind of application development in Java. Please do help me with this as im not finding any kind of good feedback. Im very muck exicted to work with java programming. Thank YouManj... View Questions/Answers

Java Kick Start  March 21, 2010 at 6:24 PM
Hello Sir, i like to become a good developer in Java. Im good in JAVA ... View Questions/Answers

que  March 21, 2010 at 4:41 PM
how can i run a simple strut programm?please explain with a proper example.reply soon. ... View Questions/Answers

java  March 21, 2010 at 12:10 PM
why is required to write both jsp and servlet in a application of java? ... View Questions/Answers

java  March 21, 2010 at 12:08 PM
what is mvc model in java? ... View Questions/Answers

java  March 21, 2010 at 12:06 PM
why java don't support operator overloading? ... View Questions/Answers

date  March 21, 2010 at 12:06 PM
hi, sir i am doing student details project in swing but i am not getting current date in jtextfield in date it is giving ambigious error2. i am giving fileno as 18000 in jtextfield when i click save button it should be increment to 18001 but i cantplease help me and send answer... View Questions/Answers

About Object cloning.  March 21, 2010 at 8:43 AM
what is Object cloning? can u explain with example? ... View Questions/Answers

mouse event  March 20, 2010 at 11:28 PM
import javax.swing.*;import java.awr.*;import java.awt.event.*;public class MouseEventt extends JFrame{ JButton btnClose=new JButton("Close"); public MouseEventt() { Container c=getContentPane(); setLayout(new... View Questions/Answers

java  March 20, 2010 at 10:03 PM
how can i validate textfield in swing? ... View Questions/Answers

Alphabetical order  March 20, 2010 at 7:23 PM
Hi..I've a swings application about adding a record into a file and displaying it in text area.It contains the fields... ID, name, age notesIts working well to display the files in text area when i clicked the view buttonNow i want to display the files in alphabetical o... View Questions/Answers

C program  March 20, 2010 at 6:54 PM
Write a C program for airport simulation using queue data structures.Please reply me. ... View Questions/Answers

How to Generate Reports in Java  March 20, 2010 at 3:45 PM
How to Display and Generate Reports in Java?Give Me Full Sample Code ... View Questions/Answers

How to Create Animated Main Menu Application with Java Swnig Buttons  March 20, 2010 at 3:43 PM
Hello sir I want to display Main Menu after Log in i have created Log in Formbut I want More attractive Animated Main Menu which includes Following JButtons1)NEW ADMISSION2)COURSE DETAILS3)FACULTY DETAILS4)REPORTS5)VISIT US(WEBSITE LINK)6)HELP ... View Questions/Answers

Open InternetExplorer Webpage with Java  March 20, 2010 at 3:37 PM
Hello Sir I want to Open my webpage from swing application when I Click On "VISIT US" Boutton then website will be displayHow I can Create it on Button Click. ... View Questions/Answers

Connect J ComboBox with Databse  March 20, 2010 at 2:16 PM
Hello Sir I want To Connect MS Access Database with JComboBox ,when I Select any Item from Jcombobox Related Records will Display in to JTextBox egwhen i select MBA then fees ,Duration ,course type will automatically display on the Form.plz Help Me Sir ... View Questions/Answers

jsp  March 20, 2010 at 1:10 PM
Hi!,Greetings...I got a small problem....<Index>- <FolderName> <a href="Higher_Education">Higher Education</a> <a href="Higher_Education">Higher Education</a> <a href="Higher_Ed... View Questions/Answers

java  March 20, 2010 at 12:43 PM
Q>: Why two folders get installed during installation of JDK?Wht is the use of two folders? ... View Questions/Answers

java  March 20, 2010 at 12:35 PM
Q1>:what could company except from java fresher?Q2>:plz tell the basic questions asked for fresher during interview? ... View Questions/Answers

need a Sample code  March 20, 2010 at 11:45 AM
i want run the python script in java code by using Runtime class and output should be formed like XML format.please help me.Advanced Thanks,Krishna ... View Questions/Answers

How to Connect J ComboBox with Databse  March 20, 2010 at 10:56 AM
How to Connect J ComboBox with Databse ... View Questions/Answers

How to save Selected text of RadioButton in to Access Databse  March 20, 2010 at 10:50 AM
Sir I wnt To store Selected JRadioButton Text in to access Databaseplz Help Me Sir.and how to link website in to our Java Application with JRadioButton. ... View Questions/Answers

Java Error In comapitable Type in statement  March 20, 2010 at 10:48 AM
Here I want to Check wheter entered id is already Exists in Database or Notwith Access Database,Plz Help Me Sirimport java.io.*;import java.awt.*;import javax.swing.*;import java.awt.event.*;import java.sql.*;import java.util.*;class faculty3... View Questions/Answers

Date  March 20, 2010 at 6:18 AM
siri have one JSpinner and a textfield that will display the current month and year next to that there is another a Textfield for Date and Jspinner for Month and Textfield for Year my problem is1.the specified date,year,month should not be less than current.2.i w... View Questions/Answers

java problem  March 19, 2010 at 10:16 PM
a) Binary numbers is important in computers. Binary number system uses only two digits, 0and 1. There are pre-defined methods available in Java that will allow us to convert fromdenary integer (base 10) to binary integer (base 2). The method is:Integer.toBinaryString(int)So t... View Questions/Answers

loop error  March 19, 2010 at 9:59 PM
Expert:ARIJEETsory....dude....it's not my perfect solution...i give the code...just like...<?phpinclude("../db_connect/connect.php");$sql7="select * from `user_details` where `session_id`!=''";$r7=mysql_query($sql7);w... View Questions/Answers

php  March 19, 2010 at 9:54 PM
sory....dude....it's not my perfect solution...i give the code...just like...<?phpinclude("../db_connect/connect.php");$sql7="select * from `user_details` where `session_id`!=''";$r7=mysql_query($sql7);while($row7=mysql_fet... View Questions/Answers

jsp  March 19, 2010 at 5:56 PM
Sir,I want to load one html page in another html page.... for ex:the content of one html page should be called in all html pages..Please help me in this regard. ... View Questions/Answers

array  March 19, 2010 at 3:27 PM
how to determine both the diagonals of a 2-d array?How to find out the special matrix in case if maximum number of the row is minimum number column? ... View Questions/Answers

JComboBox with AccessDatabase  March 19, 2010 at 2:59 PM
Hello Sir I have Created Course(CourseId,CourseName,Fees,Duration,Type) form then I want To Display Course Details on Student Admission Form when I select Course Name from JComboBox on Student Admission Form ,that Time I will Get The Course Details Automatically on Student Admission Form... View Questions/Answers

java  March 19, 2010 at 2:53 PM
what will be the code for handling button event in swing? ... View Questions/Answers

java  March 19, 2010 at 2:34 PM
Note. I am from philippines and our currency is peso ... View Questions/Answers

java  March 19, 2010 at 2:32 PM
Thank you for acknowledging my problem. I need java source code on the problem I've post, I am actually using a JFrame component for my cashdispenser.java and I don't know how build a source code on my problem. The flow is just like this Enter a... View Questions/Answers

java  March 19, 2010 at 2:14 PM
what is jacket arrry? ... View Questions/Answers

tree  March 19, 2010 at 1:56 PM
example of tree java program ... View Questions/Answers

java  March 19, 2010 at 1:52 PM
i want java studio creator for building jsf projrct in windows platform pleaase tell me a way...???? ... View Questions/Answers

combox value are not show in a JSP  March 19, 2010 at 1:27 PM
i have a combo box in a JSP after submit it does not show its value in logic.jspHome.jsp:<html><body><select name='from_year'><% for(int i=2010;i>2000;i--){out.println("<option value="+i+">"... View Questions/Answers

Java Project Questions  March 19, 2010 at 12:58 PM
Hello sir ,I want Course Form in JAVA SWING that includes following contents-1)Course Id -Numeric2)Course NAME-TEXT3)Course Duration-NUMBERS4)Course Fees-NUMBERSI want to to add,Update,Delete Course Details into to Access Database,and then this course table connected wi... View Questions/Answers

Location Api  March 19, 2010 at 12:21 PM
I am using following code to get coordinates of location in gps.On emulator in netbeans it shows me output as 2.0 2.0but on real mobile it doesrnt give me any help:package com.tutorial;import javax.microedition.location.*;import javax.microedition.lcd... View Questions/Answers

Check Whether Record is already Exists or Not with Database Connectivity  March 19, 2010 at 12:09 PM
Hello Sir I want Program to Check Whether ID is Already exists in the database with Swing Application ,if It is Already Exists then I want To ShowMsgBox else that will Store in Database.plz Help Me Sir ... View Questions/Answers

DMCA.com