Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
JSP - A mailing list about Java Server Pages specification and reference
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Subject: Servlet : Session invalidate
Oracle Connection Pooling in 3 2 2
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Subject: Running a Simple JMS Example
Tomcat and webapplication specific java library path
Mapping in workers2 properties
org apache jasper JasperException
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action
   MESSAGE
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
Value attribute of <html:checkbox
url string for connecting jboss to oracle
javax servlet ServletException: BeanUtils populate
5 0 18: Windows XP Pro vs Windows 2000
HTTP Status 404 The requested resource is not available
 
SWING question...

SWING question...

2006-06-19       - By purush?ttam krishna hegde

 Back
Reply:     1     2     3     4  

Dear Vadim Vera,
 please run the below example, please write to me if you have any issues

 if i am not wrong, i think this is what you wanted for.
 regards
 PH

 import java.awt.BorderLayout;
import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
 import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.WindowConstants;
 public class CheckTest extends JFrame implements ActionListener {
JButton but = new JButton("Dont Click Me");
  JCheckBox box = new JCheckBox("Check Me");
  public CheckTest() {
 this.setSize(50, 30);
 this.setTitle("Check Test");
 this.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
 JPanel panel = new JPanel();
 panel.setLayout(new FlowLayout(FlowLayout.CENTER));
 box.addActionListener(this);
 panel.add(box);
 panel.add(but);
 this.getContentPane().setLayout(new BorderLayout());
 this.getContentPane().add(panel);
}
  /**
 * @(protected) args
 */
public static void main(String[] args) {
 CheckTest test = new CheckTest();
 test.pack();
 test.show();
  }
  public void actionPerformed(ActionEvent e) {
 if (but.isVisible())
  but.setVisible(false);
 else
  but.setVisible(true);
}
 }


Vadim Vera <vadim.vera@(protected)> wrote:
 I've googling for this with no hope, the example of what i want to do is
like this:

I'm using Oracle JDeveloper 10g, on the IDE when you try to refactoring any
item of the code, the dialog is a very well common circumbstance of what I'm
saying...by the way if you could send me the working copy of this I would
very grateful...(sorry for my english, so I speak espa?ol, de Cuba)...


-- -- Original Message -- --
From: "purush?ttam krishna hegde"

To:
Sent: Saturday, June 17, 2006 4:36 a.m.
Subject: Re: SWING question...


> Dear Vadim,
> You need to add a listened to checkbox annd in the listened
> you have API support for kwing whether the ckeck box is selected or not.
> Depeding on the state of check box, you can dissable or enable a button.
> If u want a working copy of this , as soon as i reach office on monday,
i will send one for you
>
> Cheers
> ph

===========================================================================
To unsubscribe: mailto listserv@(protected) with body: "signoff JSP-INTEREST".
For digest: mailto listserv@(protected) with body: "set JSP-INTEREST DIGEST".

Some relevant archives, FAQs and Forums on JSPs can be found at:

http://java.sun.com/products/jsp
http://archives.java.sun.com/jsp-interest.html
http://forums.java.sun.com
http://www.jspinsider.com


===========================================================================
To unsubscribe: mailto listserv@(protected) with body: "signoff JSP-INTEREST".
For digest: mailto listserv@(protected) with body: "set JSP-INTEREST DIGEST".

Some relevant archives, FAQs and Forums on JSPs can be found at:

http://java.sun.com/products/jsp
http://archives.java.sun.com/jsp-interest.html
http://forums.java.sun.com
http://www.jspinsider.com

©2008 junlu.com - Jax Systems, LLC, U.S.A.