[j2as] asWing && j2as ?

iiley iiley.chen at gmail.com
Thu Aug 11 06:00:23 PDT 2005


Yup, Nicolas is right. We are cutting some.

2005/8/11, iiley <iiley.chen at gmail.com>:
> Hmm~ it's possible to implement most of the original Swing api. Some
> are not usually useful and Java2D related  would hard to implement.
> 
> 2005/8/11, iiley <iiley.chen at gmail.com>:
> > Yup, just a similar architecture. But we are intend to keep most api
> > same to Java Swing except some big issue. Performance is a reason, and
> > the different graphices model is the big reason too, also the language
> > diffs..
> >
> > 2005/8/11, Ralf Bokelberg <info at bokelberg.de>:
> > > Ok, i see. So your main goal is not implementing the original api but
> > > implementing a similar architecture. I'm not sure, if it can be
> > > converted. I'm not a very experienced Java developer.
> > >
> > > What were the reasons to change the api? Performance?
> > >
> > > Cheers,
> > > Ralf.
> > >
> > >
> > > iiley wrote:
> > >
> > > > Ah~~~i think it's not easy, there are many different from Java Swing
> > > > to AsWing, the big problem may be the event dispathing, In Swing,
> > > > there are lot of Listener interfaces, in AsWing there is not, for
> > > > example in Java Swing generally:
> > > > ----------------------------------------------------------------------------------
> > > > JButton button = new JButton("button");
> > > > button.addActionListener(new ActionListener(){.....});
> > > > ----------------------------------------------------------------------------------
> > > > but in AsWing, we do that this way generally:
> > > > ----------------------------------------------------------------------------------
> > > > var button:JButton = new JButton("button");
> > > > button.addEventListener(JButton.ON_RELEASE, your_handler_function);
> > > > ----------------------------------------------------------------------------------
> > > >
> > > > And in many different component there are different listeners, for
> > > > example JList there is a method
> > > > addListSelectionListener(ListSelectionListener listener), in AsWing
> > > > you also just need call addEventListener(JList.ON_SELECTION_CHANGE,
> > > > your_handler_function).
> > > >
> > > > I want to know is this different can be convert? Thanx for the cool
> > > > tools.(I am using it from tody in fact).
> > > >
> > > > /iiley
> > > >
> > > > 2005/8/11, Ralf Bokelberg <info at bokelberg.de>:
> > > >
> > > >>Hi iiley,
> > > >>
> > > >>you asWing project seems like the perfect partner for j2as. I'm thinking
> > > >>about writing a Swing application in Java and compiling it against
> > > >>asWing using mtasc. Do you think, this would be possible?
> > > >>
> > > >>Cheers,
> > > >>Ralf.
> > > >>
> > > >>
> > > >>_______________________________________________
> > > >>j2as mailing list
> > > >>j2as at osflash.org
> > > >>http://osflash.org/mailman/listinfo/j2as_osflash.org
> > > >>
> > > >
> > > >
> > > > _______________________________________________
> > > > j2as mailing list
> > > > j2as at osflash.org
> > > > http://osflash.org/mailman/listinfo/j2as_osflash.org
> > >
> > > _______________________________________________
> > > j2as mailing list
> > > j2as at osflash.org
> > > http://osflash.org/mailman/listinfo/j2as_osflash.org
> > >
> >
>



More information about the j2as mailing list