jform - how to create a view form option in java? -


I have created a form to get user details. Now I want that when a user clicks the submit button, its details are displayed in a non-editable format format or in a pop-up that shows how their forms look.

How can I do that?

You can use JPanel (your editable form) and JLabel text), in this way :

  public static zero main (string [] args) {newsframe 1 frame = new newsframe 1 (); frame.setLayout (new gridoutout ()); Zpean panel = new zpn (); JLable Zlabel = New JLABEL ("Some Kind of Message"); jlabel.setFont (new font ("wordana", 1,20)); Panel.add (JLabel); panel.setBorder (New LineBorder (Color Black)); frame.add (panel, new gridbag consultants); Frame.setSize (400, 400); Frame.setLocationRelativeTo (zero); frame.setDefaultCloseOperation (NewJFrame1.EXIT_ON_CLOSE); Frame.setVisible (true); }    

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -