What do i use in place of dispose()

329 byte By sduffy89 at 2007-12-5 22:14:19
Apparently dispose() is deprecated (i'm using it in my JFrame), for some reason its not building the project because of it (i'm using Linux now and didn't have the problem on windows). Or if you dont know and dont mind telling me how to make it still build the project sucessfully, th...

Http

996 byte By freesoft_2000 at 2007-12-4 23:57:06
Hi everyone, I am currently trying to do an application that does the upload as well the download of files from a http server that needs authentication.The thing is i am not very sure where to begin and i am open to any suggestions. Basically what i am trying to u...

Applet To Jdbc connection

189 byte By srisivakumar at 2007-12-4 10:39:24
Hi <br/> How to connect an applet to JDBC. How to call the JDBC connected appled into Browser... Reply with sample Codings please... Urgent...Waiting for reply...<br/>Thanks in Advance...

Internationalization

257 byte By developer-network at 2007-12-3 19:25:55
Hi,<br/> I would like to get information about Internationalization for Japanese, Chinese and Korean. Where can I get the information and some examples. I have to do this in JSP and JavaBean and I am using Oracle 8i.<br/>Thanks in Advance,<br/>Kalyan

Source Code

348 byte By ViSionSinD at 2007-12-1 0:34:59
Please help I have spent the last 12 hours searching the web for a way to hide my source code from prying eyes I need a java script or html to pop up a displayed message saying access denied or something of the sort when people try to view my source code please help or direct me to the right person...

abstract class

122 byte By sentium at 2007-11-29 14:56:30
Hi ,<br/> Is there anyway to instantiate an abstract class , though Java forbids it.<br/>Thanx<br/>ever curious

creating system links (dvs file/dir in Unix)

465 byte By young_matthewd at 2007-11-27 0:19:27
Via the java.io.File package one can perform the basic array of file/diretory processing (ie. to create a directory or file, etc). However, I have not seen a way to create a link between to files or directories (ie. in Unix "ln -s <source> <target>". Anybody got any tips?Also, I find it...

interference with constructor

191 byte By Trainwreck at 2007-11-25 11:57:15
Hey, is it possible to create an instance of a class without calling its constructor automatically?<br/>The way im doing it now:<br/>test = new Test();<br/>Thanks for any help.

Bitwise-inclusive-OR assignment Question

453 byte By slowcoder at 2007-11-25 11:57:12
Bitwise-inclusive-OR assignment Question-C allows you to do this:static int *line2 = NULL;int failed;failed |= (line2 == NULL);But Java does not allow you to do that. So my question is, do these Java statements below get you the same end result as those C statements?private int line2[];int failed;i...

How to get special cell borders using iText.

497 byte By geb989 at 2007-11-25 11:57:02
Hello all gurus,I am new to using the iText package and I have a nice little table built and am trying to get a special bottom border. Specifically, I am trying to get an Accounting style double lined bottom border. Is this even possible. I think it is using iText's RTF classes but I really nee...

not able to post data from applet to jsp

2368 byte By tanya_87 at 2007-11-25 11:56:47
hello there..i m not able to send data from an applet(embedded in a jsp) to another jsp even though i got successed making connection between these two.i m using following code at applet sede(embedded in jsp)...URL appletURL = getCodeBase(); String strHost = appletURL.getHost(); String...

Hibernate Exception: a different object with the same identifier value was alrea

2748 byte By AlbertGM at 2007-11-25 11:56:33
Hi all,I'm working on a Java application using Hibernate3 as persistence model. I'm quite new in Java, and I never worked with Hibernate before.I'm working in a java project (called Core), which it'll be called from a JSP (struts) or from a webservice. To test this project (I hav...

simple method problem :(

594 byte By johno24 at 2007-11-25 11:56:27
If I have an array in a class file and am trying to access the array from a seperate method in that class file..Let's say I have a class blahblah. int[] blah = new int[5];int[] blah2 = new int[5];void fillBlah(){ blah[0] = 1; blah2[0] = 2; // or loop through and fill all elements.. etc..}And...

email invitation

321 byte By g3RC4n at 2007-11-25 11:55:49
i want an email invitation that you press a button to either accept or declinean idea i had is that if you press accept you ping as website or something that logs your ip, and counts pings, discarding any pings already loggedbtw this is urgent, so i need your help plz :)thanks for your time...

is this answer to the following question is true ?

280 byte By honeyboy_20 at 2007-11-25 11:54:54
is this answer to the following question is true ?<br/> http://www.7kawiclub.com/up/uploads/686e801f73.gif ( http://www.7kawiclub.com/up)<br/> http://www.7kawiclub.com/up/uploads/4e9818f650.gif ( http://www.7kawiclub.com/up)<br/>i want the new question to the exam 310-055 ?

Writing the java program for the following

13 byte By assignment at 2007-11-25 11:54:27
Thanks idiots

Getting data from the database to insert into a JTree

128 byte By kirtipriyanka at 2007-11-25 11:54:24
How do i get data from the database and insert it into the JTree? It would be nice if u could write the code. Thanks in advance!

Class or Interface expected in Main Method

4198 byte By fritz98 at 2007-11-25 11:54:16
Alright, I have a project due tomorrow that calculates the yearly cost for owning a car. I am about done (just one regular method to go) but I am having trouble with my Main method , the error is in this post's title. Here is my code:/*Fritz Barnewolt** CarCalc.java** Created on November 1, 20...

Allocate exception for servlet

3643 byte By Xeel at 2007-11-25 11:54:06
hi, here is a weird error i get from tomcat5.5 under Gentoo. It's not the first time I'm installing a webapp and other applications r working quite fine on this server. The app deploys fine in its folder and jsps and independent classes r running, the only problem is my servlet. Maybe I ju...

Exception

1139 byte By Abalfazl at 2007-11-25 11:53:56
Hello friends http://www.ssuet.edu.pk/taimoor/books/1-57521-197-1/ch10.htmThe first step is to modify the passingGrade() method definition to include the throws clause. The throws clause lists the types of exceptions that can be thrown by the method. In the following revised code, the method throws o...

doc to html

915 byte By thrust at 2007-11-25 11:53:36
hi all,I was trying to converting a word document to html format using java.. i jave used the following simple codes.import java.io.FileReader;import java.io.FileWriter;import java.io.IOException;public class Filereading {public Filereading() {}public static void main(String[] args) throws IOExcepti...

message like string[] args from main() methods

366 byte By pouncer at 2007-11-25 11:53:29
String message; while ((message = in.readUTF()) != null) { //String[] array = message; -- gives error incompatible types System.out.print("* Message from peer: " + message + "\n"); } How can I split the message so i could use likeif (message[0].equals("hi")) ..else if (message[2].equals...

Iterator help

349 byte By pouncer at 2007-11-25 11:53:10
Iterator<Socket> it = L.iterator(); while (it.hasNext()) { Socket ns = it.next(); System.out.println("Neighbour: " + ns.getInetAddress()); }How can I check the size of the iterator because I want to do something likeif (it.size == 0) System.out.println("no neighbours");...

applet-jsp communicatio

352 byte By tanya_87 at 2007-11-25 11:53:01
hi alli am very new in java so please spend your few movement for this topic.i want to run a jsp page from within an applet and evantually want to send data to jsp.please help me with approppiate code that you have used using HttpPost and HttpGet method both.the data is an array of string object or...

Regex Help

4041 byte By authorityaction at 2007-11-25 11:52:40
I am having trouble with regular expressions, I am really confused by them and can't figure it out. PeriodicTable.java reads values from a file and creates an array of the object Element. It then prompts the user to enter a molecular formula from which it will calculate the atomic mass of the...

Why double == NaN

184 byte By kuku at 2007-11-25 11:52:28
/init<br/>public double Error=0.0;<br/>.<br/>.<br/>.<br/>/looping<br/>this.Error += Math.abs(instantError);<br/>"Error" value using System.out.print()=NaN<br/>what does that mean?

socketchannel problem

1038 byte By pouncer at 2007-11-25 11:51:39
private static class PeerConnection extends Thread { String hostname = null; public PeerConnection(String host) throws IOException { hostname = host; } public void run () { try { SocketChannel csocket = SocketChannel.open(); csocket.configureBlocking(false); csocket.connect(new InetSo...

Need Help

800 byte By Ananth Ram at 2007-11-25 11:51:38
This is the object I created public Profile getProfile(String userName) {Profile profile = new Profile();School[] school = null;String query = "SELECT ...";stmt.execute(query);if(rs.next()){school = getSchool(person.getPersonId());profile.setSchool(school);}return profile;I am trying to retrieve the...

Errornous Code

1086 byte By sepahs at 2007-11-25 11:51:20
I think I've messed up the Strings/Boolean functions, but im not sure how to fix it. Any help would be appreciated. public class Parks { private String[] parkingBays; private int numCars; public Parks(int capacity) { parkingBays = new String[numCars]; for (int i = 0; i &l...

3 tier in Java

311 byte By valluvanl at 2007-11-25 11:50:14
I need an example Java application with UI which works under 3 tier architecture. I need to send data from the UI form and retreive as well.Importantly getting values to JComboBox from database shud be there.i'll be thankful if someone post a good example regarding my needs.thanks...

Exception Problem

300 byte By prasun at 2007-11-25 11:49:52
class Excep{<br/> public static void main(String[]args){<br/> try{<br/> }catch(InterruptedException e){}<br/> }<br/>}<br/>The above program fail to compile but when i change InterruptedException to Exception then it will compile.Why?...

need help with simple formatting

47 byte By Dusker at 2007-11-25 11:49:27
solved my own problem.. apologize for this post

JTree

392 byte By kirtipriyanka at 2007-11-25 11:48:03
I have a JTree which has parent and child nodes. When i add a child node to a parent node the node is getting added. I want to retrieve the parent node of this child node. Its like every parent node has an id associated with it in the database. now when a child node gets added to its parent i need...

cant download the war example.

261 byte By mlotfi at 2007-11-25 11:47:39
Hi,<br/>I read this article :<br/> http://www.developer.com/java/ejb/article.php/10931_3321521_2<br/>but can't download the struts.war file at the end of the page, it ask for a username and password.<br/>Please your help is appreciated.<br/>Thanks

sharing of data between sites

465 byte By jyovasinedu at 2007-11-25 11:47:23
hi once again iam posting a same query but with a different approach please try to understand and reply me Iam developing a site like yatra.com now how can i share the databases of all the airlines, hotels etc into my website.that means inorder to maintain a site like yatra.com i could be a...

Suggestions for LinkedList Subset method

583 byte By cases at 2007-11-25 11:46:26
Hello folks,I am looking for suggestions on creating a LinkedList subset method. Any guidance in terms of pseudocode should help me on my merry way. Here is what is being asked, any suggestions would be appreciated!public LinkedList subset (int a, int b);This method receives two integer parameters a...

big oh notation question

258 byte By devlinobrian at 2007-11-25 11:45:23
i have always assumed that adding and removing to a vector was O(n). i was reading in an article and i am sorry i cannot remember where but it stated that it was possible to add and remove to a vector in O(1). can anyone briefly explain how that is possible?

Need Help Please :-(

1407 byte By JohnSmith70 at 2007-11-25 11:45:22
Please help I need help with this homework.Its about vending machines, and it should be a piece of cake to you code experts out there.Its about vending machines. Heres the question:It should have two classes, one for the vending machine(VM) and the other for drinks. The capacity of the VM is specifi...

Traveling Salsman Problem (recursive)

782 byte By Mykullski at 2007-11-25 11:44:55
If anyone is fairly familiar with this problem I would appreciate the help.. My java file as of now reads it a .dat file containing 128 cities with their distances from one another. My goal for this is to be able to first computer a "path" to all cities and back to the original city. This is called...

JEE project dev.!

421 byte By palla_sridhar at 2007-11-25 11:44:54
Hi Java Code gurus!!I'm new to Java and would like to know a few things abt Java projects.1. How are JEE projects done in companies in the IT industry??2. What are the SDLC , methodologies, process used for these JEE projects??3. What are the JEE tools and technologies used during the projects...

convert doc to html format

157 byte By thrust at 2007-11-25 11:44:45
hi all,<br/>I need help in converting open office to html format using java or xml without using the option "save as".. <br/>please help me out..<br/>thanks

Can Some One Help Urgently

192 byte By Meg at 2007-11-25 11:43:01
HAVE UNI ASSIGMENT. hAVE SPENT DAY WORKING MULIT-DIMENSIONAL ARRAY. bUT NOW CAN'T GET IT TO ADD TO CITYLIST(DROP DOWN)<br/>HAVE TO SUBMIT MAIL TODAY<br/>I HAVE ATTACHED THE FILE

Evaluating increases in a number range

3341 byte By Tkoball at 2007-11-25 11:42:22
Hello,I'm working on a Java problem that has me completely stumped. I've been looking through all the references I can get my eyes on and just can't seem to find what it is that I'm looking for.Basically, the problem I need to write a program for goes like this: Write a program t...

Java GUI designer

181 byte By Invader Zim at 2007-11-25 11:41:30
Does anyone know of a free java gui designer , I just want something to drag and drop swing components. I tried the Jigloo eclipse plugin but it doesn't respond in eclipse 3.2.

Layout in Java Applet

404 byte By benw2007 at 2007-11-25 11:41:25
Hey all, can anyone help me at all please??basically, all im trying to do is set out a layout that looks good in a java applet...i have made the buttons and the text fields, but they just appear in the NORTH border from left to right...i would like it to be like:Red (text field)Green (text fie...

homework help

870 byte By garny at 2007-11-25 11:40:46
what im trying to do is find a (estimated) value for pi...i need to calculate how many interations is done by the program before it starts adding numbers that are too small to be accounted for. im not really sure why i keep getting 0.0 as my pi value. public static float leibnizArctan(float x){ /...

Help with simple java!!

1763 byte By benw2007 at 2007-11-25 11:40:17
Hey all, basically im a newbie doin java at the moment...i mean i know a little, but not enough to sit down and work it out (unless i explode)! its crazy, basically all i am trying to do at the moment is to try and write an applet that basically shows 1 label, and 1 text field next to it so the user...

Help

7022 byte By Xantom at 2007-11-25 11:40:13
I am trying to get this code example to run properly, I have been looking at this too long and I can't see the problem. I am not seeing where the Jlabel output is being displayed. Also the display Joptionpane is not coming up either. Thanks in advance for any suggestions. below is my code.i...

Rss Feeds

209 byte By jyovasinedu at 2007-11-25 11:39:44
how can i use RSS FEEDS in java iam developing a site for travel guide like www.yatra.com how can the concept of RSS FEEDS helps me in that aspect please anyone who know about RSS FEEDS please guide me thank u

Displaying GUI screen ontop of Console Window

345 byte By Rukuro at 2007-11-25 11:39:02
G'day fellas, With my program, its mainly run from the console window, but when the user chooses to exit I have a GUI popup that is displayed saying goodbye, but the window is displayed behind my console window, is there a setFocus method for a panel or something?Thanks in advance, hope I made...