I've been looking for a good Java IDE that is somewhat comparable to Visual Studio 2003 regarding parameter info helpers and syntax highlighting, with an thought of visual design too. Does Sun have an IDE similar to VS? Seems like I came across one of their products a few weeks ago. If not, do ...
Comments (44) | Promote | Bookmark
programming help neededSun, 23 Sep 2007 08:35:00 GMThi names don...i have this program i need to make for math....i just wanna make it cooler and make a program and not a ugly excell table: it might be long but im sure its no problem - i read the basics but i have trouble combining all this so i need someone to tell me some cmds.lemme explain:i ...
Comments (43) | Promote | Bookmark
if statement inside a try/catch blockFri, 21 Sep 2007 09:41:00 GMTWhy is the following code problematic?private static void extractZip(boolean v){try {File f = new File(target);if(f.isFile()) ZipFile zipFile = new ZipFile(f);}catch (Exception e) {}}...
Comments (17) | Promote | Bookmark
ExpertsThu, 20 Sep 2007 16:04:00 GMTAm I the only amateur here; because I still can't get passed making the "HelloWorldApp.java" file. I have been fighting with this since 3pm today--Kansas City time. set path=......;c:\j2sdk1.4.1_02\bin@IF ERRORLEVEL 1 PAUSEC:\ESSAUDIO.COM -BLASTER@ECHO OFFHere is where I think I screwed up ...
Comments (16) | Promote | Bookmark
Quick question about .jar filesFri, 21 Sep 2007 13:48:00 GMTHi,I've made a .jar file of an application im writing. But when i try to launch it I get an "Could not find the main class" error. Obviously javaw can't find the main class. But I can not understand why? Have I made something wrong when making the .jar file? Do you have to specify a main ...
Comments (14) | Promote | Bookmark
keyword "this"Sun, 13 Jul 2008 13:31:00 GMTI'm frustrated and need to go back to basics.Searching google doesn't help when you're looking for the keyword "this"Can someone help me understand what using it does?I think it is a reference back to its own class, but I'm fuzzy on the details....
Comments (13) | Promote | Bookmark
Method used to Find the Larger of two numbersSun, 23 Sep 2007 05:23:00 GMTI'm defining a method to compare two numbers, then print the result on a single line. This is what I have so far:public static void printLarger(int One, int Two){System.out.println(__(One, Two));}What method would I call to find which is larger? Is there a place where I can find common methods ...
Comments (9) | Promote | Bookmark
Can not click on a JButtonSun, 23 Sep 2007 04:20:00 GMTHi!I defined a JTextField and a JButton in a JDialog, and the button doesn't react on mouse clicks but only by pressing enter in the JTextField. I used a ActionListener to capture the event. I tried several things, setEnabled(), etc., and nothing. Does anyone had the same problem?...
Comments (7) | Promote | Bookmark
Mathematical functionsSun, 23 Sep 2007 10:46:00 GMTHello all,after some research on the forums I read I need a sort of parser to read & detect mathematical commands from a String input line.Assuming I have such a method, is there a way to create a (random, non-linear) function/method in a variable (say x) from that input line, so the ...
Comments (6) | Promote | Bookmark
Im ver new to java programming, & I want to know how to read a fileTue, 18 Sep 2007 12:17:00 GMTThe file contains lines with integers, and I have to store every line into an array of integers.How can I do it?thnx :) ...
Comments (6) | Promote | Bookmark
JTable helpWed, 14 Nov 2007 18:22:00 GMTHi, I need some help with a JTable.I made a simple table filled with check boxes in every cell. I would like clicking a cell to visibly disable other cells (or at least change the color) with checkboxes.I can figure out how to calculate which cells have been edited and which I need to change, ...
Comments (6) | Promote | Bookmark
JTextFieldSun, 23 Sep 2007 08:37:00 GMTHi there,Plz can any one tell me how should i display a frame saying "plz enter a valid integer" when any one enters a string into a text field....
Comments (5) | Promote | Bookmark
Conversion processes?Sun, 23 Sep 2007 14:51:00 GMTMy company has recently decided to convert several thousand Legacy COBOL programs to Java with a web frontend. Can anyone give me a good architecture or model example as to how to do it? Any help would be greatly appreciated.Thanks....
Comments (4) | Promote | Bookmark
Analyzing stack trace of ExceptionTue, 25 Sep 2007 05:34:00 GMTHi,Can someone give me some advice (or a link to some tutorial) on how to analyze the stack trace of an Exception?If a long stack trace is generated, where should I focus my attention? My code is generating an exception and the stack trace seems all over the map.Should I be looking at the first ...
Comments (4) | Promote | Bookmark
Can someone explain how this code works?Sun, 13 Jul 2008 11:18:00 GMTcode:class Echo { int count = 0; void hello() { System.out.println("helloooo... "); }}public class EchoTestDrive { public static void main(String[] args) { Echo e1 = new Echo();Echo e2 = e1; int x = 0; while (x < 4) { e1.hello(); e1.count = e1.count + 1; if (x == 3) { e2.count = e2.count + 1;...
Comments (3) | Promote | Bookmark
Dynamically Loading ClassesMon, 24 Sep 2007 04:11:00 GMTI can understand why it is usefully - indeed necessary - to dynamically load classes across a network if you do not know at runtime which ones will be required but is this the only time when it is used?When I set up a MySql connection I had to dynamically load the jdbc driver. Why so when the ...
Comments (3) | Promote | Bookmark
400MHz DDR in a 333 machineTue, 15 Jul 2008 17:12:00 GMTI'm looking at updating my memory. The 400MHz sticks are cheaper but my motherboard only supports up to 333. Can anyone confirm that the new stick speed will be OK but will just run slower?(the other stick is 266MHz anyway, so they'll have to run at this speed. longer story)....
Comments (3) | Promote | Bookmark
Order of Java versionsThu, 15 Nov 2007 05:24:00 GMTIn an earlier thread, a poster included this instruction:"Make sure that the Java 6 SDK is mentioned before other versions in the PATH environment variable."Well, on my WinXP system, I find:java -versionreturns 1.6.0_01but the suggested javac -J-versionreturns 1.4.2Now periodically I get ...
Comments (3) | Promote | Bookmark
comparing two jpeg imagesThu, 20 Sep 2007 15:20:00 GMThi i want to know how to compare two JPEG images.i am grabbing individual JPG images from webcam and want to compareeach image with the previous one and alert the user if there is any motion detected. I have seen some examples on net but they are specific to their application. I want to write a ...
Comments (2) | Promote | Bookmark
String split on multiple regexSun, 13 Jul 2008 16:38:00 GMTI have some text that I wish to parse but there are 2 different characters (, and |) I want to parse it onex. some text, with | extra , things in itIs there a way to do this split once or would I have to do 2 separate splitsString[] split = s.split(",");String[] split2 = split.split("\\|");...
Comments (2) | Promote | Bookmark
Unable to update to java 6....Sun, 13 Jul 2008 16:56:00 GMTHi Friends!I am having an issue with the upgradation of java J2SDK 1.4.1_01 to JSDK 5 or JSDK 6. Please provide me with the steps to install(upgrade) my old version of java.I am performing the following steps:-->Go to java.com-->Then, I clicked on the free Java Download Button-->It took...
Comments (2) | Promote | Bookmark
Problem with Java Scanner - Please Help!Sun, 13 Jul 2008 13:35:00 GMTHey all - so I am creating a non-graphical version of the game Mastermind (which entails guessing a secret color code within the fewest amount of tries possible - here is a link containing an example [http://www.irt.org/games/js/mind/]).With my game, you first choose for either a computer-genera...
Comments (2) | Promote | Bookmark
VM Browser Plug-In configurationWed, 30 Apr 2008 09:46:00 GMTIs it possible to set the Applet parameter "archive" in the clientconfiguration of the VM Plug-In Browser?Thanks in advance. Paolo...
Comments (1) | Promote | Bookmark
Writing commentsFri, 09 May 2008 23:40:00 GMTIs there anyway to insert comments using the writer in a customconverter?NOTICE: This communication contains information which may be proprietary, privileged or confidential. If you are not the intended recipient (or authorized to receive for the intended recipient), or believe that you have rec...
Comments (1) | Promote | Bookmark
is there any class in called RollCallTue, 25 Sep 2007 11:44:00 GMTThis is an interview question asked in Patni reply me....
Comments (1) | Promote | Bookmark
Wrapping Class what is it?Thu, 20 Sep 2007 00:15:00 GMTi new to java, can somebody briefly explain to me what is Wrapping a class. or wrapper class...
Comments (1) | Promote | Bookmark
errors while cliking on my buttonWed, 14 Nov 2007 23:37:00 GMTi dont know whats going on. whenever i try to click the button to add interest in my frame it gives me Exception in thread "AWT-EventQueue-0" java.lang.NullPointerExceptionat InvestmentScroll$1AddInterestListener.actionPerformed(InvestmentScroll.java:40)at ...
Comments (1) | Promote | Bookmark
Cant find resource?Sun, 18 May 2008 18:50:00 GMTSypher23l@hotmail.com (John) wrote in message news:<5baca617.0404031720.23010150@posting.google.com>...> Hey Everybody,> Im fairly new to java, okay, quite new. Anyway, I created an> applet which Im 99% sure is correct, compiles fine also. But when I> try to view it in a browse...
Comments (0) | Promote | Bookmark
More testing...Sun, 23 Sep 2007 23:29:00 GMT...just to see, if this thing is alive and kicking again.......
Comments (0) | Promote | Bookmark
help automate codeSun, 13 Jul 2008 13:44:00 GMTi have popup codes like this (too many around 12-20 popup screens) painted for demo. most of them have a kind of 1-2 layout ie the fields come dynamically from a resultset i am guessing i can change the SQL code so that i can get the proper field names eg SELECTFIELD1 AS DisplayName1,FIELD2 AD D...
Sypher23l@hotmail.com (John) wrote in message news:<5baca617.0404031720.23010150@posting.google.com>...> Hey Everybody,> Im fairly new to java, okay, quite new. Anyway, I created an> applet which Im 99% sure is correct, compiles fine also. But when I> try to view it in a browse...
...just to see, if this thing is alive and kicking again.......
i have popup codes like this (too many around 12-20 popup screens) painted for demo. most of them have a kind of 1-2 layout ie the fields come dynamically from a resultset i am guessing i can change the SQL code so that i can get the proper field names eg SELECTFIELD1 AS DisplayName1,FIELD2 AD D...
Is it possible to set the Applet parameter "archive" in the clientconfiguration of the VM Plug-In Browser?Thanks in advance. Paolo...
Is there anyway to insert comments using the writer in a customconverter?NOTICE: This communication contains information which may be proprietary, privileged or confidential. If you are not the intended recipient (or authorized to receive for the intended recipient), or believe that you have rec...
This is an interview question asked in Patni reply me....
i new to java, can somebody briefly explain to me what is Wrapping a class. or wrapper class...
i dont know whats going on. whenever i try to click the button to add interest in my frame it gives me Exception in thread "AWT-EventQueue-0" java.lang.NullPointerExceptionat InvestmentScroll$1AddInterestListener.actionPerformed(InvestmentScroll.java:40)at ...
I have some text that I wish to parse but there are 2 different characters (, and |) I want to parse it onex. some text, with | extra , things in itIs there a way to do this split once or would I have to do 2 separate splitsString[] split = s.split(",");String[] split2 = split.split("\\|");...
Hi Friends!I am having an issue with the upgradation of java J2SDK 1.4.1_01 to JSDK 5 or JSDK 6. Please provide me with the steps to install(upgrade) my old version of java.I am performing the following steps:-->Go to java.com-->Then, I clicked on the free Java Download Button-->It took...