32,199 Topics

Member Avatar for
Member Avatar for java_starter

I am having trouble calculating the discount rate in java, I have the formula and equation but cannot figure out, what the problem. and my program would compile and work but would display the wrong amt of discount. here the a part of the program.. [code] public void setDiscountRate(double discountRateBeforeTaxes) …

Member Avatar for jwenting
0
139
Member Avatar for claudiu_is

Hy, I have a JFrame main window and a Dialog window, how can i use the method [I]setPositionRelativeTo()[/I] so that my Dialog window positions centered on the main window ? Thanks

Member Avatar for claudiu_is
0
180
Member Avatar for sakura_fujin

Hi. I'm new with Java's GUI Components and I'm having a hard time with my program design right now. My program deals with manipulating database elements (i.e. fields and records) and I'm stuck with asking the user to add a new record into the database. My program originally works in …

Member Avatar for Ezzaral
0
145
Member Avatar for degamer106

Hi, I need help with drawing an ellipse that is bounded by the window it is drawn in. I have to use the Ellipse2D API. Maybe I'm overlooking something but I can't seem to get the circle to fit the window. This is what i have so far: [CODE]import java.awt.Color; …

Member Avatar for Ezzaral
0
131
Member Avatar for sakura_fujin

******I need help with my project. Here's the specs********** CS123 MP2 Database Table 1. On Load of the program it will read all files and put its data to the memory. a. Data file - this must be in CVS (Comma Separated Values). The first line is a header that …

Member Avatar for sakura_fujin
0
193
Member Avatar for arkaprava

I want to upload an Image into a Jpanel .. Actually I want to do the following: 1.Thw User Clicks a jButton 2. A window will be opened by which he/she can choice a image 3. The selected image will be positioned into the Jframe provide me some tutorials or …

Member Avatar for masijade
0
214
Member Avatar for anousha

hi ive to implement a priority queue with 3 queues in java. its function are insert,delete,reset,search and display but i dont understand i know i have to use vectors to do it since it is easier.the 3 queues should be created in main? or in the constructor of the queue …

Member Avatar for masijade
0
62
Member Avatar for kpssivam

Hello all, how to remove a selected row in Java swing(JTable). If any one knows this please help me...

Member Avatar for jwenting
0
61
Member Avatar for BABSYOMMY

I need to a have a CHAT WINDOW in my business website. Please how can I achieve this?

Member Avatar for ~s.o.s~
0
109
Member Avatar for onsir

hi all, how to detect program is running in my computer. etc: i have open my program application name is myProgApp, in computer jhon, so if i open again the program that in computer jhon will show message 'file already open' . thanks, for your help.

Member Avatar for ~s.o.s~
0
198
Member Avatar for alsoumhi

How are you guys, I need your help in java could someone know how to change from character to string what I mean is that let's say I have a variable x with char type and it has a value a. so how I can change that value (a) from …

Member Avatar for eranga262154
0
184
Member Avatar for ixenocidei

hi, 've been working on a game that worked over the internet using Sockets, but the program doesn't seem to work with Servers behind routers, is there any way around this? I tried using the router's IP with port forwarding but it didn't quite work. Any tips are appreciated.

Member Avatar for ixenocidei
0
74
Member Avatar for maheshmohan

explain me about programming in exception handling and threading and synchronization

Member Avatar for orko
0
100
Member Avatar for alapick

I’m working on a project that includes comparing XML files and I need a source code on Java to compare XML fragments. I’m using ExamXML from [url]http://www.a7soft.com[/url] to compare XML files but I need the Java source code.

Member Avatar for orko
0
570
Member Avatar for jjt

I was wondering is there any algorithm, method, concept, idea for "Reverse Calculation"? Basically I provide an output/Answer , and 1 or more inputs, then it will result the math formula/pattern. For example 1: I provide, Dynamic Output: 30; I provide, Dynamic Input Value A: 2 I provide, Dynamic Input …

Member Avatar for iamthwee
0
171
Member Avatar for kaarthikvr

hi i m going to start a new project centre for that i need java latest project titles for develop any body have means kindly help me.

Member Avatar for orko
0
75
Member Avatar for aruna_k_2006

