Article View: chile.comp.programacion
Article #1859Re: pregunta muy basica de gui
From: GotenCool
Date: Sun, 04 Jun 2006 18:49
Date: Sun, 04 Jun 2006 18:49
24 lines
2810 bytes
2810 bytes
Entonces tienes que crear un nuevo objeto de la misma clase que estas usando. Creas este nuevo objeto en el m�todo que maneja los eventos de click en el bot�n que deseas. Recuerda darle un ventanaNueva.setVisible(true); o no se mostrar�. Otra cosa, con esta implementaci�n, cuando se cierre la primera ventana la segunda tambi�n se cerrar�. Cristi�n Ignacio Apara Thompson escribi�: > super facil mi pregunta porfa alguien que me ayude... > > tengo una clase que hereda de jframe... esta clase tiene un container que es > el que tiene los jbutton, text etc etc... resulta que deseo hacer un boton > que lo unico que haga sea que me abra otra venta igual a la que estoy > utilizando hasta ese momento (no importa que se pierdan los valores de los > textfield por ejemplo) , que sea igual pero no la misma (osea otro objeto > ventana pero del mismo tipo). > > Me entienden??? > > Bueno agrseco la ayuda... eso seria graz... > >
Technical Details
Message-ID:
<e5v9vc$uib$1@news.nivel5.cl>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news4.google.com!news.glorb.com!nntp-server.pubsub.com!news.nivel5.cl!not-for-mailReferences:
<e5l3la$cq1$1@proxy.ifxnw.cl>Show Full Headers
Complete Article Headers
X-Google-Thread: 1593cb,4d53233c7e05ba9e X-Google-Attributes: gid1593cb,public X-Google-Language: SPANISH,ASCII Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news4.google.com!news.glorb.com!nntp-server.pubsub.com!news.nivel5.cl!not-for-mail From: GotenCool <gotencoolxxNOSPAMxx@gmail.com> Newsgroups: chile.comp.programacion Subject: Re: pregunta muy basica de gui Date: Sun, 04 Jun 2006 14:49:42 -0400 Organization: Varios Lines: 24 Message-ID: <e5v9vc$uib$1@news.nivel5.cl> References: <e5l3la$cq1$1@proxy.ifxnw.cl> NNTP-Posting-Host: 190.44.214.124 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: news.nivel5.cl 1149446956 31307 190.44.214.124 (4 Jun 2006 18:49:16 GMT) X-Complaints-To: news@news.nivel5.cl NNTP-Posting-Date: Sun, 4 Jun 2006 18:49:16 +0000 (UTC) User-Agent: Thunderbird 1.5.0.2 (X11/20060501) In-Reply-To: <e5l3la$cq1$1@proxy.ifxnw.cl> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEUhISE6OjpYWFh2dnaV lZWzs7PW1tb6+vrmHXLqAAAAAWJLR0QAiAUdSAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1F B9YBFQIBO/mA14QAAAHkSURBVDjLjdNLc5swEABgZjrTXo2TCWfHD84O2LrW+KFrY2x0Lq+9tuix f78rCZrieNJ4xmPDJy27qyXA28+cuZ/g9r7S+X3Q+Lu6C5yC1fAelP1u2S3ItLA/4vNg4MVJ/B7A NOIOUErdUhhYT2EMRe1KYdnsBgSWFAU3oEahdGrqh2OVZuvLfrRDA3bZCc3py+yRjQD1JXw4nrlK tiYYtWNxsjnLgkk+hsi0VItZ8XEdSqOxReICPglamRrtwc7dQYm3TklUJic5WCib61/pIgPZc4zt h1DlyT+AJgxJLXRJ+gYrUJPgm3aAh0M8wE+GMgi+Sj8+RbUdYC2wo1A1dyDTbNgy4yjD6coeLkG9 49BDyVE9T2PuQ+WblA0VctSTWXT9D6jjZgBkRtPD+6xkUryEU3f/XDTRj6e634EKzo97XyDoVbNn og+1g51Q/hlCsXK+BQ+v4Yw64SC1I9ovCnQ4iaF1NaGbw1PpgZYbysxduN6wzkOm7WJ/AXTmUvSA S/tGaLcY9NW+nMZDt1CUxndDOR2Ol8MRu8KDKRuCClRGNwyNW53zj8H1DnFpj3rbUiZdkvcD53r4 GmmO3D4O27afXVfcr0hStuD+N/0O12bzRFeNcJAMs+tiKR779xbxWgD+AeAr1DIXyW4cAAAAAElF TkSuQmCC