Path: csiph.com!usenet.pasdenom.info!gegeweb.org!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: markspace <-@.> Newsgroups: comp.lang.java.programmer Subject: Re: Layout Doesn't Work Date: Wed, 08 Aug 2012 08:20:27 -0700 Organization: A noiseless patient Spider Lines: 20 Message-ID: References: <75d52d16-d119-4cee-a9b3-426de8ccbb5d@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Wed, 8 Aug 2012 15:20:30 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="61282af8d6595e8d991edb5ac03d6e00"; logging-data="4884"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18yX8cZPZXJ3VOsUBjR2YnrDjRuUwSh6TM=" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20120713 Thunderbird/14.0 In-Reply-To: Cancel-Lock: sha1:j9vqTG7k+2EKWF7/n8Fl5chJ+BM= Xref: csiph.com comp.lang.java.programmer:17353 On 8/8/2012 5:54 AM, clusardi2k@aol.com wrote: > Nice project thanks, but I have two questions: > > (Q1) How can you either modify this code or create a different > project to use controls that were dragged to the JFrame from the > swing Palette. The code is not to create the buttons, JFrame, JPanel, > or JLabel. > > I.E.:In Design View suppose you have a JFrame, jPanel1, jButton1, > jButton2, and jLabel1 already on the Frame. They were dragged to the > form. Your current project did not create them. The buttons and label > are in the jPanel. How would you make jLabel1 become invisible and > invisible using two buttons. What have you actually tried? Where's your code? What in this tutorial doesn't work for you?