hi ,i want to print e.printStackTrace in File using log 4j but its giving error ........ these r my files web1.xml [COLOR=green]<[/COLOR][COLOR=green]context-param[/COLOR][COLOR=green]>[/COLOR] [COLOR=green]<[/COLOR][COLOR=green]param-name[/COLOR][COLOR=green]>[/COLOR]driverName[COLOR=green]</[/COLOR][COLOR=green]param-name[/COLOR][COLOR=green]>[/COLOR] [COLOR=green]<[/COLOR][COLOR=green]param-value[/COLOR][COLOR=green]>[/COLOR]com.microsoft.jdbc.sqlserver.SQLServerDriver[COLOR=green]</[/COLOR][COLOR=green]param-value[/COLOR][COLOR=green]>[/COLOR] [COLOR=green]</[/COLOR][COLOR=green]context-param[/COLOR][COLOR=green]>[/COLOR] [COLOR=green]<[/COLOR][COLOR=green]context-param[/COLOR][COLOR=green]>[/COLOR] [COLOR=green]<[/COLOR][COLOR=green]param-name[/COLOR][COLOR=green]>[/COLOR]log4j1[COLOR=green]</[/COLOR][COLOR=green]param-name[/COLOR][COLOR=green]>[/COLOR] [COLOR=green]<[/COLOR][COLOR=green]param-value[/COLOR][COLOR=green]>[/COLOR]WEB-INF/classes/log4j.properties[COLOR=green]</[/COLOR][COLOR=green]param-value[/COLOR][COLOR=green]>[/COLOR] [COLOR=green]</[/COLOR][COLOR=green]context-param[/COLOR][COLOR=green]>[/COLOR] MyListener.java [B][COLOR=green]public[/COLOR][/B][B][COLOR=green]class[/COLOR][/B][COLOR=green] MyListener [/COLOR][B][COLOR=green]implements[/COLOR][/B][COLOR=green] ServletContextListener{[/COLOR] Connection [COLOR=green]con[/COLOR]; [B][COLOR=green]public[/COLOR][/B] [B][COLOR=green]void[/COLOR][/B] contextInitialized(ServletContextEvent sce) { [B][COLOR=green]try[/COLOR][/B]{ ServletContext sctx=sce.getServletContext(); String log1=sctx.getInitParameter([COLOR=green]"log4j1"[/COLOR]); sctx.setAttribute([COLOR=green]"log1"[/COLOR],log1); } [B][COLOR=green]catch[/COLOR][/B][COLOR=green](SQLException e)[/COLOR] …

Member Avatar for orko
0
107
Member Avatar for ivatanako

[code] System.out.println("Enter new name: "); String stdName = input.readLine(); st.executeUpdate("UPDATE Customers SET stud_name='"+stdName+"' WHERE stud_ID='45698'"); [/code] Ok, this is my problem, this command should update\replace the existing column stud_name with a new name. But it wasn't able to replace it. There were no sql errors. Did I miss anything? Or …

Member Avatar for jwenting
0
715
Member Avatar for Catgirl

My inventory program was working until I got to the part where I have to incorporate GUI functionality. I have my code and incorporated some GUI code at type, but unable to get them to work together. My code compiles, runs, but acts as if I never added the GUI …

Member Avatar for peter_budo
0
94
Member Avatar for upstream

currently im studying Java 6, and im using Notepad++ for programming, im just wondering if in this way, i could learn programming with java better than using a full blown IDE? :confused: i have a JCreator but i dont want to use it, cuz i decided to use Notepad++ instead, …

Member Avatar for jasimp
0
254
Member Avatar for ryy705

Hello, I have some questions about how to work with urls in java. Any help would much appreciated. When I execute the following code from my app it executes just fine. But when I move my app to a different directory and change the url accordingly, it fails. original code: …

Member Avatar for ryy705
0
110
Member Avatar for java_starter

[code] public class Customer { private String name; private String address; private double totalPurchase; private double invoiceAmount; public Customer(String name, String address) { this.name = name; this.address = address; totalPurchase = 0.0; invoiceAmount = 0.0; } public String getName() { return name; } public String getAddress() { return address; } …

Member Avatar for jwenting
0
164
Member Avatar for challa.kamal

hay please any body can give me the code how to implement [B]forums [/B]using java

Member Avatar for jwenting
0
267
Member Avatar for ialnima

I have a 2d 9x9 int array as follows 000000000 000000000 000000000 000000000 000000000 000000000 000000000 000000000 000000000 but im trying to extract every box of 3x3 into an array using only a nested for loop, i.e. ---------------- |000|000|000| |000|000|000| |000|000|000| ---------------- |000|000|000| |000|000|000| |000|000|000| ---------------- |000|000|000| |000|000|000| |000|000|000| ---------------- …

Member Avatar for iamthwee
0
79
Member Avatar for mcd200

Hi everyone, I'm running WinXP SP2 on my laptop, and I have the latest versions of Mozilla and IE. Whenever I click on certain links I get java script errors, and the window I'm trying to open never opens. I know that the problem is local to my laptop, and …

0
42
Member Avatar for sarath.koiloth

Hi friends, please help me to solve this. i need to read the elements from xml file.I am using sax api. My xml looks like this :-> <test> <test1>hello1</test1> <test2>hello2</test2> <test3>hello3</test3> </test> In my startElement(...){ elementName.equals("test"){ //I need to get all the elements inside the test element.ie test1,test2,test2.with out going …

Member Avatar for sarath.koiloth
0
111
Member Avatar for saifjob40

can we write link list program in java, if yes then please give some tips so i can write that program

Member Avatar for lookof2day
0
47
Member Avatar for CsE2007

hi , please , i have problem and i need help ......................... in calendar i want to get [U]name of day [/U] from it how ? if user select 21/9/2007 i want to get name of day "friday" to use it in anther funcation :(

Member Avatar for orko
0
88
Member Avatar for KimJack

Hello All, I am trying to parse an ArrayList of Strings into an ArrayList of integers. Does anyone have any opinions on how this should be done? I can parse one element, but parsing the entire string where I am having problems. Any suggestions would be great. Thanks

Member Avatar for KimJack
0
96
Member Avatar for kotigadu
Member Avatar for Ezzaral
0
27

The End.