I try to build up a program in Java that can insert image, table, text and form into the JTextPane.. I dunno how to input table and form? Any example? Let say, when user click on Insert table, it should pop out a dialog box and require the user to fill in the number of rows and column of the table that he would like to create.... Same with the form creation, it should have many items such as button, textbox... that can be added into the form.. How to do all these?? Thanks!!!