File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Website advice Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Website advice" Watch "Website advice" New topic
Author

Website advice

Ed Mirsky
Greenhorn

Joined: Apr 22, 2005
Posts: 11
I�m thinking of putting a math website up. I created an application, which has a 7,712 KB executable jar file. My project looks like this:

Main Frame
* A top canvas into which I draw and put images.
* A left scroll pane into which I draw.
* A right scroll pane into which I draw and put images.

Current Project Structure
Along with a large set of support classes, I have about 20 classes with 100 question per class. Each question uses the canvas and two scroll panes.

Advice Needed
Will my current project structure �fly� on the internet with 7,712 KB? Should I create a file for each of the 20 classes, and put 100 question into each file? I assume I can write the methods as a file of objects.

All help greatly appreciated,

Ed
Manuel Moons
Ranch Hand

Joined: Mar 05, 2002
Posts: 229
You are creating a Math website you say? But you are talking about Frame, Canvas, ...

What is it you are doing? Are you creating an Applet or a WebStart application? If so why are the jars so large? It cannot be the compiled classes that take up so much space! Are you using images? If so, maybe you can try to use smaller images. The size of the jars will not pose a problem but they will have to be downloaded and that takes time. I do not think a user wants to wait for your 7 MB application to be downloaded.

Take a look in your application and see what makes the jars so big.
Ed Mirsky
Greenhorn

Joined: Apr 22, 2005
Posts: 11
Manuel,

Thanks for trying to help me. As a newcomer to java, I hadn't heard of Java Web Start. The idea of installing an application on a remote computer and maintaining control over it is intriguing, but for now, I'll stick to trying to get an applet running on the internet.

You were rightly confused about the structure of my applications. I referred to MainFrame.class as Main Frame and I draw in JPanels not canvas.

I think most of the 7 MB of my application is taken up by support methods and text files. (Explanations are quite wordy.) At this point, images files account for approximately 200 KB.

Is there anything I can do to make the size of my application/applet smaller: < 7 MB? Does putting the questions in files rather than in classes affect the size of the program?

Thank you for your help,

Ed
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Website advice
 
Similar Threads
drawing lines between two internal frames on a desktop pane
JScrollPane, spacing and scrolling issues - HELP!
Text Editor
Make Line Graph scrollable in a JScrollPane?
putting screen output inside scroll bar