@@ -35,25 +35,25 @@ public MainGUI() {
35
35
ActionPanel actionPanel =new ActionPanel ();
36
36
actionPanel .setLayout (new MigLayout ("center,align center,fillx" ));
37
37
38
- JComponent wallet =createLaunchButton ("Wallet" ,Toolkit .WALLET_ICON ,this ::launchWallet );
38
+ JComponent wallet =createLaunchButton ("Wallet" ,Toolkit .WALLET_ICON ,this ::launchWallet , "Open a Convex Wallet, connecting to any existing network" );
39
39
actionPanel .add (wallet );
40
40
41
- JComponent testNet =createLaunchButton ("Peer Manager" ,Toolkit .TESTNET_ICON ,this ::launchTestNet );
41
+ JComponent testNet =createLaunchButton ("Peer Manager" ,Toolkit .TESTNET_ICON ,this ::launchTestNet , "Launch a DevNet with the Peer Manager. This gives you a test network you can use freely for testing and development purposes." );
42
42
actionPanel .add (testNet );
43
43
44
- JComponent latticeFS =createLaunchButton ("Lattice Filesystem" ,Toolkit .DLFS_ICON ,this ::launchDLFS );
44
+ JComponent latticeFS =createLaunchButton ("Lattice Filesystem" ,Toolkit .DLFS_ICON ,this ::launchDLFS , "Launch a DLFS file browser. EXPERIMENTAL." );
45
45
actionPanel .add (latticeFS );
46
46
47
- JComponent terminal =createLaunchButton ("Client Terminal" ,Toolkit .TERMINAL_ICON ,this ::launchTerminalClient );
47
+ JComponent terminal =createLaunchButton ("Client Terminal" ,Toolkit .TERMINAL_ICON ,this ::launchTerminalClient , "Open a Convex REPL terminal, connecting to any existing network" );
48
48
actionPanel .add (terminal );
49
49
50
- JComponent hacker =createLaunchButton ("Hacker Tools" ,Toolkit .HACKER_ICON ,this ::launchTools );
50
+ JComponent hacker =createLaunchButton ("Hacker Tools" ,Toolkit .HACKER_ICON ,this ::launchTools , "Open a set of useful tools for hackers and power users." );
51
51
actionPanel .add (hacker );
52
52
53
- JComponent discord =createLaunchButton ("Discord" ,Toolkit .ECOSYSTEM_ICON ,this ::launchDiscord );
53
+ JComponent discord =createLaunchButton ("Discord" ,Toolkit .ECOSYSTEM_ICON ,this ::launchDiscord , "Go to the Convex community Discord (opens web browser)." );
54
54
actionPanel .add (discord );
55
55
56
- JComponent www =createLaunchButton ("convex.world" ,Toolkit .WWW_ICON ,this ::launchWebsite );
56
+ JComponent www =createLaunchButton ("convex.world" ,Toolkit .WWW_ICON ,this ::launchWebsite , "Go to the Convex main website (opens web browser)." );
57
57
actionPanel .add (www );
58
58
59
59
add (actionPanel );
@@ -96,11 +96,12 @@ public void launchWebsite() {
96
96
Toolkit .launchBrowser ("https://convex.world" );
97
97
}
98
98
99
- public JPanel createLaunchButton (String label , ImageIcon icon , Runnable cmd ) {
99
+ public JPanel createLaunchButton (String label , ImageIcon icon , Runnable cmd , String tooltip ) {
100
100
JButton butt =new JButton (icon );
101
101
butt .addActionListener (e ->{
102
102
EventQueue .invokeLater (cmd );
103
103
});
104
+ butt .setToolTipText (tooltip );
104
105
105
106
JLabel lab = new JLabel (label );
106
107
lab .setHorizontalAlignment (SwingConstants .CENTER );
0 commit comments