Forum

Posts

RECENTLY INDEXED PROGRAMMING SOLUTIONS OF Swing / AWT / SWT


Printing tiff images in java  

Hi I want to print tiff images in java using jdk1.2. i am posting this query because the print related api is available in java.awt.print.*. I will be... Continue Reading
Views : 2384
Tuesday 23rd of October 2012

web link in option dialog  

hi: How can I put a web link, so that the user can click on it and to to the web sit, in a JOptionDialog? I tried to put html code, but it doesn't show in the dialog thanks Continue Reading
Views : 250
Tuesday 23rd of October 2012

Tooltip for table header  

Hi All, Is there an easier way to set tooltips for table header ? I found one approach here: Continue Reading
Views : 217
Tuesday 23rd of October 2012

Resizing JFrame with ChangeListener  

I have a JFrame that contains 5 Continue Reading
Views : 217
Tuesday 23rd of October 2012

JTable and its size  

Hi I use a JTable with Continue Reading
Views : 240
Tuesday 23rd of October 2012

Increase font size across application  

Her is a piece of code which attempts to increase the font size by 2. While this works on most components it does not work on JLabel... Continue Reading
Views : 215
Tuesday 23rd of October 2012

Doubt in Theme and LAF  

Hi all, I have a basic doubt, what is the basic difference between Theme and LAF. If I want to create my own LAF or theme where will i find the steps or procedures for writing the code. Please give me some inputs on this Thanks... Continue Reading
Views : 189
Tuesday 23rd of October 2012

JPanel vs. JComponent  

I'm going to create a custom 'widget', and I was going to extend JPanel. The more I read though, the more I'm curious, what's the difference... Continue Reading
Views : 212
Tuesday 23rd of October 2012

GridBag gremlins!  

I'm using the GridBagLayout on a Continue Reading
Views : 216
Tuesday 23rd of October 2012

Mouse Events Not Registering  

Hello There I'm trying to draw lines on a drawing panel using the mouse to press, drag and release to draw a line. I also need to add functionality to allow the user to change the color of the line. I've just started on this and somehow I cannot get... Continue Reading
Views : 222
Tuesday 23rd of October 2012

JTextField  

Hello, Just go through the below scenario and suggest me to solve it. I developed a frame which consists of two textfields. These are of Continue Reading
Views : 215
Tuesday 23rd of October 2012

Listeners - How to callback the object it is listening to  

Hi, Is there a way for a listener object (ex: myContainerListener) to know when it is being registered as a listener to a container object (in this case myContainer.addContainerListener(myContainerListener)) and get the reference of the object it is... Continue Reading
Views : 196
Tuesday 23rd of October 2012

Container context  

I have been looking at a class diagram for a swing application that refers to a container context. Can someone tell me what this refers to. Thanks. Continue Reading
Views : 201
Tuesday 23rd of October 2012

Display Applet in Jsplitpane of another class  

There is one java file in which one applet is created. there... Continue Reading
Views : 186
Tuesday 23rd of October 2012

JScrollPane background color  

Hi there I have a JScrollPane that contains a Continue Reading
Views : 234
Tuesday 23rd of October 2012

JTable - Threaded Model - Error Updation  

Hello expert.. Here's the question: I have a table model that fetches data on a seperate thread. Once the data is fetched, the table is notified through one of the fire-series methods of the Continue Reading
Views : 211
Tuesday 23rd of October 2012

Another JTable Printing Problem!  

I finally was able to print my table on different pages without the awkward clipping. Now, new problem occurs: 1. The printed result(font size and row height) are different with maximize window and not. I think the result varies on how the... Continue Reading
Views : 211
Tuesday 23rd of October 2012

jtable problem please help  

Hi everybody, I have a JTable for which i have rendered one column as a JCombobox. The Combobox appears to be... Continue Reading
Views : 211
Tuesday 23rd of October 2012

AWT/Swing Event Threads vs SWT - Rob  

One of the more annoying things about Swing is handling heavy loaded methods from within events fired by a JButton, Continue Reading
Views : 225
Tuesday 23rd of October 2012

small swings problem  

Hi everybody, I have a JTable for which i have rendered one column as a JCombobox. The Combobox appears to be... Continue Reading
Views : 205
Tuesday 23rd of October 2012

Expanding Screen horizontally  

hai, I want to expand my screen in horizontal direction ONLY. now when i click maximize button i shud expand in horizontally only not vertical.... can any body help me ..... Regards, Chandu. ... Continue Reading
Views : 208
Tuesday 23rd of October 2012

Does Swing need another Layer  

A lot of people out there in the community keep addressing the fact that they think Swing needs a higher level that developers use. Similar I supose to how SWT has JFace. Personally, I think this might be a good idea. So I started playing... Continue Reading
Views : 203
Tuesday 23rd of October 2012

Tracking when a JComponent is visible  

ComponentListener doesn't provide notification when, say, a frame is minimized or closed, just when setVisible() is called I... Continue Reading
Views : 221
Tuesday 23rd of October 2012

SWT on any other IDE  

I've heard that SWT can only be developed in Eclipse... Is it true? There should be some kinda SWT package available for Swing developers to develop in some other IDEs, not just in Eclipse... Correct me, if I am wrong.... Continue Reading
Views : 177
Tuesday 23rd of October 2012

Can you make java program into GUI  

I am still in the very beginnings oflearning java- and a friend asked me to write her a numerology program- when she types in a name, a... Continue Reading
Views : 182
Tuesday 23rd of October 2012

Collapse a Jtreenode  

hi, i use this code to collapse a single node from a jtree. hallo, ich habe hier eine methode, die einen bestimmten knoten komplett aufklappt. //expand a single node private static void... Continue Reading
Views : 190
Tuesday 23rd of October 2012

JWindow - windows L&F  

Hello. I have created a JWindow containing a Continue Reading
Views : 206
Tuesday 23rd of October 2012

URGENT application ok... applet not ok  

Hi Any of you guru's have an idea about the following. by the way...just passed the SCJP with 88% but it hasnt helped me with this... Continue Reading
Views : 182
Tuesday 23rd of October 2012

scrolling JTable to make cells visible  

Here is the code I am using to scroll JTable to its last cell and to make that cell visible. For some reason however, that cell is selected... Continue Reading
Views : 209
Tuesday 23rd of October 2012

java code for round rectangle java swing button  

I need a code that should extends the JButton and tje button have the round rect edges Continue Reading
Views : 182
Tuesday 23rd of October 2012