35,618 Topics

Member Avatar for
Member Avatar for StephNicolaou

I'm trying to show a dialog message if the user clicks a button and a text field is empty. [code=java] Action listener - if(event.getSource() == cmdSaveSettings) if(txtPlayerOneName.getText().equals(emptyText)) { JOptionPane.showMessageDialog(null, "alert", "Please enter player one's name", JOptionPane.ERROR_MESSAGE); } [/code] Ive add an action to listener to the button and the textfield: …

Member Avatar for masijade
0
212
Member Avatar for nireekshan

hello i am nireekshan i have some prouble in database connection send my erres pless see and send Some Code . //...............................// [code=java]import java.sql.*; class Student { public static void main(String args[]) throws Exception { try { import java.sql.*; class Student { public static void main(String args[]) throws Exception { …

Member Avatar for p4u9999
0
372
Member Avatar for Sugarskull

/* DriverBuggy.java Source Name: DriverBuggy.java Date Written: 12/27/06 Written By: Annette Lege Revised By: Purpose: To identify and fix common syntax errors and one logic error in a Java program. */ import java.io.*; public class DriverBuggy { public static void main(String args[]) throws IOException { Buggy app; app = new …

Member Avatar for masijade
0
391
Member Avatar for sivaslieko++

I have installed eclipse and I need to learn JSP as quickly as possible.. I think firstly I need to install JSP plugin for eclipse but I could not find it. Do you have any suggestion for plugins? The syntax of jsp is similar to php or asp.net? or anything …

Member Avatar for peter_budo
0
90
Member Avatar for nireekshan

hello iam nireekshan i have davalep one web application in this every new user login after the submet the server send Back his IDNO AND his states no how plse

Member Avatar for jwenting
0
56
Member Avatar for nikk

Hello friends, I want to display an image in my JSP using expressions (<%=abc%>)tag. But, the problem is that the JSP does not show the image. I store the path retrieved from database (MS SQL) in a "path" variable and then try to display it in JSP using <img> tag. …

Member Avatar for jwenting
0
118
Member Avatar for mehmedovic

Hello i created this and i dont know how to debug it because when ever i create a script the part i hate is teh debuging so can some one please help me out and thank you very much --> [code=javascript] <HTML> <HEAD> <TITLE>JSP Debugging</TITLE> </HEAD> <BODY> <% import java.io.*; …

Member Avatar for jwenting
0
108
Member Avatar for mehmedovic

hello i need to create this thing its for my home work and i have no time to do it because i am taking 6 college classes and when i tried to do it i had no idea so i reread the chapter which it was suppose to be on …

Member Avatar for jasimp
0
156
Member Avatar for StephNicolaou

I have had to repaint a couple of times because of a moving shape I have added to my program whenever the mouse is clicked. I also have a moving shape that follows the mouse over a grid as well which doesn't help a lot, could you please tell me …

Member Avatar for StephNicolaou
0
236
Member Avatar for Teachme

hi all: can anybody help me with the following? i'm developing a bluetooth application using c# which will run on the pc, it searches for bluetooth devices in range and sends a msg to the first one it finds.. i managed to do the searching code and to find devices …

0
57
Member Avatar for Parsu7

Is it necessary to write a corresponding servlet for each JSP page in case of MVC Architecture?

Member Avatar for Parsu7
0
103
Member Avatar for javagurlush

How To Filter Invalid(vulgar) words in JSP? when data was entered to a textbox it must not contain vulgar or bad words.The event is processed before data is saved and posted. Do I need to specify each word or there are some shortcuts for it? Can you give me a …

Member Avatar for peter_budo
0
316
Member Avatar for Alphard

Hi guys!!! I'm a nineteen-year-old student from the Philippines and I'm really new at programming Java. I'm having difficulties how to solve a problem that our professor made. Her restrictions are the following: Assume the following rules of precedence for expressions: Highest is addition (+) then subtraction (-) then multiplication …

0
58
Member Avatar for jimJohnson

I have never posted anything in here for java so if I don'tuse the code tags right I apologize...anyways I compiled an assignment in text pad and have a ton or errors and I was wanting to know if it is something minor or I am really that stupid...thanks Here …

Member Avatar for whoost
0
292
Member Avatar for jimJohnson

Kind of an odd question...I need to get textpad and all semester I have not needed it because I just use the one at our campus computer lab but it is closed today so this is what I did...I downloaded the latest text pad and then went to java.sun.com to …

Member Avatar for jimJohnson
0
95
Member Avatar for marcosjp

Hi there! I'm new to Java and just arrived at this forum. I hope I can get some help here - getting a little desperate. Well, I have to develop a small game in Java and in this game the user must be able to click on different spots on …

Member Avatar for marcosjp
0
158
Member Avatar for jcato77

I am having trouble figuring out my code and was hoping someone could point me in the right direction. Below is my code what I need to due is create a method to add and display the value of the entire inventory. I have what I think is the correct …

Member Avatar for jcato77
0
148
Member Avatar for nikk

Hello friends, i've a "editAccount.jsp" page wherein i accept various details from users. And then check their input (Eg. Email field should not be blank)through a function in javascript. But my JSP does not check the input and directly stores the values in database(even if email field is empty) I …

Member Avatar for nikk
0
182
Member Avatar for Geekerz

Hi there, i'm from Malaysia. first of all, i would like to say that I'm quite bigginer in Java programming. However, I had released my own virus based on Java last month. I feel too stupid to release it. So, I need your help to open the door for me …

Member Avatar for StephNicolaou
0
125
Member Avatar for abhi287

HI I m using excel as a database.. In my DB i m having fields name and some value assigned to each name.. Now on my jsp page i m generating an array of names by some processing.. Now what i want is to access the names from the DB …

Member Avatar for javaAddict
0
158
Member Avatar for TofiLuk

I have a code that has a denomination like: Example change is 2,830.50 // Output ** Change ** 1000 - 1.0 <-- how can I make this just 1 but not 1.0 w/o using "int" (double is required). 500 - 1.0 <-- 200 - 1.0 <-- 100 - 1.0 <-- …

Member Avatar for darkagn
0
83
Member Avatar for rogelioz

Hi, I'm trying to save some data taken from a ISO-8859-1 encoded page into a SQL SERVER 2005. The problem I have is that when I retrieve the information and put it in a XML there are characters missing. I'm using the URLEncoder.encode method to escape the "bad" characters from …

Member Avatar for rogelioz
0
116
Member Avatar for tnagarjun

Hi every body, we have a JAVA web application to issued bus tickets throw Internet or Point to point connect to out data center.can any body help me to find the system info of client like Mac address, ipaddress or any othere unique information of client machine so that i …

Member Avatar for orko
0
108
Member Avatar for jcato77

I need help with a class project I'm working on, Below is my assignment and the code I have currently created. Assignment: Modify the Inventory Program by creating a subclass of the product class that uses one additional unique feature of the product you chose (for the DVDs subclass, you …

Member Avatar for VernonDozier
0
134
Member Avatar for jeffburns75

Hello all. I have am currently working on a assignemtn and i am having trouble with calculating the prime number, which the user can enter. I am also having trouble with returing to the begining of the code if the user does not select one of the options available to …

Member Avatar for VernonDozier
0
78
Member Avatar for venomlash

Does anyone know how to draw an image or play a sound from file? I imagine there is (are) a library (libraries), but I can't find them...

Member Avatar for jasimp
0
101
Member Avatar for shweta797

Hi I have a problem in upload file using jsp.At localhost it is working file but at server when client upload a word document it is corrupted .A text file is uploaded successfully. Please Help

Member Avatar for ~s.o.s~
0
130
Member Avatar for Venks

Hai, Iam using swing application for my project, i want to restrict by pressing windows key ant alt+tab key press , how to restrict?please help me..

0
69
Member Avatar for nireekshan

hi i want to use database MS-Access, how to connect the jsp to Ms-access, plse send code

Member Avatar for ~s.o.s~
0
127
Member Avatar for ank_arsenal
Member Avatar for darkagn
0
95

The End.