Fran Varin

Greenhorn
+ Follow
since Aug 08, 2003
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 Fran Varin

Michael,
Thank you...I was not aware that the article you pointed out existed. As I mentioned, I don't spend alot of time writing GUI APPS...thanks for your help that cleared it up for me.

Fran
17 years ago
OK...so I spend a lot of time doing server coding and not swing... I changed the TextArea to a JTextArea and all is well. Can someone explain this behavior or where it may be documented?
17 years ago
Hi, I am in the process or writing a class that has a simple menu at the top of the JFrame with a textarea below it. When the frame appears I can see the menu but, when I select an item on the menu it appears to be "under" the text area. When I remove the building of the textarea and contentpane the menu works fine. Here is a snipit of code:

Container c = getContentPane();

setTitle("Console");
setSize(width,height);
setJMenuBar(buildMenu());
c.setLayout(new BorderLayout());
c.add("Center" , aTextArea);


aTextArea is defined as an AWT TextArea. The stuff which is happening here is very simple but, I cannot seem to figure out why I'm seeing the behavior I am. The irony is that I'm sure it is something simple that I've overlooked.

Any help would be appreciated.
Fran
17 years ago
I have a JTable that I initialize with one blank row by using the table model's constructor. I then select the row programatically just after I instantiate the JTable using "jTable.setRowSelectionInterval(0,0)". When the table renders I have my headings and the one blank row but, the line is not highlighted in any way. If I click on the row I receive the highlighting.

The behavior I'm trying to achieve is to have the row highlighted when I set the selected row programatically. There may be times (ex. on a right mouse click) when I would like this behavior as well. But, for now if I can get the scenario above to work I'll consider that a huge step forward.

Thanks for all replies.
Fran
17 years ago
It has been suggested that CVS has a limit (estimate 120) on the number of branches that can exist for any given "HEAD" branch. Can anyone either refute or verify this observation? We cannot find any information on this in any form of documentation.
We use the following configuration:

Connection type: pserver
userid: your userid
password: your password
host: is the name of the machine on the network where CVS server is installed
repository path: the path to the specific CVS repository you care about

use default port: selected
use the repository idenfication string as the label: selected

Server Encoding: Other = Cp1252


You can connect to CVS by opeining the CVS perspective and righ clicking in the "CVS Repositories" space.

Then select New-->Repository Location


You will then be presented with a dialog...fill it out according to the imfo above.
have you taken a look at MyEclipse? The cost is minimal and it provides a huge amout of capability. Here is a link if you're curious

http://www.myeclipseide.com/
I know I've seen a solution to this somewhere a while back but, cannot remember where I saw it. The issue is that I'm running a Java based command line program that at some point solicits input from a user. However, when running the project in Eclipse the console does not allow user input making it very difficult to develop/debug a console program. So, I'm looking for a plugin or some kind of Eclipse config option that would allow such a behavior.
This may seem like a crazy question but.... I've downloaded both WASCE and its companion plugin. However, there is not documentation anywhere that I can find on how to activate the plugin once you copy the contents to the plugins and features directory of Eclipse. Does anyone have this working and if so what steps did you follow to enable the plugin?
18 years ago
Thanks...I really appreciate the input. I've seperated the classes into their own jar file and included them on the boot class path. I still don't fully see why the classes are not seen by the classpath when the jvm starts up though.
18 years ago
Hi Ben,
Thanks for the reply. I reviewed your post and the link you sent. I tried the following class loaders with the corresponding result:

Bootstrap (works)
System (Could not use because I'm starting from a .bat file)
Common (ClassNotFound)
Catalina (ClassNotFound)
Shared (ClassNotFound)


I'm wondering if this is a nuance in using java.util.logging. It appears to be started very early in the process and I'm wondering if it MUST be associated with the bootstrap class loader?



Fran
18 years ago
We are using Tomcat 4.1 and jdk 1.4.2. We have written some customized handlers and formatters, these classes are contained in a common Jar file. The only way we can get Tomcat to see the jar file is if it resides in the Java JRE's lib\ext directory. We have tried classpathing the jar but, it seems that Tomcat's initial startup does not see the jar resulting ain a ClassNotFoundException.

Putting the jar in the "ext" directory is OK but, we run into dependencies that now require additional jar files to be included there as well. Also, classes that reside in web applications can run into class loader issues because the common jar has been loaded by a different class loader.

My question is...have we missed the point with Tomcat? Is there a different approach that we should consider in having Tomcat see the jar file. We're new to using Tomcat and are not too familiar with its nuances.

Any help would be appreciated.

Fran
18 years ago
I am using axis and I have a class that implements a web service method. I would like determine at runtime the service name

used by the caller when my web service class method is invoked. Is there a way to get this information?
18 years ago
If I have a parent class with a constructor that takes a parameter and I create a child class that extends the parent I cannot instantiate the child by using the parent's parameterized constructor. I must create a constructor with the same signature and call super().

While I can accept thsi behavior as fact, I cannot understand the rationale for such a policy within the language. Would someone care to expound on the philosophy on why this behavior is part of the language?
18 years ago
Since the behavior is different I am struggling with why there are two approaches then. If the behavior was identical then dispatch.forward would clearly represent an advantage in performance and flexibility when access to server based data (i.e. beans bound to the request) is desired. In that scenario, sendRedirect would be appropriate to point a browser at a different site altogether. This idea has been my general understanding for some time.

So, if disptach.forward is handled so differently then, how can applications and even frameworks rely on it for error free transfers of control between servlets and JSPs? Why use it at all? In the case of a sensitive transaction perhaps a credit card transaction as Mr. Strack points out, how can we ensure that we do not receive duplicate payment?

Please understand, I'm not being argumentative. I'm just searching for a clear understanding on this point. It seems that disptach.forward is a fundamental function within java and to see such a behavior is surprising.

Fran
18 years ago