Questions tagged as 'swing'

1
answer

Render report in Java

I'm doing a swing system as a college job and at the end of every cycle of days the program wanted it to generate a report. Does anyone know how it works to mount report in Java?     
asked by 24.09.2015 / 12:06
1
answer

How to determine the size of a JLabel?

I'm creating a program, and I'm making its menu. But to make the menu, I need to create a button and I'm creating this button using images with JLabel and using MouseListener . However, I need to know how to determine the size of...
asked by 03.06.2015 / 01:21
1
answer

How to set the Jbutton location to the size of a Panel

I would like to set the location of color1 to the size of a JPanel, in the same way I did with fundo public static void janelaPrincipal() { //FRAME JFrame janela = new JFrame(); janela.setDefaultCloseOperation(JFrame....
asked by 18.07.2015 / 18:59
1
answer

How to change the default font of Swing components?

I would like to know if I have to change the default of the labels fonts and Swing buttons, if possible, of the general design. All the labels that I create I have to keep changing the font to one that is bigger a bit and another style, th...
asked by 18.10.2015 / 04:03
1
answer

Remove selection color from the JTable line?

It may sound like bullshit, but I can not seem to find the method to remove the color from the selection when the mouse clicks the line. I have a table with red and blue lines, blue colors are lines that signify an action and red other actions....
asked by 19.02.2015 / 14:35
1
answer

Retrieve the value of a JTextField through an ActionListener

I'm a little new to java and I was trying to understand the listeners. So excuse me if the mistake is simple. I have a program that creates a simple graphical interface and I want to get the value of a JTextField through a ActionLis...
asked by 15.04.2015 / 23:07
1
answer

How to update a JTextArea with JCheckBoxes information?

I'm in need of help on the following, I have a window that the user can enable the JCheckBoxes to write in the JTextArea that lies below, like the following image: WhatIwantedisthatwhenIpressedtheJCheckBoxonthekeyboarditwouldappearamessagesay...
asked by 24.11.2014 / 00:45
1
answer

JFreeChart - Graphics in Java Swing do not appear on the screen

Hello, I'm developing a Java swing application for a university project. Basically it is a program that reads XML files from another application (mobile game) and generates graphical reports from the data (easy thing ...). My question is as foll...
asked by 15.03.2015 / 02:30
1
answer

How to put an image in JComboBox?

When the user selects the option, an image appears on the side.     
asked by 30.10.2014 / 16:52
1
answer

How to position a component near the Windows clock?

I learned that to center a component in the center of the screen just use: frame.setLocationRelativeTo(null); But how do I display the component on top of the Windows clock regardless of screen size? In my case my code looks like this:...
asked by 28.03.2015 / 13:28