I want to populate a JComboBox dynamically. Meaning, when a user clicks on the drop down arrow, a listener fires and calls a method which returns the data for the Combo Box. What listener will do this? The action listener seems to only listen to when Combo Box selection changes. Thanks...
I figured it out. Of course it boiled down to something simple. I was using some old code and the old code had the JMenuBar added to the content pane. As a result I was getting some odd behavior when I added it to the JFrame. Sorry, thanks for your suggestions though. I appreciate it. Thanks...
Currently I have a program which uses a JDesktopPane within a Content Pane to display JInternalFrame's. I also have menu bar which is added to the content pane. The problem is as follows.
When you move a JInternalFrame, with the mouse, it is allowed to go above or "over" the Menu Bar...
Is there a replacement for a Canvas in Swing? Here is the issue:
I have a JInternalFrame the contains a JScrollPane. The JScrollPane contains a Canvas. Problem is when you resize the JInternalFrame the the Canvas will get larger to grow with the JInternalFrame, but never smaller. So once you...
Is anyone aware of the difficulties of transforming a JFrame to a JInternalFrame. Is this as easy as changing the extends class? Any hints are appreciated. I realize this does depend on the actions the JFrame takes, but they are fairly trivial. Thanks. Thanks,
Cabaal
If a user clicks on the "X" to close a JINternalFrame and the the close operation is set to HIDE_ON_CLOSE is there a way to show that INternal Frame again? I have tried to setVisible, but nothing seems to work. Any suggestions is appreciated. Thanks,
Cabaal
Here is a better description of what I want to accomplish:
An application that contains many frames. Each frame can be Viewed or not viewed based on user preference. If a user removes a frame, the other frame should expand to fill the void. If a new frame is added, the others should accomodate...
What is the best choice for a layout manager given the following scenario?
I have a program that should open one main window. In this case it is a content pane. The main window should then contain smallers sub-windows (JInternalFrame) and allow the user to move them around as they see fit. Each...
When designing a BBS an easy way, with Oracle is to use the "connect by" statement. Example:
select whatever
from table_name
start with id = #id_choice#
connect by prior id = parent_id
Does anyone know if the equivalent statement exists in SQL server? Basically you have each...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.