1. Merge 2 button become one java-forums.orgHi.. I'm newbie in this java. Need help here.. I want to merge button 10 and 14 become one. How to do that? import java.awt.*; public class GridExample { private Frame f; private Button b1, b2, b3, b4, b5, b6, b7, b8, b9; private Button b10, b11, b12, b13, b14, b15, b16, b17, b18, b19; private Button b20, b21, b22, b23, ... |
2. calling a public void method from a class button java-forums.org |
3. calling a public void method from a class button java-forums.orgJava Code: class Printdata2{ public Printdata2() { try { // Connect to the Database //connection object created using DriverManager class //carpark is the name of the database Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection connect =DriverManager.getConnection("jdbc:odbc:carpark"); // Read data from a table String sql = "SELECT * FROM Ticket"; Statement stmt = connect.createStatement(); String linebreak = System.getProperty("line.separator"); ResultSet rset = stmt.executeQuery("SELECT tnum, timein, timeout FROM Ticket"); ... |
4. GUI Button Help java-forums.orgI am writing this GUI program for my AP Java class. We have to create a grid that is 4x4 and randomize 16 colored JPanels in the JFrame. There also has to be 3 button, one that will randomize all the colors, one that will set all of the JPanels to black and white, and a final one that will "clear" ... |
5. GUI buttons question... java-forums.orgGUI buttons question... Hello everyone, Hopefully a quick and simple question someone can assist me with. I have an inventory program that has an next, previous, first, last (these buttons work) and now I added a add, delete, modify, search and save button. Do I need to create a c:\data\inventory.dat file before implementing them? Also if someone could point ... |
6. Problem with GUI Button Please help. forums.oracle.comI think your biggest mistake is trying to sally forth in GUI programming without going through the structured tutorials first. Please do this so that you won't propagate bad mistakes such as this one: In your code you're trying to add "this" as an ActionListener where your "this", your class, doesn't implement the ActionListener interface. Again, if you go through the ... |
7. How can a button work in the Netbeans GUI forums.oracle.com |
8. help with switching buttons on GUI forums.oracle.comI cannot get this code to compile. Basically it's supposed to be a GUI with two buttons, with the labels switching when one is clicked. If anyone can help me, I would greatly appreciate it. import javax.swing.*; import java.awt.*; import java.awt.event.*; /* * File: MeFirstGUI.java * Author: Java, Java, Java * Description: This class creates a GUI application with a frame ... |
9. GUI "Play Again" Button forums.oracle.com |
10. How Make A button point me to other window in Gui with java forums.oracle.com |
11. Buttons in GUI forums.oracle.comHow much do you know about Swing right now (I assume that this is Swing -- i.e., a JFrame not a Frame -- but I'm not sure. Can you let us know?)? Have you worked with creating and adding actionlisteners to JButtons? If so, then you could just create an instance of frame2 from within the button's actionlistener, and then call ... |
12. Is it possible with Swing button forums.oracle.comDear expert, Actually sun has provided for Jbutton with all functions,eventlisteners. Is there any method or fire function by which i can press the button programmatically. I coded a UI which need some parameters when pc starts and is required to press start button. On event of power failure at adhoc hours it is not possible for somebody to come there ... |
13. Have problems to give GUI buttons functionality forums.oracle.com/** Creates new form GUI */ public GUI() { initComponents(); } public void sort(int b[]) { int temp; for (int i = 0; i < b.length - 1; i++) { for (int j = i + 1; j < b.length; j++) { if (b > b[j]) { temp = b; b = b[j]; b[j] = temp; } } } } public ... |
14. gui button problem forums.oracle.comIn the future, Swing related questions should be posted in the Swing forum. Though when I entered the following code 9 columns of toggle buttons are being diplayed and the submit button is being displayed on the 8th row. Don't add the "Submit" button to the same panel. You create a "togglePanel" with an 8x8 grid for the toggle buttons. Create ... |
15. 8 by 8 buttons on gui forums.oracle.com |
16. Connect a button to another GUI forums.oracle.cominside it you must put your code to be executed when the event is fired. There are many kind of events, in this case is an ActionPerformed event linked to your component. If you want to open another GUI then you must fill it with the code to open that GUI.Not all GUIs can be opened on the same way but ... |
17. Please Help - Need Help with Buttons for GUI for assignment. URGENT!! forums.oracle.comproMaker[0] = new Maker( 1, "Pens",1.59,100,"Bic"); proMaker[1] = new Maker( 2, "Pencils", .65, 100,"Mead"); proMaker[2] = new Maker( 3, "Markers", 1.29, 100,"Sharpie"); proMaker[3] = new Maker( 4, "Paperclips", 1.19, 100,"Staples"); proMaker[4] = new Maker( 5, "Glue", .85, 100,"Elmer's"); proMaker[5] = new Maker( 6, "Tape", .50, 100,"3m"); proMaker[6] = new Maker( 7, "Paper", 1.85, 100,"Mead"); proMaker[7] = new Maker( 8, "Stapler", 2.21, ... |
18. Help with buttons in gui forums.oracle.com |
19. "Start Over" button on my Java Gui app. forums.oracle.com |
20. GUI program... CALCULATE button not working... help please forums.oracle.comPlease repost only the portion of the code that's relevant to the problem, and tell us what you have tried, and exactly why it didn't work (incorrect output, compiler errors, runtime errors, etc.) If there are errors, give us the whole text of the error so we know what the problem is. We can't help you if you don't help us. ... |