31,001 Topics

Member Avatar for
Member Avatar for javaLearner

hi. more or less a stupid question, but anyway.. why have a 'finally' statement in java exception handling -why not just clean up in the 'catch' clause?? is it for when an exception cannot be caught?? if not, then 'finally' seems a little redundant to me.. cheers. :eek:

Member Avatar for javaLearner
0
132
Member Avatar for sunny124

hi, my next button displays next record from the database. But after i save a record, next button don't work. Im not sure but is the next button not working because the resultSet needs to be refreshed after saving a new record? I have created the statement and resultSet in …

Member Avatar for sunny124
0
110
Member Avatar for moon1985

it is my first time ever learning a programming language, and I am still very confused about some things. We are using Jbuilder, and I find that I am still getting a lot of errors. i am posting this in hopes that some one can maybre give me some points …

0
66
Member Avatar for freesoft_2000

Hi everyone, I have an embedded jcomponent in a jtextpane and i am trying to print the contents of the entire jtextpane to the printer i have. The program does not seem to work but if i use an embedded icon instead of an embedded jcomponent the program works fine …

0
71
Member Avatar for freesoft_2000

Hi everyone, I need to ask a very generalised question. I have an embeded image in a textpane and i would like to know how to get hold of that image and store in an image variable when the user uses the mouse and highlights(selects) that particular image. I only …

0
60
Member Avatar for calvinnhobbes47

my ap computer science assignment is basically to do the following: - Front menu gives the options to edit, save, delete, search for books (about 10 books) - In the edit menu, it gives more options to edit book title, author, and date published and save it. -delete menu lists …

Member Avatar for jerbo
0
98
Member Avatar for javachick

:rolleyes: hi guys if there is any 1 out there who could just provide me with some help with java ,im in my final yr of computer science and have got to design a GUI that implements jdbc to creat an online auction system any pointers or help as to …

Member Avatar for server_crash
0
77
Member Avatar for ultimate_fusion

heres the problem; some one inputs a 4 digit number e.g 1234 I stored it as a string and i have to display it in a messagebox like ----------------------------- the digits are 1 2 3 4 ------------------------------------ How? p.s i know how to do trhe input box and display, but …

Member Avatar for server_crash
0
137
Member Avatar for ytrula

I was hoping that someone could show me how to use the equals method to change numbers that were entered. Three numbers are entered and the user is asked if they need to change a number. This is followed by a yes or no. It says if the answer is …

Member Avatar for server_crash
0
127
Member Avatar for Jackie001

okay u got me its not interesting at all but i thought if i said that more people would have a look!!!! sorry im trying to create a server that after the 10th connection of a client reads files and sends to the client, the client then sends back an …

0
319
Member Avatar for SureStoreX

I made a post about a wee and a half ago about a program I had no clue how to do. Well I worked hard at it, I'm very new to programming and I have ONE error left. I don't know where it is I have looked at it so …

Member Avatar for Jackie001
0
82
Member Avatar for dmorgan89

