Forum

Posts

RECENTLY INDEXED PROGRAMMING SOLUTIONS OF Swing / AWT / SWT


JTextPane  

Hi everyone, I have a question about doing something. I have a jtextpane that you can type text and all but i need to create something like microsoft's word 2000 in where i can view the entire print layout of the jtextpane as a print layout but also... Continue Reading
Views : 47
Tuesday 23rd of October 2012

problem in JEditorPane.  

Hi Friends, I have small problem with the JEditor Pane can some one help, the problem is that I want to view the HTML page from a specified offset with the editor pane. Thank you regards sham ... Continue Reading
Views : 61
Tuesday 23rd of October 2012

Handling External Event  

Hi, I have a SWT application that resides in system tray. How can I make it respond to some external key press events. i.e if I press some key (like F2) at the desktop level, it should take screen print and store some where. Thanks... Continue Reading
Views : 41
Tuesday 23rd of October 2012

setOpaque(false) problem..  

I have a class that inherits from JComponent and it's opaqueness is set to false. As the result of this, the paintComponent method is no... Continue Reading
Views : 54
Tuesday 23rd of October 2012

modal jdialog progressbar  

Hey all, I am having an issue with a modal jdialog progress bar. I currently have a main frame that launches a progressbar, however, processing is taking place in the main frame that should determine when the progress bar is finished. Originally the progressbar... Continue Reading
Views : 53
Tuesday 23rd of October 2012

Reshaping swing components  

hi Is it possible to have swing components (buttons, label etc.) in shapes other than a rectangle (i.e circle etc.) ? If yes, please tell me how to, if no then why not? Thanks Continue Reading
Views : 82
Tuesday 23rd of October 2012

paint method  

Hi everyone, Ive created an applet in java for which... Continue Reading
Views : 56
Tuesday 23rd of October 2012

Double JList for Selection Panel with editable fields  

I'm not entirely sure how to describe this, but the widget should allow users to set up how they want a table to look. There is a list of available columns, and they have to choose which are visible, and of those that are visible they set how wide the column is,... Continue Reading
Views : 80
Tuesday 23rd of October 2012

Limiting User Input  

Do some searching on Glass Plane. It's not actually a class, but searching on that should find you some solutions. One other thing. I hate to mention this, and you may not want to look, but Connect 4 has been Continue Reading
Views : 48
Tuesday 23rd of October 2012

formatting JTextField  

How would format a JTextField to not allow a value greater than 500 entered? thanks Continue Reading
Views : 49
Tuesday 23rd of October 2012

NullPointerException at BasicTableUI$MouseInputHandle  

Hi, I'm using a Jtable and adding certain custom components to it. I get the following NullpointerException when I click on cell which has the custom component(A Continue Reading
Views : 41
Tuesday 23rd of October 2012

Outliner Program  

I posted a question about Outliner to the Beginner's site, but thought that it probably is more approprite to this as it involves gui. I've looked at the Continue Reading
Views : 43
Tuesday 23rd of October 2012

Flashy JLabel  

Ladies n Gents, I have a JTable with a custom renderer. I am attempting to make the text in the cells flash when a certain... Continue Reading
Views : 62
Tuesday 23rd of October 2012

Repainting a nested JPanel  

I have a JPanel that's nested inside of another Continue Reading
Views : 82
Tuesday 23rd of October 2012

Converting an applet to a Panel on a frame  

I'm having trouble converting a Sun sample from a perfectly working Clock applet to a Clock on a Panel on a Continue Reading
Views : 55
Tuesday 23rd of October 2012

How to compare two records in a XML file  

I have retrived the records.In my programe they appear as nodes.Now I want to compare if them is indentical.I do it like this: First,see if they have the same attributes,then the values. I get the attributes use node.getAttributes(),return a... Continue Reading
Views : 50
Tuesday 23rd of October 2012

raphics &graphics2d  

when is it relevant to use graphics2D object over Grapihcs object... i m working on simple pacman application. Continue Reading
Views : 59
Tuesday 23rd of October 2012

Double JDialog question  

If I have two JDialogs open, which are not modal, and I want to close BOTH of them if the user clicks outside either of the two JDialogs, how might I go about this? I have no problem doing this with a single Continue Reading
Views : 68
Tuesday 23rd of October 2012

Help with coding a layout  

I want to code the following layout but am inexperienced with FlowLayout, Continue Reading
Views : 55
Tuesday 23rd of October 2012

Slight Swing Layout issue  

Hello, I've written a small swing application which displays a html pane, on top of this pane is a jtoolbar. The problem i'm having with this is that, there is some empty space below the toolbar, before you then see the html pane. I know this seems minor but it... Continue Reading
Views : 49
Tuesday 23rd of October 2012

Icon image is not shown properly in LInux  

Hi, I am creating a JDialog as follows: Continue Reading
Views : 59
Tuesday 23rd of October 2012

Help System.  

I want to create a help system.I design it like this,just like windows help,a JTree on the left, the content on the right,when some node... Continue Reading
Views : 55
Tuesday 23rd of October 2012

Image Processing Filters TWIRL/Ripple etc.  

Using j2sdk1.4.2 Looking specifically if there is a TWIRL filter class or anything similar available. Have been searching for quite some time with no luck. Continue Reading
Views : 60
Tuesday 23rd of October 2012

SWT - Text widget size  

I have a problem with the size of my texts widgets, when i set a large string the size... Continue Reading
Views : 52
Tuesday 23rd of October 2012

Regarding Event handling for TextField when Tab Pressed  

Hi, I have a text field. I am doing some validation for that text field. If the user enters some invalid value and then presses tab, then appropriate message should be displayed. What event related to the text field i have to use so that i can catch the TAB... Continue Reading
Views : 62
Tuesday 23rd of October 2012

How do i add label/textbox to a jtable  

Hi, Hi all, Can anybody help me in this regard. I have a JTable with n number of rows. I want to... Continue Reading
Views : 104
Tuesday 23rd of October 2012

How to switch frame use JButton  

Dear All!! I suffer a trouble in UI design. I got several frames in the project, nearly finished the function in each single frame, but i cannot link them together. for example: First frame1 = new First(); CheckIn frame2 =... Continue Reading
Views : 48
Tuesday 23rd of October 2012

Button look and feel  

Hi, I have a login screen. I have a Login button in that. When the enter key is pressed in the textfield, the login button should look depressed (selected) and the application should start loading. Immediately after starting to load say some 5... Continue Reading
Views : 82
Tuesday 23rd of October 2012

Colour of tabs in a JTabbedPane  

Hi I am using a JTabbedPane with three tabs. However, the backgroud colour of the tabs looks a shade darker than the... Continue Reading
Views : 65
Tuesday 23rd of October 2012

Event overflow  

Another question I had is what strategies have you found useful in handling lots of events. I'm working on a fairly complicated swing application and we continue to add new events to the system. This ends up to the point where the user clicks one button and so... Continue Reading
Views : 41
Tuesday 23rd of October 2012