Hi,
i am not new to java but new to swing. I have had no problems till now in doing buttons or textfields or menus but now even internet doesn't find what i want

I am trying to make a button with a menu (like the create new class button in eclipse or profile main project in NetBeans) That is a button in two pieces where one piece has an arrow and through clicking this arrow it opens a menu.
Can someone please help me with the code for that.
Thanks