36,051 Topics

Member Avatar for
Member Avatar for bjeff71

I am having problems with my program. I am altering it to show the GUI which should display the information one product at a time, including the item number, the name of the product, the number of units in stock, the price of each unit, the value of the inventory …

Member Avatar for jwenting
0
112
Member Avatar for twilightwolf90

I am creating a properties JFrame for use in my GUI, and I wanted to save all of the data inputted into the frame into a file called config.properties. The Poperties class already has several convienent methods to save, load, and get properties, but it stores all the data in …

Member Avatar for twilightwolf90
0
185
Member Avatar for ceyesuma

For some reason I deleted a sample database that was in the netbeans tutorial. Of course now I need it and I don't where to get it( I tried the google,and will try again) but does anyone know how to obtain the script? Thanks -Steve

Member Avatar for ceyesuma
0
97
Member Avatar for darklich13

Can somebody please help my try to understand how to add an equals method to my Person, Purchase, and Customer class? I am very new to Java and I can't figure out how to call the equals test from main and have it reference to the other classes. Any help …

Member Avatar for Ezzaral
0
390
Member Avatar for nelson13

Can some one help me??? I'm doing a basic Java course and need help with this code I'm trying to get this line to work but keep coming back with a "'.class' expected" I have tried different combinations but nothing is working for me. public void paintComponent (Graphics page) { …

Member Avatar for nelson13
0
683
Member Avatar for CelestialDog

Hi guys, i'm in the process of learning Java and so far i'm really enjoying it. However i've hit a small problem. I have two seperate classes, one class creates the swing user interface and the other handles the connection to an irc server. Here is the User interface class: …

Member Avatar for CelestialDog
0
178
Member Avatar for mayur sahay

hi.,.. i am working on aproject which codes a image into acompressed format and then sends it over a network an decodes it at the client side.. The coding technique i have to use is RADON TRANSFORM. now i f any one can help me with this problem please do …

Member Avatar for mayur sahay
0
78
Member Avatar for mayur sahay

hi everyone In a image processing software i have to convert a matrix of pixel values 2D.into the image .can any one help me out with this..this part has been the most frustrating part of my project ...

Member Avatar for masijade
0
90
Member Avatar for ramp12

I am trying to write a piece of code that will search an existing array of usernames and see if the name entered by a user (which will be in a prompt box) is in that array of user names and if so then ask them for their password. I'm …

Member Avatar for javaAddict
0
97
Member Avatar for luxmi_gee

hi i created a custom tag for database connections,sql... but doesn't work. can any one help me to solve that or any one know how to create customtag for db means plz help me. if u have coding for that plz send that. codings: 1.tag handler program (db.java) [code=Java]import java.io.IOException; …

Member Avatar for luxmi_gee
0
153
Member Avatar for Visualogic

sorry for annoying, i am quite stupid in it. [code]<html> <head> <title>Welcome to the online Auction...</title></head> <body> <% try { String strUsername = request.getParameter("username"); String strPassword = request.getParameter("password"); Class.forName ("mysql-connector-java-5.0.8-bin"); Connection myConn = DriverManager.getConnection("jdbc:mysql://localhost/user.jsp,admin,admin"); Statement myStatement = myConn.createStatement (); String strSQL = "SELECT UserName,UserPwd from user where UserName="",UserPwd=""; ResultSet myResult …

Member Avatar for Visualogic
0
198
Member Avatar for scorpionz

Hi This is Scorpionz... Is there anyone have any idea ...Regarding Work Flow System in Java Web Application.... Any Response Will be highly appreciated with great Thanks Regards ScorpionZ

Member Avatar for scorpionz
0
157
Member Avatar for kimbostun

i want Use the 2 text files boynames.txt and girlnames.txt Prompt the user for boy or girl and then for a letter from the alphabet. Open either boynames.txt or girlnames.txt and read each line in – when the name starts with the letter that the user specified then write the …

Member Avatar for Compton11
0
177
Member Avatar for TheWhite

Hi again. I'm trying to get Java to recognize the action of pressing both mouse buttons in the same time. I did some research and I found that Event.getModifiersEx() can help me do what I want, but I can't figure out how to implement it the correct way. Event.BUTTON1_DOWN_MASK is …

Member Avatar for Ezzaral
0
391
Member Avatar for TheWhite

Hi again. I'm trying to recreate the digital timer in Minesweeper: Top right ----- [url]http://www.uberreview.com/wp-content/uploads/506x363-minesweeper.jpg[/url] 000 -> 002 -> ... -> 009 -> 010 -> etc... I couldn't think of an easier way to do it except to create an Icon for each number and match it to it's corresponding …

Member Avatar for TheWhite
0
100
Member Avatar for emmy128

Hi, I am using adobe acrobat 8, and im trying to get a text box on page 2 to be automatically filled with the same value that's selected from a combo box on page 1. How can i program this? I am new to Java, and i need help with …

Member Avatar for peter_budo
0
113
Member Avatar for a_iyer20

Hello, I have a requirement to fetch data from a database and store into another database. More explanation goes as follows: I have a web application deployed on an application server. The JDBC connection fetches data from a oracle database. Now I have a need to fetch data from a …

Member Avatar for jwenting
0
104
Member Avatar for NycNessyness

Currently having a problem with adding data so that if someone selects something like an add button, it keeps adding the data, like a person's name, age and grade. Then when they select Enter, all the data they added will display in a data file. The problem I'm having is …

Member Avatar for NycNessyness
0
159
Member Avatar for wujianwei
Member Avatar for peter_budo
0
88
Member Avatar for venomlash

Like the title sez, does anyone know a good way to take an Image and convert it into a BufferedImage???

Member Avatar for peter_budo
0
98
Member Avatar for smmustakim

Hi! everybody. Unable to get the correct fourier image of a simple sinusoid image. The java code is mentioned below. Appreciate help. Thankx. void freq_spect(){ double F[][][]; double FX[][]; double f_r[]; double f_r1[]; double NNN[][]; double Four[][]; int fxy[][]; int wd=new_img.getWidth(); int ht=new_img.getHeight(); F=new double[wd][ht][2]; Four=new double[wd][ht]; FX=new double[wd][2]; f_r=new …

0
49
Member Avatar for javaAddict

I will briefly explain my problem: I have a while-loop and inside I call some methods. Inside one of the methods I have this error: java.lang.[B]NoClassDefFoundError[/B], which is been caught and the while continues. The problem is that a few seconds later as the while keeps running the same method …

0
82
Member Avatar for mareia

halleo can you help me to solve this question befor next monday thank you very much

Member Avatar for peter_budo
0
25
Member Avatar for nschessnerd

i basically have a long array i want to copy to another array object. does this copy by refrence? i know java doesnt do refrences but i read somewhere it would pass by refrence. [code='java'] char[][][] data=new char[numFiles][][],data1=new char[numFiles][][]; for (int i = 0; i < numFiles; i++) { data[i]=split(files[i]); …

Member Avatar for nschessnerd
0
115
Member Avatar for luxmi_gee

hi how to display the content of one jsp page into another jsp page. how to add more than one jsp page in a single page. thanks

Member Avatar for guymanbuddude
0
123
Member Avatar for islam nigm

I'm using the netbeans software to create my web application i have created the custom tag and bean classes after that i should make the jar file to embed it in my web application but i could't create that jar file in any way plz help me to get this …

Member Avatar for mbazs
0
133
Member Avatar for Mr.UNOwen

Hello, I created two classes, one extends JButton and the other extends JPanel. In both cases, both overrides the paint method. Basically I'm extending JPanel so I can place an image as the back ground. The issue I'm having is that every time the button is drawn, if it's drawn …

Member Avatar for Mr.UNOwen
0
254
Member Avatar for shobha1335

When I select one city out of many from dropdownbox and submit it will store in database, when updating the form iam displaying the same values from the database, so how I have to display the selected city in the dropdownbox from the database in jsp. Please help me out …

Member Avatar for ~s.o.s~
0
55
Member Avatar for coolian

Has anyone here managed to integrate NetBeans 4.0 with VSS 6.0? I am only able to see the projects I've added under the "Versioning" tab (in NetBeans), and not from VSS. Also, when I refresh the list, this is the error I keep getting: Command "Refresh" has failed. Execution string: …

Member Avatar for Ezzaral
0
203
Member Avatar for herat_000

hi... i m beginner...and i m having trouble with following code:and the problem is that when i try to input name then it is taking blank...like... i m first asked value of n if i enter 2 then it automaticaly goes to acc type .....not taking name... import java.util.Scanner; class …

0
45
Member Avatar for samarinder

HTTP Status 405 - HTTP method GET is not supported by this URL I m getting this error when i m clicking on logout button here is the code for it............. import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; public class LogoutServlet extends HttpServlet{ public void …

0
80
Member Avatar for Karkalash

Hi: I made a simple game using java and I would like to know if there's anyway that I can make the file an executable so that my little game runs on the command windows so I can share with my friends?

Member Avatar for unitechy
0
75
Member Avatar for cacorat

I keep getting an error where the symbol cannot be resolved and the arrow pointing to where i have written statement.ExcecuteUpdate Am not able to insert any data into my database, can anyone see where i may have gone wrong. thanx heres the code: <%@ page import="java.sql.*" %> <%@ page …

Member Avatar for masijade
0
355
Member Avatar for shweta797

Dear sir In my project i have to show amount of all the months i.e if user enter first due date and expiry date then it calculate the amount of all the months which are between first due date and expiry date in reports. in Jsp how a month can …

Member Avatar for masijade
0
306
Member Avatar for NycNessyness

How can I store variables in an array. With a mixture of strings, variables and information entered in textfields. With what I have below. If I wanted to store numbers, price, total, tax, and name in an array, how can I do it? Thanks in advance. [code=java] String[] numbers = …

Member Avatar for NycNessyness
0
81
Member Avatar for kiran kumar
Member Avatar for abhi287

Hi all, I've two questions- First In the j2me application suppose i've a list with no. of items. To select the item between 1 to 9, i can use 1 to 9 keys on keypad. Is thr any way such that i can select the list items after 9like 12 …

Member Avatar for abhi287
0
156
Member Avatar for Venks

hai, i want to hide task bar from my program, in c# user32.dll was used to hide the taskbar, iam using user32.dll in my program as follows import java.io.*; public class NativeMFCMsg{ static { try { //System.loadLibrary("user32"); System.load("C:\\WINDOWS\\system32\\user32.dll"); // System.out.println("Library user32 Loaded"); }catch(Exception e){ e.printStackTrace(); } } public native static …

0
51
Member Avatar for slayer10

ok im doing a tetris game and i want the piece to move left when i click 'a' and right when i click 'd' and turn clockwise when i click 'w' and turn counterclockwise when i click 's'. heres what i have public class Movement extends JPanel implements KeyListener { …

Member Avatar for Ezzaral
0
200
Member Avatar for BabyEyes

hi , i have a program which i am stock in , its about traffic light . i did the display part but i cant do the timeing and changing the color of the traffic signal . if one signale is green there should be a timer which has time …

Member Avatar for BabyEyes
0
145
Member Avatar for hezfast2

I'm writing a program creating a card game of war. I (think) that I have the majority of it done, but I cannot seem to figure out how to split a deck into two separate hands in a Hand class. My code is in components, I have a Deck, Card, …

Member Avatar for Ezzaral
0
837
Member Avatar for creativehacker

I wrote a program where I should draw some stuff whenever a key is pressed. The drawing is done whenever the key is pressed but can be seen only when i resize the window.. [CODE]public void keyPressed(KeyEvent e) { Graphics2D g2 = image.createGraphics(); if(e.getKeyCode()==37) { System.out.println("left is pressed"); key=LEFT; sp.SnakeMove(key); …

Member Avatar for Ezzaral
0
107
Member Avatar for luxmi_gee

hi how to develop customtag with methods like onload,onclik. can any one help. thanks

Member Avatar for jwenting
0
64
Member Avatar for greatfindsct

Hello everyone! I've worked on this program for about 8 hours so far. I've posted for help in my classroom, and no one has answered. I've passed it in although only one was compiled, but I'm determined to find out why the second did not compile. It's with the infamous …

Member Avatar for Ezzaral
0
98
Member Avatar for 9107you

[code] // The "DTfiveint" class. import java.io.*; public class DTfiveint { public static void main (String[] args) throws IOException { BufferedReader five = new BufferedReader (new FileReader ("five.txt")); int multiply[] = new int [5]; for (int i = 0 ; i < multiply.length ; i++) { multiply [i] = Integer.parseInt …

Member Avatar for 9107you
0
90
Member Avatar for Relegant

[CODE] aClass30_Sub2_Sub1_Sub4_1272.method389(false, true, c / 2 - 90, 0xfff00, "Port:" + port + ((anInt1216 == 3) & (anInt1105 % 40 < 20) ? "" : ""), j); j += 15;[/CODE] That code above, is not changeable, you cant change the port. But this code below is changable, so you can …

Member Avatar for javaAddict
0
85
Member Avatar for nadius

Hello everyone, I realise this may seem like a log winded way of doing it but I need to insert data from a JSP into a database, here is the set up. I have an HTML form, that passes it's data to a JSP. The JSP acts as a bridge …

Member Avatar for ~s.o.s~
0
111
Member Avatar for jrivera

This is more of a logistic question but I'm stuck. This is a homework project where we're asked to create a game. The way I'm doing it is starting of with a "settings" applet. The applet asks for number of players, then "dynamically" creates a row which displays a textbox …

0
69
Member Avatar for suriname0

Hello, I have been self-teaching myself Java for the past few weeks and I would like a little help. Without an instructor or ample code snippets that are readable to me, I've been finding it difficult to know if my coding lacks the polish and efficiency necessary. Here is the …

Member Avatar for suriname0
0
112
Member Avatar for C_E_H

hello I'm new at jsp , I want to use paging to display all of my data base table tecord but I didn't knew how... can any one help my?

Member Avatar for Thirusha
0
52

The End.