If you want Class B to be in inner class of A :

  • Select the Inner tool at the bottom of the toolbar
  • Drag between A (the owning class) and B (Inner class)


The diagram shows a link between A and B, but it's just graphical. In the project explorer on the left, notice that the Class B is contained in Class A.