Official Website of Peeranha42 Peeranha42

Peeranha42
HOME

ABOUT
peeranha42
news
team

DOWNLOAD

DOCUMENTATION
description
handbook
tutorials
api
license

COMMUNITY
forum
bugs

CONTACT

Universität Bremen
 

Creating P42 Preference Pane

You can find the preferences of Peeranha42 and the supplied Plugins as one tab of the GUI. As you can see here, the preference tab is organized by a JTree. Besides a main preference panel for the client, Peeranha42 offers two kinds of Preference panels for each plugin. The first one is generated automatically by the client.

Every plugin (jar file) placed in the plugin directory is listed in the Preference tab. The automatically generated panel displays information about the Plugin using the info class. Furthermore you can start and stop the plugin from this panel or mark it for auto load on start-up. If you as a developer want to use the preference tab to configure custom settings for your plugin, then you can supply these settings to the GUI by using the addPrefPanels(PluginID pid,JPanel p_panels[]) method in the main GUI class: P42_gui_default. Your panels are inserted below the branch of your plugin by order of the supplied array. Adding new branches to build up an advanced hierarchic tree (with sub branches) is not implemented yet but will be added later versions.

Adding panels:
This should happen while your plugin is starting. Call addPrefPanels(..) in your run method.

Removing the panels:
If your plugin is exiting you have to call unloadPlugin(PluginID) in your stop() method. Your panels are removed then automatically.


>> back
 
Latest News
01.07.2005 : Release of Peeranha42 1.3 and P42 Chat 1.2

29.06.2005 : Release of P42 Programer's Guide

13.06.2005 : Release of Peeranha42 1.2.1

09.06.2005 : Release of Peeranha42 1.2, P42 Chat 1.1 and P42 Pirate Radio 0.2.5

07.06.2005 : Release of P42 Chess 1.0.1, P42 Filesharing 1.0, P42 GameLobby 0.6 and P42 Peerbay 0.4

22.05.2005 : Release of Peeranha42 1.1, P42 Chat 1.0, P42 Chess 1.0 and P42 Filesharing 0.9

16.05.2005 : Release of P42 Chat 0.9.2 and initial release of P42 Peerbay 0.3

newsarchiv

SourceForge.net

printable version | imprint | disclaimer | contact
© Copyright 2005 - University Bremen, Germany. All rights reserved.