Component 3 « Component « Java Swing Q&A





1. creating New Components in swings    java-forums.org

thanks for reply.Creating in the sense i want to add custom features to the existing components and it should work as a new component .I know how to add my custom working functionality to existing components by using appropriate classes ,but i don't know how to create a component with my functionality ,my listeners ,my own display properties and it can ...

2. Manipulating components of a seperate GUI Class    java-forums.org

It's been a while since I've used Java and I'm getting back into it. I was wondering if someone could explain how I can manipulate components in a window I've used a different class to create. I created a public class called Dashboard_GUI, I want another class (Dashboard_Main) to instantiate a Dashboard_GUI object and I want the Main class to be ...

4. How to change the appearance of swing components?    java-forums.org

Hi all, I'm new to Java but I have extensive experience of both PHP and C/C++. I am using the javax.swing package because it seemed to do what I want quickly (i.e. building a GUI), but it looks so clunky! How can I alter the appearance of Swing components? E.g., I'm using a JTabbedPane, and I want the label text on ...

5. Using swing components in a handler    java-forums.org

It's likely a scope issue -- the variables you are trying to use are not visible in the scope of where you are trying to use them. To give more specific help, you'll need to post more code. Also, please read up on and abide by the Java naming conventions since if you don't, it makes it difficult for others including ...

6. Swing component in zul?    zkoss.org

Wow it works, thanks a lot for the tips guys,The textbox I used, have already 40 rows, but the problem is that zkoss doesn't have a kind of JTextArea, which has the method append. The only way I knew before is converting every new lines with a specific string and write into a file with single line. Then read again this ...

9. Swing GUI components    forums.oracle.com

Hi, I'm starting to learn swing, and I'm trying to figure what components to use for my particular application. I'm preparing to build a gui that represents the status of hardware in realtime (ie this application regularly polls hardware and receives status data over a socket) I would like this to look like a grid in which a row and column ...





10. Verifying GUI Components for changes    forums.oracle.com

Hi, I'm working on a java desktop application, in which there're many Panels where the user can enter data for saving in the db in form of textfield inputs, JComboBox or JRadiobuttons selections. In each Panel there're a number of input to enter in jtextfields, and element to select in jcombobox or option in jradiobuttons, and the user has the possibility ...

11. Can't add in Swing components with Background    forums.oracle.com

Okay, well using the BorderLayout constants I was able to get the progress bar in the frame without removing the background. But two problems: 1. The progress bar seems to 'push' the image around depending on its BorderLayout position. 2. Is there a way to put the progress bar in a more 'exact' position? And, not really a problem, but pack() ...

12. The Components I create doesn't show up in my GUI    forums.oracle.com

Hello. I have problem with creating a GUI in Java. Problem is as follows. I have class CardComponent extending JComponent. In my main frame (the top-level container), I create a JPanel and add an instance of CardComponent to it. Then I add the JPanel to a Container. However, when I run my GUI, nothing appears. The GUI frame itself is there ...

14. Referencing Swing Components    forums.oracle.com

Hello.. My project consists of a GUI class(GUIClass.java) and another class(Business.java) that i wish to code the rest of the business logic into. How can i reference a Swing component in the GUI class from the Business.java class. Say i want to call jTextArea1.setText() from the business class how do i go about it. Thanks in advance. PS: Both my classes ...

15. Swing components    forums.oracle.com

16. Cannot add any Swing component    forums.oracle.com





17. Changing GUI component from another class while method is executed    forums.oracle.com

Hello, I have two classes, GUI class called MainFrame and MyZip class which archives all files and sub folders. The GUI class calls the method doZip from MyZip class and parses the source file and destination file. What I am trying to do, is to get a list of already archived files while doZip method is executing. Basically after completing every ...

19. Unable to init swing components because of LOOP... ???    forums.oracle.com

Look at the API for Thread. Create a class that extends Thread, write the constructor with a parameter that uses main_frame and assign it to an attribute of this class. Write the run() method with a while loop which checks a boolean attribute of this class and which calls main_frame.setTitle() method and then call sleep. Write a method exit() that sets ...

20. Which GUI component?    forums.oracle.com

hmm JTable doesn't seem to have much choice of editor. It's a pain in the *** to define editors by extending AbstractCellEditor. Besides it remembers the type AND value of every cell in memory. I was hoping for a table where you can put a in a cell and put whatever I want in it . (of course ...