jinsong_l

Greenhorn
+ Follow
since Nov 18, 2001
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 jinsong_l

Recently I'm working on a project as requested by my lecturer.
It's a simple website which need to use Java, XML and a database.
Now the Java part is used in JSP, and for the database I have chosen MySQL.
The question that keep comes to my mind is that, why do I need XML? Why can't I use just JSP with MySQL?
I did try ask the question from my lecturer. He said there's a lot of resources online and asked me to find out myself. Up till now, the only reason I can think of is that, if in the future I want to implement the same website on WAP technology (or others such as ASP), I only need to come out with the application that interact with XML without it touching the database.
Is this a valid reason?
Any other reason for the usage of XML here?
What are the usage of XML in other applications?
I just wish there is a JStatusBar kind of thing in Java.
I have been having problem with creating a status bar in Java, I tried using JTextField and JLabel, they worked quite the way I wanted to... but there is one problem.
My application has Menubar,toolbar and status bar. So in my layout, I setMenuBar(theMenuBar), and then the toolbar in BorderLayout.North, the statusbar in BorderLayout.South. Putting in those listeners are fine. The problem is, the tool bar suppose to be able to put to any 4 sides (like most windows application.. hope you all cna understand). So now, if I were to drag the toolbar to the bottom, in windows application, the toolbar would have dock itself on top of the statusbar. In my case the toolbar would "cover over" the status bar, thus making the status bar not viewable. When I drag the toolbar back to dock to the North side, the status bar is disappeared.
Anyway to overcome this problem?
22 years ago