I have a requirement that disabled JButton be read by JAWS version 9. i.e. if I have a JButton with the text "True", it ought to be read something like "True, disabled button". But when I use setEnabled(false) it no longer participates in the tab focus sequence, and therefore never gets read. Is it possible to make a disabled JButton rea...
Hello experts,
I work on a UI java application composed from:
top header
left menu
header text
error message (displayed on the page's header)
center container (JPanel) which is changed dinamically, in dependence of selected menu item (from left side)
When there are any computation errors, an error message is displayed on the applica...
In my JTable I have a number of actions that can accessed via popup menu or by selecting the configured shortcut. Selecting the action from the popup using mouse or keyboard is fine, and I can use the cursor keys to move to a field next to the original selection no problem. However if I use the shortcutkey instead it performs the action ...
For a school project, I need to make a simple paint application that can draw lines, ovals, and rectangles.
The assignment specifies that I need toolbar buttons and menu items for each type of shape.
I would like to go a little above and beyond, by making the buttons JToggleButtons in the toolbar and the menu items JRadioButtonMenuItem...
I am trying to build a tool for our embedded system project.
Our embedded system controls a giant machine performing several safety critical activities. For time being lets imagine it to be a giant excavator. [Consider this as a hypothetical project].
This machine will be connected to 5-6 LCD panels that will continuously display sever...
I have a swing app and I want there to be a title screen that lasts for a few seconds and then transitions to the program. What's the best way to do this? I was thinking a layered pane with a timer, but maybe there's something better?
...
Hey, I use Eclipse Helios in Ubuntu, and I'd like to install a plugin for eclipse that works with swing. So, I found visual editor in this site http://www.eclipse.org/vep/downloads/, and I downloaded it.
Now, I'd like to know hoe to install it. I tryied going in Help>Install new Software, but nothing. So if someone could help me with thi...
I re-structured the question: There is a picture of this code that works.
all the code works fine. what is in question is a few lines
in each block of code. so the setters and the last block of code
need attention.
Is there an error the logic in my JDesktopPane because I think I am creating
and setting the JInternalFrame and the JTabbe...
I've an Observer TableModel which listens to some changes, performed in the database, and when so the update method below is called.
My problem is, how should I prevent errors like:
java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
at java.util.ArrayList.RangeCheck(ArrayList.java:547)
at java.util.ArrayList.set(ArrayList.java:337)
...
I need to distribute my Swing application using JWS. I use JPA and connect to both Postgres and MSSQL.
How do I ensure secure database connections? Can I use JDBC Connection Pooling configured in Glassfish? If so, how do I configure my app to use it?
Best Regards.
...
Hi! I´ve done a tree but it doesn´t display...even it doesn´t allow other components to appear... here is part of the code.
private JScrollPane treeView;
private JTree treeInicio;
protected DefaultTreeModel treeModel;
DefaultMutableTreeNode top = new DefaultMutableTreeNode("Root");
private Toolkit toolkit = Toolkit.ge...
Hi All,
I need to put an image over jslider's knob image when mouse is present over the knob's image.
I have done something like this.:
slider = new Slider();
s= new mySliderUI(slider ,"slider.png" );
slider.setUI(s);
slider.addMouseListener(new MyMouseAction());
public class MyMouseAction implements MouseListener{
p...
hi all,
how can I set the Cursor on a Component to a "background activity" cursor. Like the one in Windows with the arrow and the small hourglass.
All I find ist the Cursor.WAIT_CURSOR, which is only an hour glass.
I found the file which contains the cursor: appstart.ani in C:\WINDOWS\Cursors can I use that somehow?
...
I'm trying to make a remedial simon says like game using Swing (Jframe/jbuttons/grid setup). At the moment I can't figure out how to get a sequence of buttons to flash. I can't run a thread through my swing timer since actionPerformed is non static, I don't know what TODO. I'd really appreciate if someone could take a glance at my code a...
I have a dialog box that is:
JOptionPane.showMessageDialog(null,"Once medicine is given, measure temperature within 5 minutes." ,"Medication" ,JOptionPane.PLAIN_MESSAGE);
When the user presses 'ok', it goes straight to a Jframe that ask the user to input the temperature using a slider and then pressing a button that takes it to the n...
I have a GUI build with Java's Swing. I have a JPanel that holds all of my controls:
JPanel rightSidePanel = new JPanel(new GridBagLayout());
rightSidePanel.add(forwardKinematics, new GridBagConstraints());
This works fine. However, I would like to add a tabbed control. Unfortunately, adding the tabs breaks the layout:
JT...
I currently have a wordwrapped-JTextArea as a user input window for a chat program. How do I make it so the JTextArea doesn't resize to automatically fit large text? I have already set the JTextArea to be 2 rows:
user_input = new JTextArea();
user_input.addAncestorListener(new RequestFocusListener());
user_input.setRows(2);
user_input.s...
How to make JTextPane autoscroll only when scroll bar is at bottom and scroll lock is off? This shouldn't have anything to do with caret, which is what I seem to be finding all over Google. :(
...
I am trying to write a GUI application using NetBeans, and I am getting increasingly tired of it..
I constructed a "Java Desktop Application" using NetBeans. It creates the main form as a org.jdesktop.application.FrameView descendent. I would like to know what is the proper way to add some code that is executed when the form is closed.
...
Ok I have an Image that I'm trying to read. Problem is that the Image.read(file) returns NULL.
File file = new File("C:\\images\\image1.jpg");
if(file.exists()){
System.out.println("Image file exists.");
BufferedImage originalImage = ImageIO.read(file);
}
So image exists but ImageIO.read(file) returns NULL. No thrown errors ...