Forum

Posts

RECENTLY INDEXED PROGRAMMING SOLUTIONS OF Swing / AWT / SWT


TimeComboBox   

Does anyone have any idea of a disegn of a TimeComboBox? (just like a DateComboBox like this: http://www.developer.com/img/2001/04/datechooser.jpg) ... Continue Reading
Views : 47
Tuesday 23rd of October 2012

JTable question  

Hi, I am making an instance of JTable using this constructor: Continue Reading
Views : 65
Tuesday 23rd of October 2012

JComboBox problem  

Hi All, i want to store the objects in jcombobox.but the display name in combo should be one of it's properties of that objects like name,id etc. This is same as value and text of select/option in html. can we do that in Continue Reading
Views : 47
Tuesday 23rd of October 2012

Working with Two Windows  

I wrote a JDBC GUI application that can change the passwords of Oracle users which called ChgPass. I wrote another GUI application that can... Continue Reading
Views : 41
Tuesday 23rd of October 2012

Maximizing the Jframe in Swings  

Hi All, My Frame Normal position is (640X480).I am using JDK 1.3.1 package. While maximizing the Jframe it takes bounds as (800 x 600), But the next frame is opening with ( 808 X 580 )bounds, Getting different bounds. Applying... Continue Reading
Views : 50
Tuesday 23rd of October 2012

TableSorter in Netbeans  

I'm trying to add some functionality to my tables in netbeans by adding the TableSorter class to the app to extend, but not entirely sure what i need to do. Basicall i have imported the TableSorter class from Continue Reading
Views : 56
Tuesday 23rd of October 2012

Problem with JFileChooser Create New Folder when Program Files folder is selected.  

Hi, In the JFileChooser when i select Program Files folder the Create New Folder button is disabled.Is this the property of Continue Reading
Views : 95
Tuesday 23rd of October 2012

AWT: how to get the size of the titlebar in a Frame  

Hello all, I have encountered a problem that seems like it ought to have an easy fix, but I can't seem to find any info about it, anywhere. My Continue Reading
Views : 59
Tuesday 23rd of October 2012

SWT  

Hi, How to refresh the canvas? Is there any method to refresh the canvas? ----------------------------------------- My case: - The first group of images is loadded onto the canvas. - When clicking the button to... Continue Reading
Views : 78
Tuesday 23rd of October 2012

two questions about columns in JTable  

1- How can i make two columns of JTable uneditable while others editable? 2- if i have 10 rows in a Continue Reading
Views : 110
Tuesday 23rd of October 2012

query abt jeditorpane  

hi all, i am using JEditorPane to display the html page when where the user selects the URL from the... Continue Reading
Views : 60
Tuesday 23rd of October 2012

JTextField - DocumentListener  

Hallo I have a text field and I want to know when the field is changed by the user, for this I add a Continue Reading
Views : 54
Tuesday 23rd of October 2012

JScrool.getMaximum/getValue problem=  

Hey I need to get the maximum posible scrool position of a JScrollbar The getMaximum() simes to work fine! But the getVlaue is not as good. When i print out all the getvalues as soon as i move the scrool i have notice that... Continue Reading
Views : 93
Tuesday 23rd of October 2012

Column Header in JTable  

hi all , can we set the font of column header of a JTable . please reply soon .. thanks . Continue Reading
Views : 68
Tuesday 23rd of October 2012

Split Pane & JTable - program hangs. Help!  

I have a split pane with the top half used for ComboBoxes and search criteria and the bottom half devoted to displaying the results of the search criteria in a Continue Reading
Views : 75
Tuesday 23rd of October 2012

Making a diagram interactive  

Hi @ll, I'm programming a complicated Applet with a lot of functions. Because of just a bit experiences with Continue Reading
Views : 69
Tuesday 23rd of October 2012

Swing Framework  

This question was asked two years back on this forum, without any replies......I am facing the same question today. Would anyone know the answer? Thanks! ================== Hi EveryBody, Is there a framework available for... Continue Reading
Views : 64
Tuesday 23rd of October 2012

Problem in displaying JTable multiline headers with icons in jdk1.2  

Hi all, I am trying to display icons for JTable headers which are single line & multiline headers. When a header is clicked the... Continue Reading
Views : 143
Tuesday 23rd of October 2012

JTable  

Hi Friends, I've a JTable and i want to show some of the rows and want to hide some. What technic i've to use to hide those... Continue Reading
Views : 56
Tuesday 23rd of October 2012

how to set Box color  

Hi, I have tried setting a Box background color by doing the following and haven't had any luck: box.setBackground(Color.BLACK); The Box just stays the regular old gray. I have tried different colors, caps, lowercase.. nothing... Continue Reading
Views : 55
Tuesday 23rd of October 2012

Colored text output  

Following are the codes i've used to output my sequence in the main() method. It does give me the sequence that i want, but since i'm not femiliar with Swing stuffs, can anyone help with how to get the sequence( Continue Reading
Views : 64
Tuesday 23rd of October 2012

nothing shows. what did i forget  

import java.awt.*;import javax.swing.*;public class testPanel extends JFrame { JTextField text1; JLabel label1; JButton button1; JTextArea area; JScrollPane scroll; /** Creates a new... Continue Reading
Views : 53
Tuesday 23rd of October 2012

JRadioButtons and newlines  

Hi all, I was wondering is possible to insert a newline in a JRadioButton description? i.e. Continue Reading
Views : 65
Tuesday 23rd of October 2012

character array  

I converted the string to a character array, looking Character api, for a method... Continue Reading
Views : 76
Tuesday 23rd of October 2012

Printing Embedded Icons  

Hi everyone, I have an embedded icon in a JTextPane and i am trying to print the contents of the Continue Reading
Views : 44
Tuesday 23rd of October 2012

Documents  

Hi everyone, I have two weird questions but bear with me for a while. The first question is about the printing of a styled document using the printable interface. i am using windows 98 and using the windows page format and print dialog.... Continue Reading
Views : 34
Tuesday 23rd of October 2012

BufferStrategy and JMenuBar  

Hello there! I'm using a BufferStrategy to draw some graphics in my app, however, when the graphics appear, it will... Continue Reading
Views : 60
Tuesday 23rd of October 2012

HTMLDocument no new line[ENTER] problem. Here is my code.  

Hi Guys, The code below (it was revised and some parts of it were eliminated for irrelevancy) has a frame with a JTextPane... Continue Reading
Views : 96
Tuesday 23rd of October 2012

Problem in Relation to Action Listener  

Hey Small Probelm in the code below i can't get the action listener to work. I've tried using the e.getcommand method on the button also just won't pick up anything for me. Any help with this would be great Cheers ... Continue Reading
Views : 58
Tuesday 23rd of October 2012

inherited vs. implements Listeners  

I'm working with a sample class that extends JFrame. I noticed that I had to add "implements KeyListener" and declare the appropriate methods... Continue Reading
Views : 70
Tuesday 23rd of October 2012