Snoop One

Greenhorn
+ Follow
since Mar 14, 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 Snoop One

Hi Udegbunam

Take a look at JasperReports: http://jasperreports.sourceforge.net/index.html
under the "quick how to" there is a "Printing a report" section.

Hope it's helpfull.
19 years ago
Hello Kavan,

I do not know if I understand the problem correctly; hence, I would say that the scroll pane should not resize according to the client (in your case JTable) but according to its parent (the component that contains the JScrollPane). If you want to change the way the scroll pane is showing its client's information you should address these changes to the scrollpane's view port.

Hope it helped more than confusing...
19 years ago
Hi Sayan,
Take a look on the link below...

EJB Tutorial : http://www.tutorialized.com/tutorial/eclipse-xDoclet-EJB-Tutorial/6310
Hope it helps...

PS.: You do not need the non-free MyEclipse plugin but can do it aswell with the free J2EE plugin for eclipse.
Hi Matt,
Well it depends on where you place the responsibility? You can not escape the fact that somewhere in the application a class (or a set of classes) must assemble the GUI.
So if you do not want to use inheritance (most of the sun tut. do this) you can just use composition. An example is listed below.



In case of inheritance, do not use it unless you want to change the behavior of the parent or if you have an urge to use polymorphic variables.

Aabha: you can actually use frame.add() method without getting the content pane in JAVA 1.5
19 years ago
Hello,
Well you should maybe look in to the model-view-controller architecture of swing.

Very brief intro:
http://www.unknownroad.com/rtfm/swingtut/mvc.html

The swing architecture:
http://java.sun.com/products/jfc/tsc/articles/architecture/

So what you need to do is to use a DefaultListModel as your data model and add any changes on the DefaultListModel object.
19 years ago