saar nag

Greenhorn
+ Follow
since Jun 08, 2004
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 saar nag

Hi,

My program:
I'm trying to build a Task application.
Each task, is represented in a JPanel with its own information.

What I'm trying to accomplish:
If I have many tasks, I want the user to be able, to scroll through the task and manage each and every one.

How I try to accomplish it:
I creates a JScrollPane, and added a JPanel to it with Vertical Flow Layout (That defined in JDeveloper IDE).
Visually, each new Task, is created under the last one.

The problam:
1. Every time I add the New TaskPanel to the JPanel in the JScrollPane, I can't see the new Task In it, only after exiting and executing the program again.
2. It seems, that when there are to many Tasks to display in the JPanel, there is no scoll availiable, as if the JScrollPane is not aware of that information.

Other thoughts:
Is there a way to change the LayoutManager of the JScrollPane, so it can recieve more then 1 Panel. Or Am I stack with a Panel container that can handle multiple TaskPanels.


I hope my question is clear enough

Thanks Sa'ar
19 years ago