This raises another question. How to sign applets using JDK 1.3 ? [EMAIL PROTECTED] wrote: > Send Advanced-swing mailing list submissions to > [EMAIL PROTECTED] > > To subscribe or unsubscribe via the World Wide Web, visit > http://eos.dk/mailman/listinfo/advanced-swing > or, via email, send a message with subject or body 'help' to > [EMAIL PROTECTED] > > You can reach the person managing the list at > [EMAIL PROTECTED] > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Advanced-swing digest..." > > Today's Topics: > > 1. RE: accessing file thru applet (Mads Pultz) > 2. Help with JTable column width (Bill Tschumy) > > --__--__-- > > Message: 1 > From: "Mads Pultz" <[EMAIL PROTECTED]> > To: "Ravi Prakash" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]> > Subject: RE: accessing file thru applet > Date: Tue, 24 Apr 2001 16:34:03 +0200 > > If the file you are trying to read isn't located on the machine from where > you downloaded the applet then this answers you question. You need to sign > your applet to read the file. > > Mads > > > -----Original Message----- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Ravi > > Prakash > > Sent: 19. april 2001 19:33 > > To: [EMAIL PROTECTED] > > Cc: [EMAIL PROTECTED] > > Subject: accessing file thru applet > > > > > > when i am trying to access a file contents thru applet i am getting > > this error > > > > java.security.AccessControlException: access denied > > (java.io.FilePermission ani_firewall_passthru_ips.txt read) > > > > could any one suggest what went wrong... > > > > > > ravi > > > > _______________________________________________ > > Swing mailing list > > [EMAIL PROTECTED] > > http://eos.dk/mailman/listinfo/swing > > --__--__-- > > Message: 2 > Date: Tue, 24 Apr 2001 16:49:02 -0500 > To: [EMAIL PROTECTED] > From: Bill Tschumy <[EMAIL PROTECTED]> > Subject: Help with JTable column width > > I've been having a devil of a time trying to get the columns of my > JTable to size correctly. I have a very simple table inside of a > JScrollPane. The rows consist of a 16x16 icon in column 0 and a > String in column 1 (basically a status icon for a hostname). > > I have specified a preferred width of 20 for column 0 and for a while > this was sizing correctly. However, after adding the code in the > TableModel that returns the ImageIcon object for column 0 cells, now > the table insists on allocating equal space to the two columns. I > have verified that the width of the ImageIcons being returned is 16 > pixels. Why is the table allocating so much space to the column? > > Here is the relevant code. > > private HostTableModel tableModel = new HostTableModel(); > > public HostList() > { > TableColumn column; > > setModel(tableModel); > > column = getColumnModel().getColumn(0); > column.setPreferredWidth(20); > column.setMinWidth(20); > column.setMaxWidth(20); > column.setResizable(false); > > column = getColumnModel().getColumn(1); > column.setResizable(false); > > JTableHeader header = getTableHeader(); > header.setResizingAllowed(false); > header.setReorderingAllowed(false); > > setAutoResizeMode(AUTO_RESIZE_LAST_COLUMN); > } > > private class HostTableModel extends AbstractTableModel > { > > public Class getColumnClass(int col) > { > if (col == 0) > return ImageIcon.class; > else > return super.getColumnClass(col); > } > > public int getColumnCount() > { > return columnNames.length; > } > > public int getRowCount() > { > return hosts.size(); > } > > public String getColumnName(int col) > { > return columnNames[col]; > } > > public Object getValueAt(int row, int col) > { > RemoteHost remoteHost = (RemoteHost)hosts.elementAt(row); > if (col == 0) > { > return getHostStatusIcon(remoteHost); > } > else > { > return remoteHost; > } > } > } > > Thanks. > > -- > Bill Tschumy > Otherwise -- Austin, TX > [EMAIL PROTECTED] > > --__--__-- > > _______________________________________________ > Advanced-swing mailing list > [EMAIL PROTECTED] > http://eos.dk/mailman/listinfo/advanced-swing > > End of Advanced-swing Digest _______________________________________________ Advanced-swing mailing list [EMAIL PROTECTED] http://eos.dk/mailman/listinfo/advanced-swing
