Forum

Posts

RECENTLY INDEXED PROGRAMMING SOLUTIONS OF Swing / AWT / SWT


A frame, 3 Panels and a button.  

Im new to GUI and having problem on repainting a panel. I have 4 classes. Namely, MainFrame(JFrame subclass), NorthPanel( Continue Reading
Views : 62
Tuesday 23rd of October 2012

TreeCellEditor  

Hi all. I have the following problem. I created my own class MoneyEditor wich extends DefaultCellEditor. In this class... Continue Reading
Views : 38
Tuesday 23rd of October 2012

Repainting Problem(please help)  

Really need your help guys, im working on this for days now. I created sort of mock up of what im really actually doing. Im really working on a Table and a Spit Pane. Just to present to you as brief as possible i wrote a two table instead. The real issue is I... Continue Reading
Views : 52
Tuesday 23rd of October 2012

JDialog suspending while setVisible(true)  

I have a question about the JDialog. What I need to do is to show the Continue Reading
Views : 71
Tuesday 23rd of October 2012

TreeModel for the FileSystem c:/ d:/  

Can anybody plz tell me how to make the TreeModel of all the underlying filesystem like if u have c;/ d:/ e:/ drives. so that the Continue Reading
Views : 38
Tuesday 23rd of October 2012

Using .getText() and .append()  

The purpose of this program is simple - input a string from a Continue Reading
Views : 61
Tuesday 23rd of October 2012

Layouts  

Hello I trying to do a project for my college assignment. Its a simple application for an online examination system. However I'm going absolutely NUTS over the layouts. I cant seem to figure out any of the layout managers.... Continue Reading
Views : 61
Tuesday 23rd of October 2012

"Servlet2Applet Communication"  

Hi All, Subject: "Servlet2Applet Communication" In our application we have to communicating the Continue Reading
Views : 51
Tuesday 23rd of October 2012

JTable and cells  

Hello, Is there anyway to rotate a cell in a JTable so that it is 90 degrees(pointing straight up)? Also I was wondering is it... Continue Reading
Views : 66
Tuesday 23rd of October 2012

Open new window from menu click  

First of all, I'm pretty much a novice w/ swing and awt... Anyway, I'm working on a small application which currently consists simply of a Continue Reading
Views : 51
Tuesday 23rd of October 2012

Cell limitation in AWT grid - JDK1.4.2_02  

Hi, I would like to have unlimited number of cells in one of my grid application. I am using JDK 1.4.2_02 and I provide number of rows and columns. If number of rows and columns has less number it works fine. If rows X columns > 4996 it fails and... Continue Reading
Views : 68
Tuesday 23rd of October 2012

JDialog - parser status window  

Ok folks, I'm trying create a window that shows the list of links as it grows from a running web crawler/parser. Now, I don't want anything else to happen in my program until this is finished and the user clicks OK (after seeing complete list of... Continue Reading
Views : 57
Tuesday 23rd of October 2012

assigning jcombobox items  

hi, i have a jcombobox with items ranging from 5 to -5. my idea is whenever a user selects an item, a point in the form of 'filloval' will be plotted in a rectangle on the jpanel. the problem right now is that when i select the 5 value from the... Continue Reading
Views : 53
Tuesday 23rd of October 2012

how to tile image on jlabel  

Hi, guys, I want to make a label using 3 images,two for top and tail,one for middle.and I want to tile the middle image. How can I get it? thanx a lot Best Regards Dragon ... Continue Reading
Views : 70
Tuesday 23rd of October 2012

Disable CONTROL & ALT Keys  

Hi Guys.. I am developing windows application,I tries so hard to disable these keys to solve unexpected user-input.. i am making an application must not closed, i hide all desktop shortcuts, but i didn't hide Start-Menu, ALT-CONTRL-DEL Dialog Box, i... Continue Reading
Views : 38
Tuesday 23rd of October 2012

Swing  

Hi all, Can anyone recommend some good reading on Swing, in particular how to switch from one window to another without having multiple windows showing on your toolbar, but retaining the ability to switch back to a previously opened window? I have... Continue Reading
Views : 45
Tuesday 23rd of October 2012

swt + jface == swing   

Hi ranchers. I heared a lot about SWT and JFace. would you mind explaining them to me ? I am familiar with Swing, can you tell me the equivalents of SWT and JFace in Swing world ? (I don't know, something like : SWT component are like... Continue Reading
Views : 57
Tuesday 23rd of October 2012

How to place the Tab in JTabbedPane on the right hand side of the tabbedpane  

How to place the Tab in JTabbedPane on the right hand side of the tabbedpane Continue Reading
Views : 55
Tuesday 23rd of October 2012

Clearing a JList  

Hi all! I want to clear all the items of the list because depending on the option the user chooses I'm showing one kind of information or another. I'm trying list.removeAll(). It doesn't work. With the Continue Reading
Views : 47
Tuesday 23rd of October 2012

group labels for similar labels in java  

Hello can any body tell how to create a group labels Thank you in adavance Continue Reading
Views : 48
Tuesday 23rd of October 2012

Panel issue  

Hi, I have a frame that opens with a panel at the top with buttons in it, and a paint area below that. I wish to have the frame no able to be resized, and have done so. The problem i have is that without resizing the frame, my panel does not... Continue Reading
Views : 57
Tuesday 23rd of October 2012

Odd behaviour   

Hey all. I am using winxp and I set the look and feel of my swing application to GTK. when running my application inside eclipse, every thing is all right, but when running it outside eclipse, I got an exception that says : unable to locate GTK... Continue Reading
Views : 52
Tuesday 23rd of October 2012

Swing Interapp Communication  

This has been discussed numerous times before however, I don't feel the problem has ever been addressed aside from quesses and "this worked for me". So I'll propose it again and we'll see where it takes us. What is the best way for swing components... Continue Reading
Views : 61
Tuesday 23rd of October 2012

creating a custom cursor  

how can i create a cursor other than the ones java supply(hand,resizable), for example creating a cursor from an image? Continue Reading
Views : 48
Tuesday 23rd of October 2012

Dialog boxes  

I want to use a JDialog box in the application start up. It dont have any parent dialog boxes or parent frames. If i set the modal property... Continue Reading
Views : 53
Tuesday 23rd of October 2012

Detecting double-click events  

I have a jList I want to have preform a task if the user double-clicks an entry. But I only see a mouseClicked(MouseEvent e) which... Continue Reading
Views : 74
Tuesday 23rd of October 2012

Insertion in JTextArea  

Hi! I have a JTextArea which has some strings(each Continue Reading
Views : 49
Tuesday 23rd of October 2012

Text Area  

What I need is a Textarea that will take the name of a text file and add it to the list. Then if the user clicks on that perticular name it will launch the Text file. How do I do this? Anything that points me in the right direction is greatly apprecieted. Continue Reading
Views : 45
Tuesday 23rd of October 2012

how set internationalization on Java Swing class.  

How to implements internationalization this program. My java swing toolbar set two icons 1. English 2. German how ot implement this ... Continue Reading
Views : 50
Tuesday 23rd of October 2012

how to make this window to be modal  

/* * mainFrame3.java * * Created on 7. september 2004, 21:26 */ /** * * @author Administrator */import javax.swing.*;import java.awt.event.*; public class mainFrame3 extends JFrame implements... Continue Reading
Views : 53
Tuesday 23rd of October 2012