Input « GUI « Java Swing Q&A





1. Recording gui input    stackoverflow.com

Basically, I want know if there is an an api in java or something similar that I could use to read what is going on in the window of an external ...

2. Input map question    coderanch.com

In line with my last question, I am trying to get all the navigation keys in my formula bar to affect the table. I tried setting the input map of the textfield to the input map of the table's editor component, but that didn't work for navigation. I tried setting it to the input map of the table, but then NOTHING ...

4. Problem with input    coderanch.com

Hi.. Just finish my coding..But still cannot resize the text field. One thing, when i fill the int place..And click total, it show total in text are. But when i click finished, it will show all total in text area. How to? Thanks. import java.awt.*; import java.awt.event.*; import javax.swing.*; public class Cus { private Frame f; private Button Topb, Nextb, Finishb, ...

5. Swing Input GUI    coderanch.com

6. Is It Possible To Set Input Numbers for JTextFiled?    coderanch.com

Originally posted by mahmoud saleh: i have a JTextField For Inputting numbers only when trying to input digits,the windos settings is to write in english so Numbers Are Typed 0123456789 but i want when the user tries to input numbers it's automatically typed in arabic numbers,any ideas how to do that? First of all, we should be careful with terminology because ...

7. creating a new object from a gui input    coderanch.com

Welcome to JavaRanch! I don't think it's possible. I don't know why you are asking this, but my guess is that you are writing code in which you don't know how many variables there will be at runtime, so you are looking for a way to give them names at runtime. In a situation like that, you can use an array ...

8. Problem loading updated input while expanding in Treeviewer    coderanch.com

Hi Folks, I am new to JFace and creating an application in TreeViewer. While expanding in the tree I wanted to update teh input field by reading the file again. I was trying to set the input bu the UI is still showing with teh old object. In Sys out I see the object is updated though, but the UI is ...





10. Barcode input    coderanch.com

I have a swing interface and the UI captures events from either a Barcode Gun or a keyboard. Consider it to be a simple POS scenario where the product barcodes are scanned. Now my question is how can we detect the barcode scan such that once the product Barcode is scanned it populates the product details unlike typing in the product ...

11. Saving an input.    coderanch.com

Hi I was wondering could someone point out how I get this program to save the file somewhere? Thanks package SimpleWindow; import java.io.*; import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.SwingUtilities; import javax.swing.filechooser.*; public class RJMC extends JPanel implements ActionListener { static private final String newline = "\n"; JButton openButton, saveButton; JTextArea log; JFileChooser fc; public RJMC() { super(new BorderLayout()); log ...

12. input without entering...GUI?    forums.oracle.com

ok,,ive asked this question and I didnt get an answer...can a program read an input without the user having to press enter? Does the scanner class help me with this?and how? my idea is to do a loop where in every n seconds the program accepts an input and the user just presses buttons an the keyboard..

13. Can't get Input Fields to show in GUI    forums.oracle.com

14. Input and Store value in GUI    forums.oracle.com

import javax.swing.*; import java.awt.*; import java.awt.event.*; public class InputWindow extends JFrame { private JPanel panel = new JPanel(); private JButton inputButton = new JButton("Input"); private JLabel rainfallLabel = new JLabel("Rainfall (mm): "); private JLabel wheatLabel = new JLabel("Wheat Price: $"); private JLabel barleyLabel = new JLabel("Barley Price: $"); private JLabel sorghumLabel = new JLabel("Sorghum Price: $"); private JTextField enterRainfall = new ...