How to disable maximize button on a window?

127 byte By anub at 2007-9-26 1:13:29
Can anyone please tell me how to disable the maximize button (on the top right corner of a window)in java?

developing on a mac?

216 byte By manjix99 at 2007-9-26 1:14:05
is it even possible to develop on a mac? i'm trying to teach myself java and only have access to a mac. besides buying a pc of some sort, what steps will i need to take to be able to develop on my mac?

Help! Can't execute a program using 'java' command...

378 byte By turtle2520 at 2007-9-26 1:14:08
Whenever I try to execute a program by typing in:java programnameI get the following error:Registry key 'Software\JavaSoft\Java Runtime Environment\CurrentVersion' has value '1.3', but'1.2' is required.It doesn't matter what program I try, I get this message on all of them. I have the ...

Detecting what OS the application is running on ?

184 byte By geotdw at 2007-9-26 1:14:14
Hello.Can anyone please let me know of a way that i could detect on what OS is my application running on. For example if i'm running on MAC, WIndows or Linux ....

Help... Java on Mac OSX

597 byte By andie6 at 2007-9-26 1:14:31
I'm trying to learn Java2 on my mac and I've run into a problem. I'm trying to use the terminal command line to compile and run applications w/ the jdk. i copied the source code for the generic "HelloWorld" app but when I try to compile it javac HelloWorld.javait says it gives me an error ...

Anyone know that? need help1

222 byte By james5z at 2007-9-26 1:14:38
I want take a test for Java Certificate, I think I am ready. But my problem is I don't know anything aboutthe test. Anyone can introduce me some web-site where I can take a similar test?

subclassing event objects

273 byte By paul_sun at 2007-9-26 1:14:58
Is there any purpose to creating subclasses of event objects such as EventObject or its subclasses. I thought that event objects are created at runtime to indicate events. Can events be created by an application? If so, please provide a simple example.

Help! Can't use java command to execute application

283 byte By toasterbob at 2007-9-26 1:15:06
I can compile using the javac command and that works fine. But then it can't seem to find the class that was just created.I get this message:"Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorld"Please help!!!Thanks!

Adding ActionListener, Where am I wrong?

5920 byte By reddyumamaheswar at 2007-9-26 1:15:22
Hello, Please see the two java files that are working fine, but I need to add actionlisteners to RectangleButton.java file, Could any one please help me? Getting text from textfield of superclass into the a string in the sub-class is my problem.1st Fileimport java.awt.*;import ...

Require Urgent Help about Applet POST

1383 byte By manisha1234 at 2007-9-26 1:16:56
I am having an applet with some textfields. I want to pass these form variables using POST method to ASP script which is a preview page. ( with Request.Form("formvariablename") ) I tried following test script but the button seems as if not having any action. What is wrong ? Please help. It will ...

Deleting multiple rows

517 byte By 2Fat at 2007-9-26 1:17:08
HiIm creating a program that connects to a MySQL database. Everything works perfectly and my select queries shows up in a JTable. My problem is deleting more than one row when selecting the rows from my JTable. I think im using the wrong SQL syntax so if anyone could show me the syntax, it ...

textFields

188 byte By 98028140 at 2007-9-26 1:17:13
i want to set a maximum size for a text field.for example it is 3 and after it gets 3 characters the pointer must pass to the next text field.how can i do that?

trace bar

144 byte By 98028140 at 2007-9-26 1:17:14
how can i iconize a window to the trace bar (the bar at which the clock works)?and how can i add a popup menu to that icon?

programs

148 byte By 98028140 at 2007-9-26 1:17:16
i dont know how to run an program with in a java program.for example, how can i start winamp when i click a button on my frame?

PrintWriter does not send or (Data)InputStream does not receive

828 byte By LoCal at 2007-9-26 1:17:26
Hi,I guess my code is correct, but somehow the server does not receive the stream (i dunno if client or server error) here are codesnippets ->//serverServerSocket adminstrumpf = new ServerSocket(31337);while(true) {Socket dc = adminstrumpf.accept();InputStream in = ...

Customising JDialogs (Urgent!!!)

330 byte By dupsy at 2007-9-26 1:17:38
I am having problems with customising a JDialog to my own needs. I want a modal JDialog box that has a JTextField and 2 JCheckBoxes and the input typed in the JTextField as well as the selections made on the JCheckBoxes are passed to the main window from which the JDialog box was opened.i need ...

JVM version

173 byte By sofyg at 2007-9-26 1:17:53
Sorry for stupid questions but What is the difference between java.exe and javaw.exe ?How can I check which JVM version is supported by java.exe?

How can I copy the content of a String array to another variable?

342 byte By mkreins at 2007-9-26 1:18:01
Hi all,is it possible to copy directly the content ofthe array rows[][] to another array? String rows[][] = {{"7268", "Cutter", "John", "Travel",""},{"8133", "W. A.", "Thornhump", "C.E.O",""},{"9923", "Berke", "Breathed", "Editor",""} };newArray = rows[][] ? ...

