[sip-comm-dev] Profile Manager progress status


#1

Hi !

I'm happy to announce you that from my point of view the profile
manager is almost complete.

The profile manager is included in two places.
The first place is the SIP Communicator launcher : here, the manager
ask (if needed) which profile the use want to use. The last used
profile is automatically selected. From this fist window, the user can
select the profile and start SC or simply exit. He can also create a
new profile, rename or delete a profile. The user can also check a
checkbox. If this checkbox is checked the program won't show this
dialog at the next program's sessions.

When SC is started, the user can find the Profile Manager in the
configuration window. The user can do the sames actions but he can't
delete or rename the current profile.
Since there isn't a restart method, the user can select the profile
that will be used in the next session. I'm currently working on this
point.

If no profile is stored in the computer, the manager create a default
one and if there are files for a previous sessions (ie : data before
the installation of the profile manager), the manager will add them
into the default profile.

Here is some screenshots showing my work :
The startup dialog : http://scprofile.files.wordpress.com/2008/06/startup.png
The configuration window and the create profile dialog :
http://scprofile.files.wordpress.com/2008/06/diaglos_sc.png

As you can see, I've just a little problem with the JList size, I
don't know how to make it use all te available space instead of the
buttons. Does someone know how to ?
Currently the JList is included in a JPanel with a BoxLayout. The
JList (JScrollPane) is in the center position and the JPanel
containing the button is added at the east position.

Bye

Damien

···

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#2

Hi Damien,

In my opinion, you can solve this problem with following codes:

JPanel_Buttons.setSize();
JPanel_Buttons.setPreferredSize();
JPanel_Buttons.setMaximumSize();
JPanel_Buttons.setMinimumSize();

JScrollPane.setSize();
JScrollPane.setPreferredSize();
JScrollPane.setMaximumSize();
JScrollPane.setMinimumSize();

and try to add JScrollPane at the _west_ position instead(add JPanel at the
center).

Hope this helps,
Dai

···

2008/6/30 Damien Roth <damien.roth@gmail.com>:

Hi !

I'm happy to announce you that from my point of view the profile
manager is almost complete.

The profile manager is included in two places.
The first place is the SIP Communicator launcher : here, the manager
ask (if needed) which profile the use want to use. The last used
profile is automatically selected. From this fist window, the user can
select the profile and start SC or simply exit. He can also create a
new profile, rename or delete a profile. The user can also check a
checkbox. If this checkbox is checked the program won't show this
dialog at the next program's sessions.

When SC is started, the user can find the Profile Manager in the
configuration window. The user can do the sames actions but he can't
delete or rename the current profile.
Since there isn't a restart method, the user can select the profile
that will be used in the next session. I'm currently working on this
point.

If no profile is stored in the computer, the manager create a default
one and if there are files for a previous sessions (ie : data before
the installation of the profile manager), the manager will add them
into the default profile.

Here is some screenshots showing my work :
The startup dialog :
http://scprofile.files.wordpress.com/2008/06/startup.png
The configuration window and the create profile dialog :
http://scprofile.files.wordpress.com/2008/06/diaglos_sc.png

As you can see, I've just a little problem with the JList size, I
don't know how to make it use all te available space instead of the
buttons. Does someone know how to ?
Currently the JList is included in a JPanel with a BoxLayout. The
JList (JScrollPane) is in the center position and the JPanel
containing the button is added at the east position.

Bye

Damien

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#3

Hi Dai,

Thank for the help but I've already found the problem. With the help
of Yana, I've just switch my layout from BoxLayout to BorderLayout and
as you can see on the screenshots (blog link :
http://scprofile.wordpress.com/) the JList take all the available
space.

@+

Damien

···

2008/7/3 DaiZW <shinysky1986@gmail.com>:

Hi Damien,

In my opinion, you can solve this problem with following codes:

JPanel_Buttons.setSize();
JPanel_Buttons.setPreferredSize();
JPanel_Buttons.setMaximumSize();
JPanel_Buttons.setMinimumSize();

JScrollPane.setSize();
JScrollPane.setPreferredSize();
JScrollPane.setMaximumSize();
JScrollPane.setMinimumSize();

and try to add JScrollPane at the _west_ position instead(add JPanel at the
center).

Hope this helps,
Dai

2008/6/30 Damien Roth <damien.roth@gmail.com>:

Hi !

I'm happy to announce you that from my point of view the profile
manager is almost complete.

The profile manager is included in two places.
The first place is the SIP Communicator launcher : here, the manager
ask (if needed) which profile the use want to use. The last used
profile is automatically selected. From this fist window, the user can
select the profile and start SC or simply exit. He can also create a
new profile, rename or delete a profile. The user can also check a
checkbox. If this checkbox is checked the program won't show this
dialog at the next program's sessions.

When SC is started, the user can find the Profile Manager in the
configuration window. The user can do the sames actions but he can't
delete or rename the current profile.
Since there isn't a restart method, the user can select the profile
that will be used in the next session. I'm currently working on this
point.

If no profile is stored in the computer, the manager create a default
one and if there are files for a previous sessions (ie : data before
the installation of the profile manager), the manager will add them
into the default profile.

Here is some screenshots showing my work :
The startup dialog :
http://scprofile.files.wordpress.com/2008/06/startup.png
The configuration window and the create profile dialog :
http://scprofile.files.wordpress.com/2008/06/diaglos_sc.png

As you can see, I've just a little problem with the JList size, I
don't know how to make it use all te available space instead of the
buttons. Does someone know how to ?
Currently the JList is included in a JPanel with a BoxLayout. The
JList (JScrollPane) is in the center position and the JPanel
containing the button is added at the east position.

Bye

Damien

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

--
Damien ROTH
Programmeur n.m : Celui qui résout un problème que vous n'aviez pas,
d'une façon que vous ne comprenez pas.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net