Note that there are some explanatory texts on larger screens.

plurals
  1. POAdd Jpanel to Jframe NetBeans
    text
    copied!<p><img src="https://i.stack.imgur.com/Nfc7q.png" alt="enter image description here"></p> <p>Hi all, I was in a development of my college mini project. It was a Library Management system , which i should do in Java swing using Net-beans IDE. First I was doing manual coding. It takes time.</p> <p>In manual coding I create single JFrame with Menu bar and and items, on all action performed I wrote codes for all Jpanels. It made the file and code huge. and confusing too.</p> <p>Now I need your help. I have created a Main JFrame with Menu A JPanel - ADD Book another Jpanel - On add book success (demo! , for Actions happening in ADD Book )</p> <p>I had made action listener </p> <pre><code>addBook addbk = new addBook(); this.getContentPane().add(addbk); </code></pre> <p>wrote this code. I doesn't make sense. Friends, As a new to java, What i need to study is </p> <p>1.) How cal and Show an external Jpanel an action performed 2.) How to show another JPanel to same root JFrame if any event has occurred in external JPanel.</p> <p>In sort, something like Iframe in HTML Thank you all.</p> <p><a href="http://compilr.com/abelkbil/openlib/OpenLibMainGUI.java" rel="nofollow noreferrer">http://compilr.com/abelkbil/openlib/OpenLibMainGUI.java</a></p> <p><a href="http://compilr.com/abelkbil/openlib/addBook.java" rel="nofollow noreferrer">http://compilr.com/abelkbil/openlib/addBook.java</a></p> <p><a href="http://compilr.com/abelkbil/openlib/bookAdded.java" rel="nofollow noreferrer">http://compilr.com/abelkbil/openlib/bookAdded.java</a></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload