Where does system output go to in a Unix operating system for java?System.out.println
472 byte By
bealby at 2007-9-30 14:12:20
I have a project that uses the JDesktop, JInternalFrame, JPanel. I am able to place JButtons on the JPanel but I am unable to use the setLayout(null) and setLocation( literalx, literaly) to position buttons where I want.Can someone give me a simple example of how to do this?Ulimately I want to ...
733 byte By
djdoxy at 2007-9-30 14:12:21
I have a servlet which is called by a form in a HTML page.The HTML page can be used worldwide including countries such as Japan, Korean, China.So the form can be filled either by standard "letters" or by "symbols" Basically I would like to know if the character I recieve are letters or symbols. ...
Sorry for the stupid question...Can an Applet read-write files on remote machine where the applet class is?What should be the trouble, when the browser posts message: Applet class started, but I don't see anything but gray box?Thank you.
194 byte By
waiII at 2007-9-30 14:12:30
i want to write a Document Management System to read the content of the MS Word file and convert it to the PDF file using java.Does any java api can do this?Thank You
418 byte By
clearz at 2007-9-30 14:12:35
HiI am developing a small client app for an estate agent to manage their properties database. I have a seperate class for the GUI and a load of event classes. In order to get these to work together I have to pass the 'this' object of the main class into the GUI class and then into the event ...
2031 byte By
avalys at 2007-9-30 14:12:36
Hey guys,I've been trying to implement a connection pool that will block if a connection is requested while none is available (instead of just throwing an exception): I think I've got it figured out, but since this is my first time dealing with wait() and notify() I wanted to make sure I'm ...
1453 byte By
shaun82 at 2007-9-30 14:12:38
I have a complicated class called Unit which contains many different methods within it, including agetLocation, and setLocation.Unit Objects are passed to various classes, including a MasterControl class and a Team class.However, I only want the Team class to be able to have access to the ...
Hey all, I've got my Java SSH program connecting to my Linux server, now the problem is executing SSH shell commands. I can type them into the I/O box in Sun Java Studio and get it to work w/o problems. I get the response to whatever command i type. But now i need to have a button execute a ...
256 byte By
dprutean at 2007-9-30 14:12:47
For the one who works with databases, the program from www.dbschema.comis really interesting. It can get the schema from database ( any database ), autolayout, comment,and generate the sql again for any database you need.
1499 byte By
bri24 at 2007-9-30 14:13:05
Any help will be greatly appreciated.Question:Design and implement an application that reads an arbitrary number of integers that are in the range 0 to 50 inclusive and counts how many occurrences of each are entered. After all input has been processed, print all of the values (with the number ...
523 byte By
ypeskin at 2007-9-30 14:13:10
Hi All,I have a design question. I need to check mail and process it periodically. I was thinking the way to handle it would be in my program's main start a periodic timer, that would check mail, and if there is mail,spin off threads to do the processing. What I'm not sure about is the ...
When you implement the DocumentListener, one of the classes that you have to write is insertUpdate.In insertUpdate, is there anyway to check which object called the DocumentListener. I know that you cannot call ev.getSource() .Thanks.
1136 byte By
RiOrius at 2007-9-30 14:13:28
Alright, I've got this error that's been driving me crazy, and knowing me, it's something small that I'm overlooking, so I'd like to apologize in advance for the fact that this is probably something very basic that I'm neglecting.I'm writing an Applet that uses the <PARAM> tag to ...
1145 byte By
rimmer1 at 2007-9-30 14:13:29
hi i using an applet to display a set of results from a databasei m trying to display the results one below each other, the problem i am having is that the resultsare overlapping each other can someone helppublic void paint( Graphics g ){ try{while (rs.next()){Title = ...
Hi,I've encoutered a peculiar sentence in a javaworld article regarding another thread that took place about a month ago, http://forum.java.sun.com/thread.jsp?forum=31&thread=534243. http://www.javaworld.com/jw-02-2001/jw-0209-double-p2.html , arround the middle:Suppose thread A has ...
my team struck up in a typical problem, where by wehave to design an application in Javawith a module, that has two threads, and both the threads act like monitors and one sends data (user inputs) to the Web server (listening to HTTP), and the other Threadmakes a connection to the same Web ...
557 byte By
viaphone at 2007-9-30 14:13:53
//I have done : import java.awt.*;import javax.swing.*;import java.awt.event.*;......//and code I wrote as following : private JLabel lab = new java.awt.Label("ddd");....when compile ,the complier raising the error :examples/Viaphone/InnerClass/FrameTestInnerClass.java [18:1] Incompatible type ...
this program is used to randomize data and add into Vector;but the data often is same;what's wrong?import java.util.*;public class RandomData{ static String[] jobs={"java Engineer","C++ Engineer","JSP Developer","EJB Developer","C Programmer","NetWorker Engineer","Windows Programmer","java ...
156 byte By
yu169409 at 2007-9-30 14:14:12
hi alli have a question about the deadlock. can anyone help me with some ways of preventing it. but first, what is the deadlock? thanks
489 byte By
yosep at 2007-9-30 14:14:19
helloI am having trouble displaying asian characters via an panel. I read asian phrases from a file and would like to display them on a drop-down menu. However, I can't seem to display them correctly. I first typed in asian characters on a note pad and saved it as ANSI text file, but this ...
I got this link from the javadesktop.org site. This is better than a tutorial, hilarious http://madbean.com/blog/2004/17/totallygridbag.html
155 byte By
jh1562 at 2007-9-30 14:14:28
I am working with tool tips for the first time. I am wondering if I am able to display the contents of a html file in a tool tip. If so, how?
I am unsure when I should make ActionListener an inner class and when I should implement ActionListener. Which is better or does it depend? RIght now I have it as an inner class.button1.addActionListener(new ActionListener() {public void actionPerformed(ActionEvent e) ...
458 byte By
lhtia at 2007-9-30 14:14:30
I'm developing a unit testing tool for AspectJ, which can originally generate the stubs for aspect unit to be tested. All these stubs are java files. After generation of stubs, how can I program the code to compile this unit together with these stubs, i.e. how can I put the functionality of ...
1538 byte By
A-S-I at 2007-9-30 14:14:34
Every time I "try" to implement the try-catch code in the method below, all of my other methods foul up because of either { or }. The code compiles fine without the try-catch, but when I add it in, it fouls things up? What am I doing wrong?private void ...
478 byte By
ozguny at 2007-9-30 14:14:40
Hi!I wrote a program in Java which downloads a URL file. I also want to add resuming functionality to it(Like GetRight) which makes it possible to start downloading from for ex. 1000000. byte.I tried to use InputStream class' skip(long n) function. But It first starts to download the file from ...
714 byte By
xxdxxd at 2007-9-30 14:14:42
Hi, Suppose I have two strings: str1="|2|abc|3.0|";str2="|2|abc||";How to use StringTokenizer to split the str1 to "2","abc","3.0", and split str2 to "2","abc" and ""(empty string)?I tried to use StringTokenizer st=new StringTokenizer(str1,"|"); this works, but StringTokenizer st=new ...
650 byte By
jd_brown at 2007-9-30 14:14:46
I am relatively new to Java, and I would be interested to know if there are conventions in Java for dealing with rounding errors on floating point arithmetic, such as arithmetic on 0.1, which is recurrent in binary.I regularly use probability models and it is rather cumbersome to instantiate a ...
When I run this command, It throws an exception and the msg i get back is "error=2"Process p = java.lang.Runtime.getRuntime().exec("rcl -c -u610878@highstream.net -pfuzzy7 -n303-923-1055");I've tried running other commands with no parameters and I get the same error. Does anyone know what ...
Hello Everybody,Does anyone know how I can my string for the 3 character sequence (T) to see if it is there? Currently I have tried if (Pattern.compile("(T)").matcher(my_str).find() == true) { } but that matches only the "T" while I need "(T)".Any and all help would be greatly ...
Hi, I have this app (it is same all along my posts in this forum guys!!! :) ). When deletting a directory (MS platform) the operation not always succed. See this code:File myFile = new File(myPathTo_a_folder);if (myFile.exists() ) if (myFile.delete() ) do_somethingelse display_a_warnning ...
I am sending a XML message on HTTP using POST from Client to the Server, I set the message inthe HTTPRequest.If I am sending anything smaller than 4089 bytes it is fine but if Itry to send a message greater than 4089 bytes, server receives only4089 bytes and the rest is trucated.//part of code ...
hi,how can i create a button in the Title bar, just near the (Min, Max,Close) buttons as we see it in AOL or CS Softwares. Can we do it with JAVA? if Yes then HOW. Tx in Advance FromSPYDER7890
632 byte By
dodger27 at 2007-9-30 14:15:30
I'm a foreigner and software engineer and I've been in USA for abt 5 years as Software developerand I faked my resume abt 50% to get into USA for the first time.This sin has been haunting me for years,but I worked my ass off for the money I was paid and was an asset with the US employers I ...
1415 byte By
schus777 at 2007-9-30 14:15:34
Hi Everyone,I found the web site http://www.antelmann.com/developer/ where I'm trying to access the CDDB of the JAR file. However, I'm not successfully getting it to work. Here are the steps that I've taken. If anyone has an idea of what I need to do to get it to work, that would be great! ...
466 byte By
greggrb at 2007-9-30 14:15:37
Hi,I am attempting to implement a listener on my server for http requests. Also, messages will be sent though using SOAP.My question is, can this listener run as a standalone service? or do I need to implement a web server and perhaps create a servlet to respond to anything coming through via ...
228 byte By
Fin13 at 2007-9-30 14:15:41
i have created a Login class that implements Runnablei want it to return a String to be used in another class. I know it is not possible to return anything from the public void run() method. So what do i do?
823 byte By
Dcaptain at 2007-9-30 14:15:44
anybody could please elaborate this one?this is taken from the Doube.toString(double) API explanation-How many digits must be printed for the fractional part of m or a? There must be at least one digit to represent the fractional part, and beyond that as many, but only as many, more digits as ...
317 byte By
p430 at 2007-9-30 14:15:55
Dear Sir or Madam,I have 2 folder which consists of many java sources and class files. I would like to ask whether there is a DOS command to compare the congruence of contents in the two folders because it is time consuming to view the listing of each folder.Many thanks in advance. ...
When in indeterminate mode, the JProgress Bar is throwing the null pointer exception listed below. It's not hooked in the source, and not catchable. It doesn't break anything, but looks bad in the console. Any one with the same issue? Solutions?Thanks..java.lang.NullPointerExceptionat ...
314 byte By
blmack44 at 2007-9-30 14:16:05
I am creating a simple application to process files at a server as they are FTP'd onto the server. What is the best, cleanest way to poll for new files coming onto the server directory? Just continously reading the directory, maybe with a small pause, seems so '90s.Better way anyone? ...
202 byte By
gaje7825 at 2007-9-30 14:16:14
Hi , It is mandatory to close all the Input/Reader streams after reading . what will happen ,If the streams(Input/Reader) are not closed.Thanks & RegardsGaj
Hi there,I am using the FileUpload class of Apache and getting an issue when I try to write the multipart post data (file) into a physical disk on the server. I am attaching herewith the servlet code. The error I get when I compile the code is:Information: 1 errorInformation: 0 ...
439 byte By
Dcaptain at 2007-9-30 14:16:40
hello Eclipse users,how to attach source file into Eclipse..my rt.jar file, which contains the .class files of the Java classes is located in this directory..C:\Program Files\JavaSoft\JRE\1.3.1_02\libI set the Archive variable path as : C:\Program Files\JavaSoft\JRE\1.3.1_02\liband the Root ...
23025 byte By
FrancisLe at 2007-9-30 14:17:08
I try to use DnD in a item from "explorer" in Linux into my application, but it does atually not work. The same version is work well on Windows. Below is code (3 separated files):/* * FileAndTextTransferHandler.java is used by the 1.4 * DragFileDemo.java example. */ import java.io.*;import ...
14222 byte By
quaxi16 at 2007-9-30 14:17:12
Hi, I've done a program, which is like a server - It opens a port and if somebody connects on it, it shows a website - well - it does. The problem: on the website is a java-applet and I get a nullpointerexception if I want to see it. If I only watch the website alone - it works?! Here is the ...
My problem: apache fop has a bug that it has a static Map field in a class that increases constantly. Is it possible to "unload" this class to ensure freeing up the references from this static field? And subsequent calls would reload the class when needed?
Cant seem to find where I can download Swing.Can anyone provide a link?Thanks
Hi,Can a class be locked? Is this possible?Can someone show me a code for this?rgds