Questions tagged as 'java-swing'

1
answer

How to extract data from multiple cells in a Jtable

I am trying to extract several data from several cells selected from a Jtable. The selection is free. I have only managed to extract a data every time I click on a cell. I have used the following commands from Jtable: MyTable.getSelectedRow an...
asked by 28.10.2017 / 01:54
2
answers

Change TextField color when writing

I am in a task for the university and they ask me to change the background color of a textfield when the user enters a character , I know that to change the background is occupied by the .SetBackgroud (color red), but I have only been able to...
asked by 25.11.2017 / 21:19
0
answers

JFrame loses connection to database

I am working with JFrames (login, mainMenu, Administration, Sales) in an application similar to an inventory and supermarket sales, as storage in execution I am working with a binary search tree to represent as nodes each article of the inventor...
asked by 04.11.2017 / 10:25
2
answers

Save the JTextField values in double type variables

I have the following code, and my problem is that I do not know how to do the action listener of my "Accept" button so that I save what is written in the JTextFields in the variables type double import javax.swing.*; public class Aprendizaje...
asked by 11.09.2017 / 01:27
1
answer

Consume a PHP Web Service from Java Desktop

In order to connect to the WS, the credentials and the method have passed me. Previously I had the WS Style error that was RPC, I solved it by adding a plugin to Netbeans. Now when I put the URL of the WS, NetBeans starts loading and shows an...
asked by 21.06.2017 / 18:37
0
answers

Logical error with the StyledEditorKit.ForegroundAction class in Java

I'm doing a text editor, it turns out that I'm using the class StyledEditorKit.ForegroundAction to be able to set the color to the selected text, the question is that when I call the class from the method actionPerformed the text i...
asked by 26.07.2018 / 17:23
0
answers

(JAXB) Retrieve the XML file in the input fields of the JSwing form with unmarshalling

I am new and started those days to learn XML for an implementation that must have in my application, I already made some tests with marshall() and unmarshall() already in Main() to understand more, I'm doing a form that you...
asked by 11.04.2017 / 19:54
1
answer

Resize JPanel

Holaaa. I have a problem wanting to resize a JPanel inside a JPanel that has a Layout of the BoxLayout type. When I add to the JPanel of the main class a JPanel that contains a JTextPane, the JPanel that I add, occupies a large space. My questio...
asked by 18.12.2016 / 02:39
0
answers

What language to use for responsive desktop applications [closed]

Good afternoon, I have an application written in java that I need to use in different operating systems, and at different resolutions, the problem is that neither Swing nor JavaFX offer a layout that serves me (or I did not know how to use them)...
asked by 04.01.2017 / 15:01
1
answer

Draw chat bubble

I found this code on the stackOverflow page in English. protected void paintComponent(final Graphics g) { final Graphics2D graphics2D = (Graphics2D) g; RenderingHints qualityHints = new RenderingHints(RenderingHints.KEY_ANTIALIASING, Render...
asked by 11.12.2016 / 17:35