Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Java
  4. Help with adding jPanel Form to other form

Help with adding jPanel Form to other form

Scheduled Pinned Locked Moved Java
help
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • _ Offline
    _ Offline
    _T No name
    wrote on last edited by
    #1

    Hi All, I have added a jPanel Form in my applet project. Now i want to place this jPanel over other forms(Applet window) at run time. For that i created its object in Main applet window and try to place it. But its not visible there. Is there anyone who can catch something and help me . I am adding code as well

    //SaveContact is jPanel Form class i want to add SaveContact objFormSaveContact = new SaveContact(); this.getContentPane().add(objFormSaveContact); this.getContentPane().validate(); objFormSaveContact.setLocation(200, 50); objFormSaveContact.setVisible(true);

    Thanks.

    T 1 Reply Last reply
    0
    • _ _T No name

      Hi All, I have added a jPanel Form in my applet project. Now i want to place this jPanel over other forms(Applet window) at run time. For that i created its object in Main applet window and try to place it. But its not visible there. Is there anyone who can catch something and help me . I am adding code as well

      //SaveContact is jPanel Form class i want to add SaveContact objFormSaveContact = new SaveContact(); this.getContentPane().add(objFormSaveContact); this.getContentPane().validate(); objFormSaveContact.setLocation(200, 50); objFormSaveContact.setVisible(true);

      Thanks.

      T Offline
      T Offline
      TorstenH
      wrote on last edited by
      #2

      Seems like you need to repaint().

      regards Torsten When I'm not working

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups