Forum

Posts

RECENTLY INDEXED PROGRAMMING SOLUTIONS OF Swing / AWT / SWT


How can I build a custom image tooltip   

How can I build a custom image tooltip ? As you know, we can set tooltip as text, but now I want to set an image as tooltip. How can I do that ? Thanks Continue Reading
Views : 93
Tuesday 23rd of October 2012

formfeed in a textarea  

Is there a way to print a textarea and midway through printing issue a formfeed? I load to files into a textarea for the user to view and then print. I would like the two file to be printed with a new page between them so no part of either file is on the other... Continue Reading
Views : 97
Tuesday 23rd of October 2012

How To Make JLabel automatically wrap to next line  

I have a JLabel text displayed in an Introductory text in a dialog. How can I make it fit in with the dialog width and automatically wrap to... Continue Reading
Views : 44
Tuesday 23rd of October 2012

Journal Article - Synchronized Multithreading with Swing  

The just-released October 2004 edition of The JavaRanch Journal includes an article by Tom Tolman, "Java Designs - Synchronized Multithreading with... Continue Reading
Views : 46
Tuesday 23rd of October 2012

Displaying superscripts/subscripts in a Swing app  

I have a Swing app that needs to display Unicode superscripts and subscripts. So far I haven't been able to get them to display correctly. Can anyone help? Continue Reading
Views : 39
Tuesday 23rd of October 2012

Custom drawing  

I'm trying to create an application that renders custom components like rectangles, ovals, ... I'm now trying to subclass Jcomponent and overriding paintComponent. The code is public class SubProcess extends Continue Reading
Views : 42
Tuesday 23rd of October 2012

Focus Problem in JTable  

i am facing problem because of Focus, actually in my current application i have to get all edited values in cells of selected row, on click of button. now problem is i m not getting new updated value of currenlt selected cell. if... Continue Reading
Views : 52
Tuesday 23rd of October 2012

Parent/Child Window Communication  

Background: I have a parent window (JFrame object) CustomerForm and a child window ( Continue Reading
Views : 36
Tuesday 23rd of October 2012

table row height  

I have a JTable with a comboBox as a cell editor. This works fine but looks a little bad. The comboBox needs to... Continue Reading
Views : 77
Tuesday 23rd of October 2012

Is it possible to add a JPanel to AWT Frame  

Folks, Is it possible to add a JPanel with some swing components to AWT Frame? If yes, how? ... Continue Reading
Views : 41
Tuesday 23rd of October 2012

adding components to JPanel  

Hi there, I want to know how to make visible components added to a JPanel that happens to be inside a Continue Reading
Views : 75
Tuesday 23rd of October 2012

View new frame while open a frame  

i want to ask about a simple thing and i hope anybody can help me. Could a frame(Frame A) view other frame(Frame B) by only we generate new object B from Object A? Thanks a lot. Continue Reading
Views : 50
Tuesday 23rd of October 2012

TextField for a translator  

Hi there I am busy writing some translation software for my company and I have run into one requirement from the boss that I am having trouble implementing. Basically, I am stripping the values out of define statements out of php files... Continue Reading
Views : 47
Tuesday 23rd of October 2012

Table...editing in swt..  

Tables in swt is quite pain in ... the class tableEdit is always generating errors in the debugger... is there a way to come over this...and can one add images to table cells or icons... thnx... Continue Reading
Views : 46
Tuesday 23rd of October 2012

how to redirect backspace key to some other function  

hi, i m creating a textEditor, i stuck in a module. i want to include the 'track changes' facility as in MS-WORD 2003. ie whenever i delete some text they will not physically erased, instead they the text shud be displayed in some... Continue Reading
Views : 42
Tuesday 23rd of October 2012

import an access table into a JList  

I import an access table into a TextArea with a JScrollpane and I need some help to select multiple items using the control button. Please... Continue Reading
Views : 76
Tuesday 23rd of October 2012

screen flickers  

hi, i have a JTable in my application. Continue Reading
Views : 82
Tuesday 23rd of October 2012

graphics question: paint(), repaint(), update()  

Hi I have a GUI which consists of swing components and I want to paint onto them. For example if somebody select a component I want to paint a rectangle around it. The select event stores the component in a variable and calls repaint().... Continue Reading
Views : 63
Tuesday 23rd of October 2012

Getting Button names from property file  

In my swing application I want to get button names from property file How I can proceed? Thanks Inadvance Raj Continue Reading
Views : 35
Tuesday 23rd of October 2012

Newbie, Please Help: Why can I not get the numbers to display  

I have to write a program that shows three stations that collect numerical data for rainfall. I suppose to be able to put the number in and click enter and the number will show up in the box beside the input box. Then the input box goes back to 0.0, and anytime... Continue Reading
Views : 79
Tuesday 23rd of October 2012

can get label on second line  

When I insert a label on frame I can insert on only one line how to get on next line is there any escape sequence like??? Like I want My name is jay. I am 21 years old but I am getting My name is jay. I am 21 years... Continue Reading
Views : 61
Tuesday 23rd of October 2012

Book for Awesome User Interface Design  

What is the best book for creating intuitives user interfaces? I heard that "Java(TM) Look and Feel Design Guidelines" was a good one. Has anyone read it? With thanks, Continue Reading
Views : 42
Tuesday 23rd of October 2012

Basic Question about JTable  

I have a pretty basic question. I placed a JTable inside a Continue Reading
Views : 61
Tuesday 23rd of October 2012

RequestFocus between two frames  

Hi there I have jframe A with a JPanel pA . When the user selects an item in a list on pA, frame B must open, but the focus must... Continue Reading
Views : 40
Tuesday 23rd of October 2012

JCombo and its listeners  

Hallo I have a combo with variable contend, that means I sometimes remove its elements and add new one. The combo has also a action listener( Continue Reading
Views : 70
Tuesday 23rd of October 2012

justify  

i tried to justify the text in JTextPane, using StyleConstants.Align_Justify and... Continue Reading
Views : 40
Tuesday 23rd of October 2012

Trying to lock the keys of keyboard  

Dear All, Trying to lock the keys of keyboard using java Can anyone help me to lock the keys of the keyboard using the java desktop application... Continue Reading
Views : 40
Tuesday 23rd of October 2012

Making a buffered image of a JTable row  

Does anyone have any example code for making a buffered image of a row of a JTable? Many thanks in advance. ... Continue Reading
Views : 67
Tuesday 23rd of October 2012

How to disable a certain treenode in a jtree  

hi how can i disable only a certain treenode in a jtree? i know that if i use setEnabled(false) on a jtree it would disable the entire tree, but there's no such method to invoke on a treenode Continue Reading
Views : 47
Tuesday 23rd of October 2012

How to show Modelless Frame  

I want to show one frame from another frame. And at a time we can work on most shown frame. Continue Reading
Views : 42
Tuesday 23rd of October 2012