need some help with my java code. i'm getting incompatible types error. can anyone tell me what's wrong with my code? import java.io.*; public class ifelsechain2 { public static void main(String[] args) throws java.io.IOException { String string1; int num1; InputStreamReader isr = new InputStreamReader(System.in); BufferedReader br = new BufferedReader(isr); System.out.println("Enter …

Member Avatar for server_crash
0
111
Member Avatar for SonicSlayer

I’m having problems with my do-while loops and my while loop. Also my switch statement ends and does not loop to ask for another input. I’m confused. Any suggestion that can help me or send me one the right track I would appreciate it. This is the assignment: The Miskatonic …

Member Avatar for SonicSlayer
0
139
Member Avatar for shantuli

hi everyone, can anyone solve me the code for the java problem. i need a java programthat holds twenty integers in an array, loop though each cell sequentially and prints each number on the console. thank you very much. shantuli

Member Avatar for tigerxx
0
161
Member Avatar for freesoft_2000

hi everyone, I have a textpane using the default styled document. This textpane contains a icon and some formatted text. Next i have a file saved to my disk which is a document of another textpane. What i want to do is be able to append the two documents together …

Member Avatar for freesoft_2000
0
118
Member Avatar for Angiana

Hello everyone... im very new to Java... n im doing a java program 2 read from text files... the problem is after i read the 1st line ..the 1st number will be my max value... n after i read the second lines, there will be many values input by the …

Member Avatar for Angiana
0
143
Member Avatar for nazanin_dnr

Hi everyone I have written an applcation and now its the step that I want to make user authorization ! but I don't know any thing about it ! if anyone knows please introduce me some articles or please guides me ! thanx for your help

Member Avatar for tigerxx
0
92
Member Avatar for tiberis

My teacher has told me I need a build file for my networking prodject. The problem? I have NO IDEA what a build file is, let alone how to implement it. Is anyone available to step me through it? :-|

Member Avatar for tigerxx
0
110
Member Avatar for mmr

Hi All, I am working with Internal Frames. I used JDesktopPane and added 2 frames to it. I made one frame visible and the other was setVisible(false). This happens when I first run the program(Only first frame appearing). Now, what I want is to make the second frame visible, when …

Member Avatar for tigerxx
0
139
Member Avatar for chungaroo

hey, i'm in a high school computer science class and we're learning java..anyways, i've got this lab that i've been working on but i don't quite know how to proceed. heres a scan of the lab sheet. [IMG]http://www.bellsouthpwp.net/c/h/chungaroo/cslab%20004.jpg[/IMG] here's what i've done so far: [CODE]{public static void main (String [] …

0
70
Member Avatar for ggatwork

Okay, I'm doing a program where a menu pops up and it deals with the roster of a basketball team. You can add, edit, delete, and view the players. All of this is working but my problem is with sorting the players. I'm using an ArrayList (ArrayList contains each player's …

0
73
Member Avatar for nanosani

I wanna ask .... if I want to save the content of JEditorPane or JTextPane in a file without losing the formatting ... how should I do it .... If I save it to a string ... all the formatting is lost .

Member Avatar for nanosani
0
174
Member Avatar for tigerxx

hi all Can anyone tell me wat is Synthetic field in Java if possible send me links also thankx in advance

Member Avatar for Techguy
0
123
Member Avatar for themafia_69

hey guys, im in ap computer science (java) and now we are doing constructors, and i am lost, i dont know how to make a constructor, i am soooo clueless, im starting to pick up but no way near close to undresstanding, can someone give me a crash course in …

Member Avatar for themafia_69
0
189
Member Avatar for kumar25

hi all, i am a beginner in java programming.Could anyone please provide source code for the following program. A program that reads a integer and breaks it into a sequence of individual digits in reverse order.TQ.

Member Avatar for alc6379
0
192
Member Avatar for tigerxx

hey all what are pros of jdic ref avilable at java.net try this...........................

0
110
Member Avatar for shantuli

hi everyone, pls solve me the following problem. i need a java program that stores the following string in a two-dimensional char array : "Bell" "Dell","Hell" and "Sell".extend the programe to read the array and display each caracter in a console window. thank you. shantuli

Member Avatar for tigerxx
0
106
Member Avatar for server_crash

I really like to play chess and thought about trying to actually make a chess game. Only im not sure were to even start. If anyone in here has ever done this can you give me some tips on how to get started and how difficult of a task this …

0
95
Member Avatar for shantuli

hi everyone, can anyone pls solve me the following problem. i need a java program that holds at least three records for friendsof your in memory.each record must consist of at least : a name and an e-mail address the program must also able to find each record if the …

Member Avatar for server_crash
0
79
Member Avatar for mus_203

Hi, ive only started to program in Java for the last couple of days. I picked up a disk containing JDK 1.3 from my uni so that I can compile programs at home. I typed up this very simple program which is shown below public class Hello { public static …

Member Avatar for mus_203
0
117

The End.