36,051 Topics

Member Avatar for
Member Avatar for MxDev

hi guys, I've simple question is what happen as general when setup is running i mean what and why the program setup store some settings in registry or hard drive instead of running without setup, i see some applications could run without setup just click and run. i hope someone …

Member Avatar for lookof2day
0
106
Member Avatar for ajcornwell

I am stuck again, I was able to complete last week's assignment without having to post, just so you guys don't think I'm a lost cause! :) I need to allow the user to input loan amount, term, and interest rate before calculating the monthly payment and showing the table. …

Member Avatar for Ezzaral
0
131
Member Avatar for Icetigris

This compiles, runs fine, and generally works, except for one thing. The contains() method doesn't work properly. For some reason table.contains(key) isn't returning the right value, which is thereby messing up the insert() method. [code=java] public class HashtableDictionary implements StringDictionaryAlgorithm { static final boolean debug = false; Hashtable table = …

0
61
Member Avatar for vishalkhialani

Hello, I am about to start a project for my company where I am going to make a module for the production planning of our factory. Currently we are using excel to do this job which creates a lot of problems. Please see the attached picture of the excel file. …

Member Avatar for vishalkhialani
0
82
Member Avatar for vladdy19

Can any one give me any troubleshoot tips to get my applet to at least show up? It seems like I have most of the things right I'm sure the error is something small.

Member Avatar for peter_budo
0
65
Member Avatar for genocide
Member Avatar for schoolsoluction
0
117
Member Avatar for fishguts

I am working on a java assignment for my cs 111 class and I keep getting an missing return statement error, and have tried to determine the error but cannot locate it. I am sure that I have the right set of curly braces. My code is shown below. If …

Member Avatar for fishguts
0
96
Member Avatar for sportymon1

Hi I use Windows XP SP2 and both IE6 and Firefox will not open javascript links. If I click on the link nothing happens. On one site its javascript.popwin(...) and I click on it but again nothing happens. I've tried disabling pop-up blockers, installing latest version of MS scripting, updating …

0
48
Member Avatar for kedarkhedkar

Hi, I am developing online examination in servlets/jsp. the problem with I stucked with is how to show user a timer. the jsp page which showing current question to user should show time remaining & that time should be continuously decreasing by 1 sec. One approch is to use applet …

Member Avatar for ~s.o.s~
0
147
Member Avatar for Caled

Hello all, is there a way to cancel or abort the execution of current actionPerformed? My problem is that, when the control is passed to the listener method, i perform checking if certain value is null, if so, display Error Msg using JOP. when user click OK, then the actionPerformed …

Member Avatar for Caled
0
1K
Member Avatar for apontutul

There is no operator overloading in JAVA, but operator + is used as arithmetic addition and concatination operator. why ? please clarify this

Member Avatar for Ezzaral
0
75
Member Avatar for pulkitmalhotra

Please tell me how to transfer values from one method to another wherein the second method is trying to access the value from the first method and the second method takes in parameter from some other method.

Member Avatar for orko
0
128
Member Avatar for piers

I am trying to teach myself java and I have a book but it doesnt have how to parse an int into a string. So are there any ways of either doing this or getting round it so I can display my answer? I put in bold the place where …

Member Avatar for piers
0
115
Member Avatar for Caled

Hello people, How can i display the JLabel text using external file.. When user click a button, a file is read and retrieve and will be displayed at the label.. what I did was: 1) Declare all the necessary file IO 2) use the useDelimiter() method to read the file …

Member Avatar for Caled
0
1K
Member Avatar for gr8fubar420

im trying to convert the int input into a string so that i can find the length of it and use the substring method. how may i go about this? [CODE]import java.util.Scanner; public class OddEvenZero { public static void main(String[] args) { int input = 0; int len = 0; …

Member Avatar for Ramy Mahrous
0
352
Member Avatar for KimJack

Hello All, I would like to create a Student class as follows: class Student { String name; int age; int studentNum; String instructor; } My question is how would I read information from a text file into an array of class Students? The file is as follows: Sue Jones, 19, …

Member Avatar for Ezzaral
0
92
Member Avatar for Khishin

I'm not sure if my title adequately explains what I want to do, so I'll provide a scenario. I have two classes in a folder, one named UserInterface.class and another named HelloWorld.class, and the contents are as follows: [code=java] import java.util.Scanner; public class UserInterface { public static void main(String[] args) …

Member Avatar for Khishin
0
150
Member Avatar for ceyesuma

Can someone show me a simple program that will display how to extend and use super?

Member Avatar for no1zson
0
116
Member Avatar for nwad

I want to implement Dijkstra algorithm for shortest paths in Java, can anyone please help me with the code.

Member Avatar for jwenting
0
83
Member Avatar for vinod_javas

What is mean by precasting in java can any one give me simple example please...

Member Avatar for Ezzaral
0
114
Member Avatar for jjt

I am totally new to java, but i understand java is the appropriate for my project. i am not sure where to start? and how to use the java packages. I know programming but JAVA is my first time approach. Can any one guide me on the visualization java tools? …

Member Avatar for jjt
0
194
Member Avatar for tinamary

can anyone give me an explanation about static class in java Thank u

Member Avatar for tinamary
0
127
Member Avatar for SpaceDog

Hi there First off I don't want you guys to tell me the answer that way I learn nothing., but if you could give me a pointer to what I am doing wrong it would help alot cheers :D What I am trying to do is get a dice to …

Member Avatar for SpaceDog
0
196
Member Avatar for militant880

hi all! i'm having difficulties with arrays in java. i've got a few questions that i'm kind of stuck on and their really bugging me! i'm new to java so if anyone can help with the following questions, i'd REALY appreciate it!!!! 1) Write a loop that creates an integer …

Member Avatar for no1zson
0
166
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
142
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
183
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
149
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
132
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
196
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
275
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
66
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
63
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
112
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
200
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
188
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
78
Member Avatar for maheshmohan

explain me about programming in exception handling and threading and synchronization

Member Avatar for orko
0
103
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
590
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
175
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
76
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
111
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
722
Member Avatar for sathya_k_83

i am developing a project using jsp & servlet. i want create a xml from result set using document builder but when the servlet is executed it displays the Http Status 500 error tell me what to do . where to place that xml file is there other for writing …

Member Avatar for lookof2day
0
108
Member Avatar for vijiruba

Hi, I am trying to populate the JSP page content into Excel file. I am able to get this. But i have problem while trying to populate the string ("1/0") in Excel. This string is taken as date format in excel. But i want to display "1/0" as such. Any …

0
48
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
95
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
255
Member Avatar for apontutul

suppose there's a bean file (.java) consisting of SQL query, and a servlet (.java) used to show an image, and lastly a jsp page when clicked shows the image.............can you please explain how does this function,how the logic flows,what happens step by step.......... I really need to understand this, thankz.

Member Avatar for jwenting
0
89
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
113
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
166
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
268

The End.