How do you create a panel?

I haven’t coded in a few months and forgot a lot of basic stuff. I want to know how to create a panel.

[lua]
function PANEL:init()

end

function PANEL:paint()

end

–[[Then there is something that goes here that names and
creates the panel with 3 arguments.
Something(“PanelName”, PANEL, “something”) I think it goes something like that.–]]
[/lua]

[editline]09:28PM[/editline]

[lua]vgui.Register( “PresetEditor”, PANEL, “DFrame” )[/lua]

I found what I need, sorry.

I think you’re looking for this http://wiki.garrysmod.com/?title=Guide_to_Derma.