Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
Ad icon
V2ray VPN for Tunneling
hu KANNA
Updated:
Oct 22, 2026
FREE SEO Check & Google Maps Check for Sri Lankan Businesses | Web Design, Website Price Rs 14,900 |
LankaSolve
Updated:
Oct 20, 2026
ඕනම රටකට සෙට් වෙන CV එකක්
ErMurazor
Updated:
Oct 17, 2026
Hambantota
7 Acres Beachfront Land For Sell DownSouth , PerPerch Price 420 000
1024 Digital
Updated:
Oct 14, 2026
Baseus PI LITE INDOOR CAMERA
ErMurazor
Updated:
Oct 12, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
ElaKiri Talk!
JAVA
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="akhilapraveen" data-source="post: 10759670" data-attributes="member: 104181"><p><span style="font-size: 12px"><span style="font-family: 'Verdana'">this not complex at all machan</span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Verdana'"></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Verdana'">heres the codin,</span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Verdana'"></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Verdana'">(im doing with t with a button, and button is on ma jframe)</span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Verdana'"></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Verdana'">this is tha main class(compile this)</span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Verdana'">//------------------------------------------------------------------------<span style="color: Blue"></span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Verdana'"><span style="color: Blue">public class JavaApplication12 {</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Verdana'"><span style="color: Blue"></span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Verdana'"><span style="color: Blue"> /**</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Verdana'"><span style="color: Blue"> * @param args the command line arguments</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Verdana'"><span style="color: Blue"> */</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Verdana'"><span style="color: Blue"> public static void main(String[] args) {</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Verdana'"><span style="color: Blue"> </span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Verdana'"><span style="color: Blue"> NewJFrame nw=new NewJFrame();</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Verdana'"><span style="color: Blue"> </span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Verdana'"><span style="color: Blue"> </span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Verdana'"><span style="color: Blue"> nw.setVisible(true);</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Verdana'"><span style="color: Blue"> // TODO code application logic here</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Verdana'"><span style="color: Blue"> }</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Verdana'"><span style="color: Blue">}</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Verdana'"><span style="color: Blue"></span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Verdana'">//--------------------------------------------------------------------</span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Verdana'"></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Verdana'"></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Verdana'">Now i have implemented 2 buttons in ma jframe</span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Verdana'"></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Verdana'">one button is used to hide the jtextfield and from other button you can view it</span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Verdana'"><span style="color: Blue"></span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Verdana'"><span style="color: Blue">private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Verdana'"><span style="color: Blue">NewJFrame.jTextField1.setVisible(false);</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Verdana'"><span style="color: Blue">// TODO add your handling code here:</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Verdana'"><span style="color: Blue"> }</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Verdana'"></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Verdana'"><span style="color: Blue"></span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Verdana'"><span style="color: Blue"> private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Verdana'"><span style="color: Blue"></span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Verdana'"><span style="color: Blue"> try{</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Verdana'"><span style="color: Blue"> jTextField1.setVisible(true);</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Verdana'"><span style="color: Blue"> }</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Verdana'"><span style="color: Blue"> catch (Exception e){</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Verdana'"><span style="color: Blue"> </span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Verdana'"><span style="color: Blue"> }</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Verdana'"><span style="color: Blue"> // TODO add your handling code here:</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Verdana'"><span style="color: Blue"> }</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Verdana'"><span style="color: Blue"></span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Verdana'"><span style="color: Blue"></span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Verdana'"><span style="color: Blue"><span style="color: Black">this is tha basic idea of your software. Now you can edit it lik this</span></span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Verdana'"><span style="color: Blue"><span style="color: Black"></span></span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Verdana'"><span style="color: Blue"><span style="color: Black">add a panel to tha jframe and add jtextfield and button on to that</span></span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Verdana'"><span style="color: Blue"><span style="color: Black"></span></span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Verdana'"><span style="color: Blue"><span style="color: Black">goto panels customized code(write click on t and select customize code)</span></span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Verdana'"><span style="color: Blue"><span style="color: Black"></span></span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Verdana'"><span style="color: Blue"><span style="color: Black">and add jbutton 2s coding there</span></span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Verdana'"><span style="color: Blue"><span style="color: Black"></span></span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Verdana'"><span style="color: Blue"><span style="color: Black">now when you compile your main program jframe comesup!</span></span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Verdana'"><span style="color: Blue"><span style="color: Black">but not the textfield coz its visibility is off via tha panel.</span></span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Verdana'"><span style="color: Blue"><span style="color: Black">so only when user clicks on the button its visibilty is on.</span></span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Verdana'"><span style="color: Blue"><span style="color: Black"></span></span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Verdana'"><span style="color: Blue"><span style="color: Black"></span></span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Verdana'"><span style="color: Blue"><span style="color: Black">HOPE YOU GT THA IDEA!</span></span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Verdana'"><span style="color: Blue"><span style="color: Black">IF U STILL CANT GET IT POST HERE ILL SEND YOU MA APPLICATION FOLDER</span></span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Verdana'"><span style="color: Blue"><span style="color: Black"></span></span></span></span></p></blockquote><p></p>
[QUOTE="akhilapraveen, post: 10759670, member: 104181"] [SIZE=3][FONT=Verdana]this not complex at all machan heres the codin, (im doing with t with a button, and button is on ma jframe) this is tha main class(compile this) //------------------------------------------------------------------------[COLOR=Blue] public class JavaApplication12 { /** * @param args the command line arguments */ public static void main(String[] args) { NewJFrame nw=new NewJFrame(); nw.setVisible(true); // TODO code application logic here } } [/COLOR] //-------------------------------------------------------------------- Now i have implemented 2 buttons in ma jframe one button is used to hide the jtextfield and from other button you can view it [COLOR=Blue] private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) { NewJFrame.jTextField1.setVisible(false); // TODO add your handling code here: }[/COLOR] [COLOR=Blue] private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { try{ jTextField1.setVisible(true); } catch (Exception e){ } // TODO add your handling code here: } [COLOR=Black]this is tha basic idea of your software. Now you can edit it lik this add a panel to tha jframe and add jtextfield and button on to that goto panels customized code(write click on t and select customize code) and add jbutton 2s coding there now when you compile your main program jframe comesup! but not the textfield coz its visibility is off via tha panel. so only when user clicks on the button its visibilty is on. HOPE YOU GT THA IDEA! IF U STILL CANT GET IT POST HERE ILL SEND YOU MA APPLICATION FOLDER [/COLOR][/COLOR][/FONT][/SIZE] [/QUOTE]
Insert quotes…
Verification
Awruddata maasa keeyada?
Post reply
Top
Bottom