How can I add a border with title to a panel using c# like this:
see this pic.
createTitledBorder() − To create a titled border. JPanel. setBorder(border) − To set the desired border to the JPanel.
public Example() { initUI(); } It is a good programming practice to put the code that creates the GUI inside a specific method.
GroupBox
control and drag it onto your formText
property to the desired captionIf you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With