Control « GUI « Java Swing Q&A





1. Is dependency injection only for service type objects and singletons? (and NOT for gui?)    stackoverflow.com

I'm currently experimenting with the Google's guice inversion of control container. I previously had singletons for just about any service (database, active directory) my application used. Now I refactored the code: ...

2. Controlling Camera Controls Via GUI    stackoverflow.com

I'm writing a desktop (J2SE) application that will take photographs with a digital camera. The camera can be connected to the PC via cable or wireless and will be any ...

3. What kinds of controls can the GUI builder use?    forums.netbeans.org

they do not "match" and this would not be recognized as a property. Note that in order to use your own GUI components in the GUI editor, the class must be compiled and the .class file must be accesible to NetBeans. If e.g. you do a "Clean all" (without compiling) and then open a form containing your custom control, the GUI ...

4. Control-Enter    coderanch.com

6. Control-A and Control-C    coderanch.com

I have tried to put accelerators and mnemmonics for JMenuItems so that I can type Ctrl-A or Ctrl-C and some action would occur. When a JTable has the focus, it seems that Ctrl-A is forever bound to select all, and completely ignores my menu item. Ctrl-C ignores my menu item also, but I can't tell if it's doing anything else. Other ...

7. control / set margins    coderanch.com

I have tried to use the getBorderInsets(Component, Insets), but I don't quite understand what function it has. As Component I passed in the object of a component added on the component with the actual border. As Insets I passed in new Insets(0, 0, 0, 0). The margins looked the same, and the Insets object returned from the above method call, had ...

8. Updating Swing control in loop    coderanch.com

hi, I replied to your earlier posting as well. I find it strange that the iterations are done inside the eventqueue thread. I would prefer to do all non-painting outside and only the real painting inside the eventqueue (that is the setText call). if you want to set the text at a certain time you have to use invokeAndWait. if you ...

9. using context of a control    coderanch.com

hi thank u so much for wasting ur time to solving my problem. ok I explain everything. I create a class with name CDrawFunction. this class implement some method like draw(Graphics g) and also parse a formula to draw its chart. for example first I set the formula like "x*sin(x)+2*x" then that class parse it to check if any syntax error ...





11. Reisizing Controls in Java    coderanch.com

12. Calender Control;    coderanch.com

13. GUI control    coderanch.com

14. what control to use    coderanch.com

Hi, Im about to put a GUI around some data we use. We're running jdk 1.4. The data is a matrix of dates and doubles (its actually a volatility matrix). I need a control such that when clicked, the matrix is expacnded so the dates/values can be seen. By default the data is not visible ( a minus sign indicates that ...

15. Swing Renders Native Controls? (getSystemLookAndFeelClassName)    coderanch.com

The default Look and Feel (LAF) for Swing is the Metal LAF. When you use: UIManager.getSystemLookAndFeelClassName() it doesn't not mean that native controls will be used. It means that Swing will use the default LAF for the platform the application is running on. The controls will be painted by Swing to look like the controls for that platform.

16. Java BeansBinding Update Control Problem    coderanch.com

Hi there, I am trying to program a simple Form where a combo updates a source property and then should arrange a calculations, that at the time updates other properties in the same class, such as: A.propertyA.setValue(x) A.propertyB.setValue(x*2) Both properties have target controls in the form, so a change in propertyA should fire automatically this calculation and update the target controls ...