Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Title border panel with c# [closed]

How can I add a border with title to a panel using c# like this:
see this pic.

like image 370
Slim EN Avatar asked Jan 03 '15 09:01

Slim EN


People also ask

How do I add a border to a JPanel title?

createTitledBorder() − To create a titled border. JPanel. setBorder(border) − To set the desired border to the JPanel.

What is initUI in Java?

public Example() { initUI(); } It is a good programming practice to put the code that creates the GUI inside a specific method.


1 Answers

  1. Open the toolbox
  2. Select the GroupBox control and drag it onto your form
  3. Set the groupbox Text property to the desired caption
  4. Drag other controls inside the groupbox
like image 125
Tim Eeckhaut Avatar answered Sep 24 '22 17:09

Tim Eeckhaut