Ahmed Matar

Greenhorn
+ Follow
since Mar 23, 2002
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 Ahmed Matar

I'm developing a Chat Application thats in its final stages. The application is quite large with many features. I'm thinking about whether to distribute my application as an applet that uses the Java Plugin or distribute it as a application w/JNLP with web start. I know that the Java Plugin has a Cache feature which is vital to me since I don't want the applet's startup time to be as slow as the first time the applet is accessed. I'm wondering if anybody can tell me any reason(s) why I should consider Web start over the Java plugin? Any performance differences between the two (Is it true that applets running the browser's sandbox run typically slower than a java application?). Also with web start, I doubt this can be done, but is it possible to create a compact jre jar file (I'm using jre 1.4) that only conatins the jre classes that my application uses so that the user doesn't have to download the whole jre file with web start, but web start will instead download this file.

Ahmed
21 years ago
I'm trying to add some components to a JDesktopPane in addition to some JInternalFrames such that the JInternalFrames will display in front of these components when they are not iconified. The problem is that JDesktopPane's layout manger is null and once you set it to any LayoutManager by calling setLayoutManager(...), then the JInternalFrames appear on the same layer as the other components in the JDesktopPane and will be aligned with them according to the chosen LayoutManager's policy (very weird looking). So I'm figuring that the only way to display a JPanel for example in the background is by specifically calling setBounds or setSize method on this JPanel. In this way the JInternalFrames will behave "normally". However the problem I am facing with this approach is that since I'm not using a LayoutManager, then this means that I If the JDesktopPane's parent is resized then the JPanel I have will not resize automatically because the LayoutMananager of the JDesktopPane is null. So The only solution I have though of is to have the listen for Component resizing events by having the Parent (JFrame) implement ComponentListener and listen for the the componentResized event and whenever the JFrame is resized I can resize the background JPanel to the intended size by calling setBounds on it inside this method. This approach works, but I have not found it to be reliable. Sometimes (I'm not sure which one occurs) either the resize event is not detected or the JPanel is not resized after the setBounds call, which results in some strange look. This problem occurs I would say 1/10 times when the JFrame is resized.
Does anybody have any idea on how to solve this problem?? ? Also if anybody knows how to use a LayoutManager with JDesktopPane with the requirement that the JInternalFrames associated with this JDesktopPane behave correctly, then please inform me how to do so.
Ahmed
21 years ago
I have used a number of IDEs: JBuilder(short period of time), JPadPro, JCreator Pro and I played around with Forte. JBuilder is excellent! It has every single feature you can think of and more, but it will cost you. I used version 3. Howvever, I stopped using JBuilder because I like to be in full control of my code and hate code generation. I have used JPadPro www.modelworks.com for over 3 years and I loved it! I have now switched to Jcreator Pro www.jcreator.com, which suits me a bit more.
Ahmed
21 years ago
What are Daemon threads? and what is the difference between them and "normal" threads?
22 years ago
What is the difference between a Stateless Client, a Thin Client & a Fat Client?
22 years ago
I'm developing a large chat application (signed applet clients) in Java. I have developed most of the application already using Java and RMI. After careful thought, I am thinking of using CORBA instead of RMI. The main reasons for this are:
* Performance: My application is a quite complex with many features, and with many clients using it performance is a key issue. The benchmarks that I have seen comparing the performance of CORBA (different ORBs) and RMI clearly show that CORBA is many more times faster than RMI.
* The complexity of the CORBA architecture means much more flexibly in the way that clients and servers are implemented. For example, the POA policies (to create Servant Locators for example) are something that I'm highly interested in and believe will improve my application.
However there is one concern that I have with CORBA: That is that it doesn't support HTTP tunneling (right?). I know that some ORBs like Visibroker do, but I'm mainly interested in using the J2SE 1.4 CORBA support instead of other ORBs, because my client is an applet (with Java Plugin) which I want to load quickly and not download any extra jar files of ORBs and cost is another issue. I know that RMI supports tunneling. HTTP tunneling is very important to me so that clients can connect to a server from behind a firewall (note: both clients and servers implement callbacks), I'm wondering if there is any way of achieving this with J2SE CORBA (or with small jar files of other ORBs)? I have thought of "manually" doing the tunneling for clients that behind firewalls with java code and not use CORBA for these clients, but I anticipate this to be too complex (Agree??) since the whole idea of using middleware is not to be get involved in coding TCP socket connections.
What about RMI-IIOP? Will this solve the firewall issue? Ofcourse, this means that the client should be written in RMI and server in CORBA (Is that what it means?) (It is more important to me that the server be in CORBA than the Client). What about its performance?
Any ideas?
Ahmed
22 years ago