waitFor();

1245 byte By madhab99 at 2007-9-26 1:18:26
hello all,I am trying to fix the code below. For some reasonthe code hangs at "Starting waits...". I have no cluewhat is going on.I can only see the "Finish lines" after I comment thepreceding waitFor();. Obviosly if I remove these waitFor(), the code runs fine doesn't do the job it is ...

applet file i/o

616 byte By spoongirl at 2007-9-26 1:18:52
hi. i'm new to java (coupla weeks), and i want to write an applet that reads adn writes a server-side file. i can do this with an application no problem, but i think it doesn't work with my applet because of security issues. i have an idea that maybe what i need to do is get the URL of the ...

how to loop correctly?

806 byte By tuci at 2007-9-26 1:19:22
hi!could you please help me how to correct the following coding in order to work?import java.io.*;public class ABCInput{public static void main (String[] args)throws Exception {char input= ' ';System.out.println("Please enter A,B,C or Q.");input = ...

About Jtoexe

204 byte By lopa_d at 2007-9-26 1:19:23
Hello,i want to create ".exe file" of my ".java file".Can i do this?and if yes then can u tell me from which site i can download that software ?And also tell me how to use it.

Ascii characters

261 byte By jusbe at 2007-9-26 1:19:43
Guys,I dont know how translate Ascii characters, for example :A have the character 'f', how can I get the Ascii code from f character ?and I have the number 65, how can I get the letter correspondent.Thansk/jcf

whitespace characters

284 byte By PPT at 2007-9-26 1:19:47
Can scanf be used in this example to skip leading white spaces in the text array:Eg:-char[] = text;int p = 0;text could contain :- [space][space]Hello[space]World[space]Good MorningWhat other ways can I use to skip white spaces?

Serial Ports, is it supported on MAC & Linux ?

463 byte By geotdw at 2007-9-26 1:19:57
Hey all...After a long process of doing an application that runs a serial port connection to a server and upload a file to it, i could'nt find the comm package that i could download for both MAC and Linux.... There is one for Windows and Solaris though... So i was wondering, is serial ports ...

Read file in client machine.

213 byte By goozooloo at 2007-9-26 1:19:59
Hi,I recently start to learning java. but i`m a little hasty and like to know can i read a file in client machine from my server with use of applet.if yes, How.thanx a lot

my applets can never be found...

445 byte By 671974 at 2007-9-26 1:20:00
I type in the following in my html document:<applet code="Watch.class" height="50" width="345">This program requires a Java-enabled browser.</applet>And then I make sure Watch.html and Watch.class are in the same directory...Whenever I load my html page in Internet Explorer it ...

moving image using thread

272 byte By LuckyLeo at 2007-9-26 1:20:16
Hi all,I am trying using thread to draw a moving dot on screen,the program compiled successfully,but the dot didn't move. Instead, when I resize the window, the position of the dot changed, so I think the thread is working.what's the problem?

Any suggestion is appreciated. Mug logo... ?

306 byte By geotdw at 2007-9-26 1:20:23
Does anyone know if i could change the logo that represents all graphical interfaces in Java ? Can i remove the mug logo off frames, dialog etc and have a logo of my own ? If yes, how can i do that.... And if you have any idea about my previous question please let me know....Thanks... ...

class vs instance methods

495 byte By shadow2097 at 2007-9-26 1:20:24
While reading a Java book yesterday, the author was discussing the static modifier briefly and stated that a method with the static modifier was a class method, while a method without the static was an instance method. I feel particularly dense at the moment, I can't quite seem to understand ...

help

113 byte By BD1974 at 2007-9-26 1:20:36
I am unable to compile on my pc. I think i need the java compiler. how can i get it and download it

Installation problem with JRE 1.3.1

452 byte By ldgoad at 2007-9-26 1:20:38
I have a customer who posed this problem to me. The customer while attempting to install the JRE got the following message just after file extraction during the install: "Can't find C:\Documents and Settings\clarkr\Local Settings\Temp\pft99~tmp\disk1\setup.exe or one of it's components". The ...

Creating a .exe to run a Java application

608 byte By rmiller1985 at 2007-9-26 1:21:08
Maybe I'm just blind, but I've never seen this addressed anywhere.I've got a bunch of compiled Java code that makes up a windowed application on a Windows machine. I can open up a DOS prompt and start the application by typing:java RunApp (or whatever the top-level class is with the main() ...

Can you incorporate Java into a Visual Basic program

162 byte By johnny-boyy at 2007-9-26 1:21:10
I am relatively new into progamming and was wondering if anyone knew if Java can be incorporated into a VB program. Any assistance would be helpful.

Does somebody know how to make massage box in Jframe?

67 byte By zick at 2007-9-26 1:21:40
Does somebody know how to make massage box in Jframe?

AddRecord Class - havin trouble with ScrollingPanel

2810 byte By Animie at 2007-9-26 1:22:05
Hi everybody!I was working on this AddRecord class, unfortunately I keep gettin an error concerning the ScrollingPanel. I'm not really sure what's wrong with it. The errors are:addrecord.java:9: cannot resolve symbolsymbol : class ScrollingPanellocation: class AddRecord{private ScrollingPanel ...

help how to iconize?

214 byte By 98028140 at 2007-9-26 1:22:15
how can i iconize a frame into yhe trace bar (i dont know the exact name it s the bar at which the clock works) ?and how can i add an popupmenu to it?please give an clear explanation....

Urgent exception handeling!

1107 byte By palv at 2007-9-26 1:22:46
Hello,My problem is with exception handeling. I'm using java.awt. and i'm writing an application. My problem is i'm not really sure on how the format for exception handeling is.public boolean action(Event evt, Object arg){String str1 = textField1.getText();String str2 = ...

Applet Server Connection

779 byte By Licciardi at 2007-9-26 1:22:52
I am playing with writing an applet that connects to a simple java server that I have written. I can run the server with no problems and it sits happily on my PC waiting for something to connect to it.I have also written an applet that when initiated tries to connect to the server application I ...

a question on JRadioButton

829 byte By angelswings at 2007-9-26 1:22:57
Hi! I'm quite new to java programming and i was wondering if some kind soul could help me out in this. I'm doing a simple member registration for a library. I'm using jdk1.2.2, Swing to create the interface and MS Access as the database. Here's the problem: I have two JRadioButtons (which ...

how to create a superscripted letter in a String?

423 byte By zhoujlz at 2007-9-26 1:23:01
I am just doing a project for my java course, it has a frame with some textfields, labels and buttons. there is a label which is String("Employee No"). How can I make the 'o' in the "No" subscripted?I found a setSubscripted() in the API doc, but still have no idea how to do it. Or, is it ...

problem in compiling

537 byte By pillai99 at 2007-9-26 1:23:04
Dear Friends,I have just completed a course in java,and installedJDK(downloaded) in my pc.But when I compile,it reads nocommand au nom de ficher incorrect(french) indicatingthe name of file is incorrect.But I've checked for errorstoo.I went to ms doss and1.typed cd\then,2.typed cd inno(my ...

Need Help:-(

2438 byte By computercall at 2007-9-26 1:23:06
Hi Friends!!I have a problem on my hands.I am not able to compile these classes.will someone look into this pleaseClass 1:package obj;public class ASimpleClass{OneMoreSimpleClass onc;public ASimpleClass(){System.out.println("Hello World"); onc=new OneMoreSimpleClass();onc.gettoknowme();} public ...

Precision

179 byte By matay at 2007-9-26 1:23:32
Dear All,Can anybody tell me how to format decimal numbers with less decimal digits and with "." decimal separater not ","?Thanks a lot!Mustafa

can't get menu accelerators to work?

133 byte By pc_nv at 2007-9-26 1:23:43
when i set menu accelerators for menu menus they work. when i set menu accelerators for popup menus, they don't work.

compiling error

432 byte By tG_BLK at 2007-9-26 1:24:02
I have just installed JDK 1.3.1 on my computer.I am completely new to Java.I know this sounds idiotic but I'm stuck on the MyWorldApp, the program won't compile. Checked out the other forums, it doesn't work.The class path method...dos can't even recognise it.I'm running Windows2000 and I ...

What would a C struct be in Java?

889 byte By thomasfly at 2007-9-26 1:24:10
I'm attempting to convert a C program I wrote several years ago to Java. It's supposed to calculate sunrise & sunset. (If the Vernal Equinox occurred at noon on March 21, then in the struct below, the "offset" would be .5 of a day.) Does my struct need to become a class in Java, and can I ...

Implementation of LISP trees in Java

642 byte By dupsy at 2007-9-26 1:24:14
I have a problem with implementation of a something similar to a LISP tree in Java. That means that I want to be able to combine different if-else-conditions from a set of variables and operators and run it. For example, if (variable) (operator) (variable) (operator2) (variable) (operator) ...

Problem in reading byte stream:(

2116 byte By mayra at 2007-9-26 1:24:18
HiI am trying really hard to find a code to read each byte at a time (using buffered input stream) and then store the values in an array but i cant make it work. Can you plz write a bit of code for me to do that because i am getting very confused and the project seems endleess. I am trying to ...

Help Tables!

515 byte By harvin at 2007-9-26 1:24:33
Hello,I'm having a problem regarding tabels. I have an interface built using java.awt in the form of an application. What i would like to do is to call in a table with a scroller.can JTabels and JScrollPane be used in an awt interface.the commands are as suchexampleprivate Jtabel tabel; tables ...