Scott Krasnigor

Greenhorn
+ Follow
since Oct 10, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Scott Krasnigor

Thanks for your prompt response. Works just fine.
16 years ago
I have a simple JDialog that gets envoked on a certain event. It contains a JScrollArea with a JTextArea attached. When my Dialog is displayed, the text area is not visible. Any assistance would be appreciated.the code is below:

16 years ago
Thanks for the reply. I guess I wasn't very clear with my question. Given a node (and children of the node) of xml from the source document, I translate it into the destination document. What I want to do is store that translated node so that I can added it later on without having to re-translate that section. The reasoning being that I need to append the stored translated node to each subsequent translated node. Hope this make sense.
I am trying to translate an XML document into a specialized form of XML via XSLT. During the translation process, there are certain cases where I need to reuse a previously translated node and it's children. I am having trouble figuring out how to store the node when it is translated and output it to the new document when needed. Thanks.
Solved it. The dimensions of the nodes were not being calculated correctly. The nodes were being drawn with a size of zero. I changed how the dimension of the JPanel is obtained (which is used to calculate the dimensions of the tree and it's nodes) and that fixed the problem. Thanks.
18 years ago
nope. no sign of the nodes. The initial text that was displayed is cleared but the nodes don't appear.
18 years ago
I am trying to draw a binary tree on a JPanel. I subclassed JPanel and overrided the paintComponent method. However, my nodes aren't being drawn. When the application starts, there is no tree to display and text is displayed in the window asking to load a new tree. This part is working. But when I load a tree, I just get a blank panel. The paintComponent method and the drawNode method is listed below. Sorry if the code doesn't format properly - first time.

18 years ago
Thanks for the reply. If I understand right, the piped streams don't pass objects? I have a track class and need to pass instances of a track between the threads. If the piped streams won't pass the data I want, then I am interested in checking out your solution. I will enable my email in case you would rather send it vice posting it.
18 years ago
I am playing around with a multi-threaded rule-based application. I have one thread reading data from a file doing some processing and then passing the data on to a control thread. The control thread evaluates the data against a set of rules and passes the data onto other processing threads based on the results of it's evaluation. I have been reading up on PipedInputStream/PipedOutputStream and want to implement this type of thread communication but am having trouble getting my head around it. I wanted to create 2 classes - PipedInputThread and PipedOutputThread, then create instances of these as needed. Does this make sense? If so, how would I write a generic run() method for the classes? Thanks in advance for any help.
18 years ago