35,618 Topics

Member Avatar for
Member Avatar for ticktock

Hey all I am currently a java beginner and I would like to ask how would I return control to my main if ever I encounter an exception created by me? For example: [CODE]public void checkIn(int roomNumber, String occupantName, int day) throws ExceptionHandler { int checkValue = this.employingHotel.checkIn(roomNumber, occupantName, day); …

Member Avatar for ticktock
0
196
Member Avatar for Khodz

I've been writing a piece of code that will use a brute force approach to find 50 exponential equations that fit 5 points (x,y) that i've entered. The code is fine and works without a glitch.. The problem is when i try to make it keep a record of the …

0
109
Member Avatar for nikita.chandra

Hi all, I am trying to send email using a java class and gmail mail server given below is the code for this but its not working UnknownHostException found.I have replaced all the email addresses with actual email addresses. [CODE] import javax.mail.*; import javax.mail.internet.*; import java.util.*; public class Mail { …

0
84
Member Avatar for riahc3

Hey Im having a hard trouble drawing in a Java window so if there is a plugin that shows the coordinates in a Java window when I hover my mouse over that spot it would make my coordinate easier.

Member Avatar for adams161
0
186
Member Avatar for dusty_tomorrow

I really need help with a project that I have to write for my intro to Java programming class. I have absolutely no idea what to do or how to do it. I would appreciate any help or starts on the code or maybe, just maybe, a code for this …

Member Avatar for griswolf
0
135
Member Avatar for ShadoX

Hello all, I need to make a PdfPTable with some cells being split or merged into one. The problem is that I can't seem to find a way of doing that. Could someone please help me with this? I spent the last hour on Google and couldn't find anything.. :( …

0
36
Member Avatar for infinitus

Hello i'm having a problem with a program. Let me tell you first what program should do. The program should allow the tutor to enter in the various marks which the students have been awarded, until the tutor enters in a mark exceeding 100. At this point the program should …

Member Avatar for jon.kiparsky
0
449
Member Avatar for McCurry0x77

In an assignment, I have to use four different files in a single program. I know doing so has something to do with inheritance (which we're studying now), but I don't understand how to write each file to use the others. How do I use multiple files in this single …

Member Avatar for hanvyj
0
3K
Member Avatar for sweety_sharma

hello..everyone i m new to this website .i need your advice for project topic.. as i m begineer in java.. plz suggest some gud topics.. waiting for your reply... plz help me....

Member Avatar for masijade
-2
176
Member Avatar for NightFire91

Having problems with completing this code to a working program and running it. What is the final value of sum? What is the value of i when the loop terminates? [CODE]public class SumLargestToSmallest { int n = 2147483647; float old_sum = (float) 0.0; float sum = (float) 1.0; // already …

Member Avatar for NightFire91
0
87
Member Avatar for Him3

Hi all, I want to grab frames from video. (I want multiple frames from a video) using Java. I have tried with the code that is there on sun site. but it doesn't work(as it is for grabbing frames from web cam). If any body knows then reply asap. Thanks …

Member Avatar for peter_budo
0
123
Member Avatar for Ron2794

I am having a project that I have written in Java and now I want to convert that into .exe file so that it can be run on any windows platform. My project is a database connectivity project and I have used Mysql as the backend application I want that …

Member Avatar for peter_budo
0
111
Member Avatar for Girishchethan

Hi Friends, I am new user to this site, and i have problem in java.. please solve this problem. Query: 1.how to move a pointer in the circle using java swings

0
49
Member Avatar for tylerjgarland

[B]This is a homework question[/B] I am attempting to write a hash function that will evenly distribute 20 randomly selected census name into 20 buckets. I may have up to three collisions of two each. [CODE] public int hashCode(Contact c) { // TODO Auto-generated method stub int result = 0; …

Member Avatar for mrnutty
-1
274
Member Avatar for hamste

Hi all! I'm new to Daniweb and to programming. I'm learning Java with the book Java how to program 7th edition. I'm stuck at an exercise where I'm supposed to create three objects that each inputs an hourly rate, number of hours, and a name for the employee given by …

Member Avatar for jon.kiparsky
0
209
Member Avatar for rowen17

these are the classes that i am going to add to my jar file: TestRegform, LogIn, LogIn$AccountInfo, and regForm. I have manifest.txt that contains: Main-Class: TestRegform (new line) then I typed this in the command line: D:\Project>jar cvfm Registration.jar manifest.txt *.class then, these came out: added manifest adding: LogIn$AccountInfo.class(in = …

0
228
Member Avatar for curbster

Hi all, I am in my first Java class at the local community college but my class is online and my teacher takes DAYS to respond via email. I need some help with my homework and thought I would try here. I'm not looking for someone to give me the …

Member Avatar for curbster
0
889
Member Avatar for phantomD

Hi, first post on the site and I hope I'll explain this properly: I'm tasked with creating a TicTacToe Applet using a JButton array. What I can't figure out is the problem I'm having with either setText or getSource (last bit of code). Can someone point out what I've done …

Member Avatar for phantomD
0
246
Member Avatar for jjemphoung

Good day! I'm a newbie in java and I'm using Netbeans 6.9.1 as my IDE. I want to connect the system that I'm developing to the MySQL 5.0 database in the WAMP installed in my computer. I already configured my MySQL by following several steps I found in netbeans.org tutorial. …

Member Avatar for datavirtue
0
173
Member Avatar for aanders5

Ok, so first off this code is insanely messy and very very long. So if anyone has any ideas on how I can reduce all the variables and make it just run nicer that would be nice. I have been trying many different types of layouts and saving forms and …

Member Avatar for aanders5
0
216
Member Avatar for IBANGS

Hi all, please which of the tag libraries, can i used in creating rich table which will display column header, accept data from the user,add new row, delete row and store data in the appropriate database in jsp. thank you

0
50
Member Avatar for bangor_boy

Hi, I have write a method to save amounts, the method has 1 argument which is where the amounts returned by a toString should be saved as text. I have no idea what to do and my searching on google or text books has been not helpful :( [CODE]public void …

Member Avatar for jon.kiparsky
0
128
Member Avatar for mikev9359

I am trying to change a program from an IF loop to a WHILE loop. The program started in Ch.05. It was modified in Ch.06 to an IF loop & now must be changed to a WHILE. I got it down to 2 errors and am totally lost. Maybe a …

Member Avatar for jon.kiparsky
0
175
Member Avatar for iammet

I NEED TO KNOW HOW TO GET THE CHOSEN RADIO BUTTON.MAYBE THE COUNTERPART OF getText FOR RADIO BUTTON... I HAVE ONLY MALE AND FEMALE.

Member Avatar for ajst
0
354
Member Avatar for gedas

hey guys, i have been asked to create a little web service. i have a very little understanding of how web services work but as far as im told is that all of my GUI has to be on client side and the logic of the program needs to be …

Member Avatar for gedas
0
108
Member Avatar for skylight25

Hi all, my problem is that i want to block my main frame when i call a JDialog! i try several things but cant! I use this to call the JDialog [CODE]public void showAboutBox() { if (info == null) { info = new Informacion(this);//call my jDialog info.setLocationRelativeTo(this); } info.setVisible(true); }[/CODE] …

Member Avatar for Dean_Grobler
0
196
Member Avatar for anithajerome
Member Avatar for peter_budo
0
64
Member Avatar for DARK_BYTE

Hi I have to develop an algorithm visualization tool for my project. I divided my tool into these 4 modules below: [QUOTE]The tool will be divided into 4 modules: -The GUI -The Visualisation module -The Calculate module -The Compile module The GUI the GUI class is the class that forms …

Member Avatar for JamesCherrill
0
380
Member Avatar for sejpal.dipesh

Hi, I have web application which is hosted on apache and develop in java, now how can I access that application running on the server from other client in the LAN. Please help me. Thank You.

0
34
Member Avatar for ellenski

Hi, We were asked to make a subscription type of form. Details needed are username, password, first name, last name, etc. My problem has something to do with the password validation. when i feel in the password field and the re-type password field, both of them should be checked. If …

Member Avatar for ellenski
0
7K

The End.