Java Swing AWT Question:
Download Questions PDF

What are the steps required in creating an empty table drop?

Swing AWT Interview Question
Swing AWT Interview Question

Answer:

The dragging and dropping for an empty table allows it to be portable and the data can be moved with ease. The steps that are followed for this is:
• The creation of an empty table that is used to get some data and the insertion gets performed in using the database techniques.
• After creation of an empty table then the creating and attaching of the TransferHandler class gets included that allow the proper transfer of the data from one place to another. It also handles the interrupts that may occur while transferring the data.
• Enable the data transfer to allow the calling of the object setDragEnabled(true). When this value is set to true then the table can be draggable and the data can be moved.
• Creation of the scroll pane takes place to allow the adding of the table so that it can be dragged from one pane to another pane with ease and comfort.

Download Swing AWT Interview Questions And Answers PDF

Previous QuestionNext Question
What is the purpose of Transfer Handler Class?Write a program to paint the off-screen buffer in swings?