Hello everyone,
I have been a long time member of tek-tips, but am fairly new to the J2EE forum.
I am trying to access a Java bean deployed using Sun Application server from outside the container (ie. an external client Java program). There are no jsp pages, just an application client and 1...
Hi all,
I am very new to the forum, but I have been programming in Java for years. I have the most weird problem running my own servlets in Tomcat. I believe that I have installed the Tomcat program correctly because there are no errors and I can run the example servlet applications provided...
Hi All,
I have a pretty simple question regarding JTables. Basically, I am trying to update one column dynamically based upon the user typing in a value into another column.
My Key pressed action listener appears to be functioning properly as it processes the event. However, when I try to get...
Hi,
I have written a program that loops around grabbing information from one URL, but with different search queries. The program sometimes runs for days until completion as expected. However, other times, it freezes for unknown reasons. I am catching all errors, but there are none to be caught...
Hi,
I have a pretty simple question. I have written a multithreaded program and it seem to work pretty well. However, when the threads are done their execution, the program does not seem to finish, but just hangs. I thought that when the threads finished their execution, the resources were...
Hi Everyone,
I know how to get the content for basic HTML pages using Java. However, when I try to get the content for something like "http://inventory.overture.com/d/searchinventory/suggestion/?term=telephone.com", Java responds that I am including an illegal character (ie '?') in...
Hi,
I am pretty familar with the Java programming lanuguage, and have written code to read the get the html code of general URLs. However, if the URL takes the form of a google search result (ie) ...
Hi,
I have been trying to figure out how to create a custom comparator that I can use to handle a list of items of a user defined data type. For instance:
class mytype
{
int a;
String b;
String c;
URL d;
}
If I want a comparator that can order these items by int a, how could I construct...
Hi All,
I have a JFrame which contains a JList Object. I initialize the JList object normally using:
urlList = new javax.swing.JList(barstools);
However, I want to be able to add to the JList and Remove from it. There is an actionListener for a menubar item that deletes all the items from the...
Hi everyone,
I was wondering if anybody could help me with this problem. I have a main class which extends JFrame and it contains a JTextArea. The main class makes a call to another class which performs some processing in a looping manner:
while (s.hasMore())
{...
Hi,
I am having trouble writing a program that can display html files, and allow the user to use scrollbars to view the entire document. The characters appear blurred and distorted whenever I use the scrollbars. The original html area that can be viewed is cleared, until the scrollbars are...
help!!!
I have spent the last few days trying to print a JTextArea over multiple pages. The code I have worked with seems to print the contents of a JTextArea fine over a single page, but fails to print any further. I have provided this code below. If anybody knows how I can extend it to print...
Hello all,
I am having some trouble printing the contents of a string using Java. I am using the syntax below. It seems to work well if the string consists of normal characters, but malfunctions if the string contains special characters such as '\n', '\t' ,etc. As most documents contain these...
Hello,
I have a pretty easy question, providing that somebody knows the solution. If I have a JScrollPane that contains a JTextArea and JTextArea keeps getting data appended to it. Is there a way (ie. a fxn call) that I can use to automatically scroll to the bottom.
thanks
Brinker
Hello,
I have been working on a problem that involves executing a command line statement in java such as gcc -c fileName. I want to capture the screen output (ie. errors, success) which generally appears as text such as :
compile successful
or
Error in line 23
Since these commands do not...
Hello all,
I am trying to construct a program that tries to execute a command line statement inside a Java program. I have determined that the syntax below works well if the statement is valid (ie. runs a self contained c program). However, if the statement is invalid, there is nothing...
Hello all,
my problem is probably a fairly routine one. I have built an application which consists of 2 classes. The first class is the main class and contains a word processor like text area and a menu bar. The second class contains a JFrame including various text JTextFields and one JButton...
Hello,
I am trying to launch and executable file from witin a Java program (under a Windows 98 and Unix platform). I am using the following code to launch the executable using Windows:
import java.io.IOException;
public class WorkingWithExeFiles
{
public static void main(String argv[])
{...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.