Code for One JButton? Help!
* I have an Input Box. We'll say someone types in the number 5.
* I have one Jbutton.
* I have one Text Field for the output.
What would a sample code look like? Behind JButton1 would be a calculation like "5.9 x Input Box value". So, is someone types in the number 5 in the Input Box and presses JButton1, the answer, which would be(in this example) 29.5, would display in the Text Field.
If I can see how it works for one button, I think I can get the others. THANKS.
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL