jcomponent Questions
1
Solved
Please is there another way how to change Font at runtime as using FontUIResource, for the whole AWT/Swing GUI, without any knowledge / interest about if there are local variables and type of JComp...
Catarina asked 31/3, 2012 at 17:17
1
Solved
I know the fact that when I create an instance of a JComponent, it has it's own preferred size. Now let's suppose that I setPreferredSize that JComponent manually with a dimension of 0 x 0. And i w...
Oxalate asked 11/1, 2012 at 7:3
2
Solved
I have a JPanel that contains two JComponents, say two JButtons, btnLeft and btnRight. I want these two buttons aligned horizontally and I want btnLeft to be on the left side of the JPanel and btnR...
Psychotomimetic asked 20/12, 2011 at 17:5
1
Solved
I'm trying to touch limits of MVC architecture in Swing, but as I tried everything all (from SwingWorker or Runnable#Thread) are done on EDT
my questions:
is there some limits or strictly depend...
Overliberal asked 17/11, 2011 at 15:41
7
Solved
I'm trying to create some special component for a specific purpose, on that component I need to draw a HTML string, here's a sample code:
public class MyComponent extends JComponent{
public MyCo...
Babar asked 15/10, 2011 at 0:42
4
Solved
I am learning Java Swing and I appended a menuBar to the frame. By default this should call jframe.getContentPane().add(child). When I ran the script the menuBar didn't show up. But the button was ...
Lemnos asked 13/10, 2011 at 18:50
2
Solved
Has anyone come across a fully customizable (compatible with all standard LnF), fast file browser component for Java Swing ?
I should be able to place this component to Netbeans UI palette and dra...
Kenakenaf asked 25/8, 2011 at 18:36
4
Solved
When is the size of the JComponent is calculated? After being shown in the screen or before that?
if I send .getSize() message before .setVisible(true), would it give me the right answer?
Thanks
Suazo asked 22/8, 2011 at 2:27
4
Solved
I'm trying (testing something else) to add one JButton reference into two JPanels to test it, and it disappears from the first panel it was added to!
So, can't a Swing component be added to multip...
Swatter asked 6/1, 2011 at 22:23
3
Solved
I'm trying to create a program in Java that would display set of images one after another adjusting the size of the frame for each one.
I'm extending JPanel to display an image like this:
public c...
Sizar asked 9/12, 2010 at 19:21
3
I'm making a physics simulator for fun and I was looking up graphics tutorials when I tried to figure out the difference between all these J's.
Can somebody elaborate on them or perhaps provide a ...
Declaim asked 16/8, 2010 at 22:21
1
I want to programmatically move my JLabel to a specific location inside my JPanel. I have tried setLocation(int x, int y), but it doesn't work.
I am trying to not use any layout manager.
Fluter asked 12/5, 2010 at 16:38
© 2022 - 2024 — McMap. All rights reserved.