@@ -114,11 +114,13 @@ protected void showSettings() {
114
114
JPanel globalPanel = new JPanel (); // The global panel contains the global settings above the profile tabs
115
115
globalPanel .setLayout (new BoxLayout (globalPanel , BoxLayout .PAGE_AXIS ));
116
116
JLabel titleGlobalConfig = new JLabel ("Global Configuration Settings" );
117
- titleGlobalConfig .setText ("<html><font color=orange size=4><b>Global Configuration Settings</b></html>" );
117
+ titleGlobalConfig .setForeground (Color .ORANGE );
118
+ titleGlobalConfig .setFont (titleGlobalConfig .getFont ().deriveFont (Font .BOLD , titleGlobalConfig .getFont ().getSize () + 4 ));
118
119
globalPanel .add (titleGlobalConfig );
119
120
// Checkboxes to enable/disable the extension for each Burp Suite tool
120
121
JLabel labelTools = new JLabel ("Enable the extension for the following Burp Suite tools:" );
121
- labelTools .setText ("<html><strong>Enable the extension for the following Burp Suite tools:</strong></html>" );
122
+ Font labelToolsFont = labelTools .getFont ();
123
+ labelTools .setFont (labelToolsFont .deriveFont (labelToolsFont .getStyle () | Font .BOLD )); // make text bold
122
124
globalPanel .add (labelTools );
123
125
if ((Signing .callbacks .loadExtensionSetting ("enableProxy" ) != null ) &&
124
126
Signing .callbacks .loadExtensionSetting ("enableProxy" ).equals ("true" )) {
@@ -150,7 +152,8 @@ protected void showSettings() {
150
152
globalPanel .add (checkBoxToolRepeater );
151
153
// Debugging settings
152
154
JLabel labelDebugging = new JLabel ("Debugging" );
153
- labelDebugging .setText ("<html><strong>Debugging:</strong></html>" );
155
+ Font labelDebuggingFont = labelDebugging .getFont ();
156
+ labelDebugging .setFont (labelDebuggingFont .deriveFont (labelDebuggingFont .getStyle () | Font .BOLD )); // make text bold
154
157
globalPanel .add (labelDebugging );
155
158
checkBoxDebug .setSelected (Signing .DEBUG ); // set the checkbox if debugging logs is enabled
156
159
globalPanel .add (checkBoxDebug );
@@ -176,7 +179,8 @@ public void mouseClicked(MouseEvent e) {
176
179
@ Override
177
180
public void mouseEntered (MouseEvent e ) {
178
181
// the mouse has entered the label
179
- labelDoc .setText ("<html><a href=''>" + doc + "</a></html>" );
182
+ Font labelDocFont = labelDebugging .getFont ();
183
+ labelDoc .setFont (labelDocFont .deriveFont (labelDocFont .getStyle () | Font .BOLD )); // make text bold
180
184
}
181
185
182
186
@ Override
@@ -193,7 +197,8 @@ public void mouseExited(MouseEvent e) {
193
197
maxSize = new Dimension (Short .MAX_VALUE , 25 );
194
198
globalPanel .add (new Box .Filler (minSize , prefSize , maxSize ));
195
199
JLabel titleProfileConfig = new JLabel ("Profile Configuration" );
196
- titleProfileConfig .setText ("<html><font color=orange size=4><b>Profile Configuration</b></html>" );
200
+ titleProfileConfig .setForeground (Color .ORANGE );
201
+ titleProfileConfig .setFont (titleProfileConfig .getFont ().deriveFont (Font .BOLD , titleProfileConfig .getFont ().getSize () + 4 ));
197
202
globalPanel .add (titleProfileConfig );
198
203
199
204
rootPanel .add (globalPanel , BorderLayout .PAGE_START );
0 commit comments