RE: Path Files

2004-02-17 Thread Deblauwe, Wim
Title: RE: Path Files Use the following construct: ImageIcon image = new ImageIcon( getClass().getResource( "images/file_close.gif" ) ); This construct will find resources that are in the classpath. Suppose this code is in a class in a package com.mycompagny.application, then you need to

RE: listview question.....

2004-02-17 Thread Deblauwe, Wim
Title: RE: listview question. Do you mean JList? More info on Swing: http://java.sun.com/docs/books/tutorial/uiswing/ -Original Message- From: Jessamine [mailto:[EMAIL PROTECTED]] Sent: dinsdag 17 februari 2004 9:41 To: [EMAIL PROTECTED] Subject: listview question. Hi,

RE: Add new lines to the JTable

2004-02-04 Thread Deblauwe, Wim
Title: RE: Add new lines to the JTable Hi, first of all, you need to call fireTableDataChanged() from _within_ your TableModel incrementRow() method: class MyTableModel extends AbstractTableModel {   //other methods here     void incrementRow() { //notice the lowercase i, this is co

RE: Add new lines to the JTable

2004-02-04 Thread Deblauwe, Wim
Title: RE: Add new lines to the JTable Call fireTableRowsInserted() in the incrementRow() function -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: woensdag 4 februari 2004 15:01 To: [EMAIL PROTECTED] Subject: Add new lines to the JTable What is the bett

RE: Setting new JPane to a JFrame.

2004-01-19 Thread Deblauwe, Wim
Title: RE: Setting new JPane to a JFrame. After this line: m_frame.setContentPane(createPanel(fileChooser.getSelectedFile())); put: m_frame.validate(); or m_frame.pack(); if the size of the frame should/can change. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

RE: weird focus behaviour with 2 JTextArea's

2003-10-30 Thread Deblauwe, Wim
ent/Outsourcing Java Filter Forum:   http://www.ibm.com/developerworks/java/ Just the JDBC FAQs: http://www.jguru.com/faq/JDBC Going International?    http://www.jguru.com/faq/I18N Que Java400? http://www.jguru.com/faq/Java400 ----- Original Message - From: "Deblauwe, Wim

weird focus behaviour with 2 JTextArea's

2003-10-29 Thread Deblauwe, Wim
Hi,   I want enable TAB/SHIFT-TAB in a JTextArea to go to the next JTextArea and not print a tab character in the JTextArea. This can be easily done with setFocusTraversalKeys(). But I found something strange. Below is a testprogram with one JButton and 2 JTextArea's. When the program is sta

shorten text in JTextAre with ...

2003-06-20 Thread Deblauwe, Wim
Title: shorten text in JTextAre with ... Hi, I've got a JList with a custom renderer. I want this renderer to display 2 lines of text. If the text is more then what these 2 lines can display, then I want to break off the text and show "..." at the end. I'm doing this as follows now (see belo

RE: suspend the awt thread

2003-06-12 Thread Deblauwe, Wim
operations inside the runnable - finish off the whole task inside the run method. - Original Message - From: Deblauwe, Wim To: 'Sachin Hejip' Sent: Wednesday, June 11, 2003 1:17 PM Subject: RE: suspend the awt thread But afte

RE: suspend the awt thread

2003-06-10 Thread Deblauwe, Wim
2003 8:45To: Deblauwe, Wim; [EMAIL PROTECTED]Subject: Re: suspend the awt thread Sorry - sent it before completing my sentence - I meant to say a) seems the best way . :-) - Original Message - From: Sachin Hejip To: Deblauwe, Wim ; [EMAIL PROTECTED

suspend the awt thread

2003-06-10 Thread Deblauwe, Wim
Title: suspend the awt thread Hi, I want to suspend the awt thread but still get painting done. Is this possible? assume this piece of code: actionPerformed(ActionEvent e) {     Runnable myRunnable = new MyRunnable();     Thread workerThread = new Thread( myRunnable );     wo