Setting new JPane to a JFrame.

2004-01-19 Thread Marcos . Rebelo
This is the most simple code that I found to show this error. I have JFrame with a complex Content Pane (not this one). I'm trying to recreate the Content pane for each File but after I set the new Content Pane there is no Change, But if I try to resize the new Pane alredy apears. What do I

Dialog for Open one File

2004-01-21 Thread Marcos . Rebelo
I need a Open file Dialog. I was seeing the JFileChooser and I did this class. public class JDialogFileOpen extends JFileChooser { public int showDialog(Component arg0, String arg1) throws HeadlessException { while (true) { int nOption = super.showDialog(arg0,

Trees and XML

2004-01-23 Thread Marcos . Rebelo
I don't have access to the internet, it's why I'm asking this in here. I need to learn the JTrees and to read and write XML files. Someone as example of how to do this? Thanks Marcos ___ Advanced-swing mailing list [EMAIL PROTECTED]

Limits in JTable

2004-01-27 Thread Marcos . Rebelo
This is one of the most strange error that I ever found. If I run the some code in Windows NT works, in a sun workstation works and in Window throw Exceed to a sun worstation don't work. With this code works in the 3: import javax.swing.*; import javax.swing.table.*; public class Main {

FW: right click open one menu

2004-01-30 Thread Marcos . Rebelo
I'm lost how to do it with a JTable. This code is not running import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.table.*; class PopupListener extends MouseAdapter { JPopupMenu m_pmnPopup; public PopupListener(JPopupMenu pmnPopup) {

Add new lines to the JTable

2004-02-04 Thread Marcos . Rebelo
What is the better way to add lines to a JTable. I have my TableModal and I add one line to the Model, know I need the line to apear in the interface. The only way that I get it to work is with the line 'scrollPane.getViewport().add(table);' (I tryed allot of things before I get here). What is

RE: Add new lines to the JTable

2004-02-04 Thread Marcos . Rebelo
Thanks for this answer, I look in the table and I never remember to go to the TableModel. Onether question. Know I have the Table with the cells editable. If I chose another column the setValueAt is called. If I press the button the setValueAt is not called. If I go to the TextArea the

Path Files

2004-02-17 Thread Marcos . Rebelo
In my program I'm using ImageIcon for the buttons and I had this code Action actClose = new AbstractAction(Close, new ImageIcon(images/file_close.gif)){...} This works if I'm in the correct directory, but if I'm not the images are not found. What is the correct way to do the previus code?

Bringing one JInternalFrame to the front of the JDesktopPane

2004-02-18 Thread Marcos . Rebelo
I'm using one JDesktopPane in my project and I need to set one JInternalFrame in front of all the other and selected. Until know this is the better I can do. If the JInternalFrame is iconifyed this don't work. I know this must be a very simple thing to do but I don't find how. import

RE: Bringing one JInternalFrame to the front of the JDesktopPane

2004-02-18 Thread Marcos . Rebelo
Thanks, seems to be perfect. In the end of this work I shall write a book called Tips for real dummy programmers like me. Thanks Marcos -Original Message- From: Brian Gagne [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 18, 2004 5:19 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED]

Clipboard

2004-02-25 Thread Marcos . Rebelo
it, in one week, I estend the question to this as well. Thanks Marcos Rebelo ___ Advanced-swing mailing list [EMAIL PROTECTED] http://eos.dk/mailman/listinfo/advanced-swing