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
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,
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
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
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
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
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
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
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
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
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
11 matches
Mail list logo