Dragging sprites from a window to another???

Hello,
How can I drag moveable sprites from a window (miaw) to
another? I have two layered windows. I want to drag a sprite from
the window on bottom to the window on top (miaw). The problem is
that the sprite stays behind the target window...
- Stefu

You've given me a challenge. I'm going to try to program
this. I don't
think it would be too difficult. A mouse down on your
moveable sprite
should set a flag that would make the MIAW look for the mouse
passing over
it. When that flag is set and the mouse is over the MIAW, a
sprite from the
miaw can track the mouse movement just as it would in the
main movie or
other MIAW. You could also load the image of the member of
the sprite from
the first window into a variable and send it to the MIAW,
create a cast
member, assign that image to the member and assign it to a
sprite so it can
be set to the location of the mouse. A small detail: you need
to save the
offset of the mouse loc relative to the original sprite and
use that offset
to place the new sprite relative to the mouse.
If you understand any of this you win the grand prize. But if
I have time
to do a mock up of this before you get another answer I'll
post the code.
It really should take that many lines. I vaguely remember
having to do this
on a project back in about '98 but it'd be easier to recreate
it rather than
search the archives to find it.
Craig Wollman
Lingo Specialist
Word of Mouth Productions
212-928-9581
www.wordofmouthpros.com
"Stefu80" <[email protected]> wrote in
message
news:ff5437$dem$[email protected]..
> Hello,
>
> How can I drag moveable sprites from a window (miaw) to
another? I have
> two
> layered windows. I want to drag a sprite from the window
on bottom to the
> window on top (miaw). The problem is that the sprite
stays behind the
> target
> window...
>
> - Stefu
>

Similar Messages

  • How do I move tabs from one window to another window?

    With the previous version of firefox, I could drag a tab from one window to another window. (and if there was only one tab left in that window, it would automatically close that window because there were no more tabs open in it)
    With the latest version of firefox, '''How do you drag or move a tab from one window to another window'''

    Hi,
    To move to the next tab it's '''Ctrl''' + '''Tab''' or '''Ctrl''' + '''Pg Dn''' (Page Down). To go to the previous tabs (reverse order) it's '''Ctrl''' + '''Shift''' + '''Tab''' or '''Ctrl''' + '''Pg Up''' (Page Up) keys. More about this and other keyboard shortcuts [https://support.mozilla.com/en-US/kb/Keyboard%20shortcuts here.]

  • Moving tabs from one window to another makes the new window vanish. I have hot corners enabled so when I move up to the right corner of my display I can see all my open windows but when I click on the tab that I moved to make it its own window it vanishes

    Moving tabs from one window to another makes the new window vanish. I have hot corners enabled so when I move up to the right corner of my display I can see all my open windows but when I click on the tab that I moved to make it its own window it vanishes

    I came up with an alternative solution.
    Instead of actually trying to move the JInternalFrame from one JDesktopPane to another, I added a single, maximized JInternalFrame to the left side. When one of the right side frames is to be docked, I merely copy its ContentPane to the single JInternalFrame on the left, set the original to be non-visible, and adjust the properties of the JSplitPane to make the "docked" frame appear.
    When the "close" button on the docked frame is pressed, I simply undo this procedure to "undock" the frame and redisplay it on the right-hand side (with its content intact from the docked frame, but in its original position).

  • Folder/ file icons are different sizes from one window to another!

    Hi there
    I am having an extremely annoying problem where all my folders and files (in icon view) are totally different sizes from each other from one window to another. For example, I might click on a folder that's icon is small sized (64x64), but when that folder opens up, the icons of the subfolders inside are huge (276x276) and need to instantly be resized and re-arranged. Then if i continue to open one of these subfolders, the file icons inside it are now medium sized (96x96). Each new folder that I go into on my hard drive will be differently sized and I end up spending ages resizing and re-arranging them before I can do my work. This problem never happened in Leopard and Im despairing of what to do.
    Is there a way of setting a default icon size and spacing that can then be applied to every folder and file on the hard drive? I have used the 'Use as defaults' option on the 'View options' window but this doesn't apply it to anywhere else besides the current window you are on.
    Surely, Im doing something wrong as Apple could never have overlooked such an obvious problem like this?
    Can anyone advise?
    Many thanks
    Dan

    The Finder will (theoretically) remember the view settings for each individual folder that you visit. If you have not opened a particular folder before, you should get the default view settings, but once you have changed the view then that is what you will get on subsequent visits. You can erase the previous settings by deleting the (normally invisible) .DS_Store file that is created in a folder when it is opened, but this file can contain other Finder metadata.

  • Fire Plug from one window to another

    Dear All,
    Is it possile to fire an outbound plug from one window to another?
    I am using a Popup window and on clicking a button in the popup window, I want to navigate to another view in the parent window.
    I know there are other ways to handle these kind of scenarios like using an eventhandler in the parent view and them firing a plug, but that would affect the rest of the applicatin flow.
    So I cannot avoid firing the plug from the view in the popup window.
    Can it be done?
    Thanks and regards,
    Mayuresh

    Hi Mayuresh Kanvinde ,
          I believe your popup is a modal window. If so in your action handler of the button on the popup window you can hide the popup window and then fire the navigation plug of your parent window.
       Your popup button action handler can call a method in your component controller where you can write the code to hide the existing popup window and then fire the plug in your parent window.
       make sure you store the IWDWindow object of your popup window on the context so that you have access to it to hide the popup window.
    Regards,
    Sanyev

  • Running MacOS 10.8.4  Contacts 7.1 (1170) can't drag cards from one folder to another.

    I am running 10.8.4 with contacts 7.1 (1170).  I find I can't drag cards from one (any) group to another group.  When I restart it shows the card and indicates that it should accept it as it isn't in that group.  But doesn't move cards.  Then it no longer gives any indication the cards are moving when I drag.  When I shut down and restart it gives indication the cards are moving but none move and then no longer gives any indication when I drag.  I am syncing with icloud.

    Problems such as yours are sometimes caused by files that should belong to you but are locked or have wrong permissions. This procedure will check for such files. It makes no changes and therefore will not, in itself, solve your problem.
    First, empty the Trash.
    Triple-click the line below on this page to select it, then copy the selected text to the Clipboard (command-C):
    find ~ $TMPDIR.. \( -flags +sappnd,schg,uappnd,uchg -o ! -user $UID -o ! -perm -600 -o -acl \) 2> /dev/null | wc -l
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window (command-V). The command may take a noticeable amount of time to run. Wait for a new line ending in a dollar sign (“$”) to appear.
    The output of this command, on a line directly below what you entered, will be a number such as "41." Please post it in a reply.

  • Can't Drag Text from Terminal Window to Mail

    I can drag and drop text from Mail to the Terminal window but not the other way around. I can drag text from Terminal to Word but not Mail. Is there a setting I have wrong somewhere?

    Do we know if this is in the plasn for 10.5? It just seems like one Apple app to another Apple app should be abel to drag and drop text. It does work from Mail to Terminal... I can always copy and paste the text but it just gnaws away at me I guess.

  • Dragging items from Safari windows

    I drag items, such as images, links, text clippings, etc. from Safari windows to the Finder or to Mail all the time. There's probably a concise name for that feature, but I can't think of it at the moment. Anyway, sometimes it simply refuses to work; the item visually snaps back to its position on the page (or the address bar) as soon as I let go of it. Often, if I go elsewhere (such as, for example, here to ask a question about it) and come back later the problem is gone. Any idea what causes this? It's been going on for years, in every then-current software version, though I admit not having tried 10.6 yet.

    Sorry, I should have been clearer: the exact same thing that will drag to another window normally, sometimes won't. And then it will again later. The particular item that got me to post was the URL in the address bar; I opened a new window and found this board, then went back to the other window which I had not touched in the meantime and was able to drag the address to the desktop again. And since posting, I've found it's not limited to Safari, so perhaps this wasn't the best place to post. It's nothing serious, just really annoying.... when it happens at all.

  • How can I copy light from one window to another in a photo?

    I am looking at printing an image I shot last winter as our Christmas card this year. There are three windows in a mediaeval building, each composed of multiple leaded panes and the one on the extreme left is lit. My partner would like to have the middle one lit as well. Is this feasible without commiting huge amounts of time to the project or do I need to rebook the snow and arrange a reshoot?

    brahma56,
    Here is another approach to light up the window:
    Open picture file
    Open a blank layer on top of this, fill it with black, blend mode normal, opacity 75% or so. Rename it "black night"
    Create new layer above this, name it "window 1", blend mode hard light
    Access lasso tool and select the window, feather=0
    Select a soft brush, mode normal, opacity 20-30%, paint window from bottom up. Should be a tad lighter at top vs. bottom. Use the "light" color from the window on the left which you can get with the eyedropper tool for your foreground color
    Use eraser tool to tidy up
    If wood slats on window are obscure, open a new layer at top, select foreground color from the window frame on the left, and using square brush, reconstruct same. TIP: When using brush tool, click at start point, hold down shift key, click on end point to get a straight line.
    Adjust opacity of black night layer to suit

  • Can i drag files from one computer to another

    can i drag files from one computer to another

    You can, if you want to transfer files between macs I advies to use AirDrop(wi-fi needs to be enabled). Use shift+command+R, this will take you to your AirDrop in finder. Do this on both computers and you should see the user of the mac where you want to transfer files to.
    If the seconds computer is a Windows, you can alway use a USB Drive, External Drive, through Dropbox(install dropbox on both computers and download the files that you need on the second computer) and if the file is small even mail.
    Regards,
    Jeroen

  • Premiere Pro CC crash when dragging media from project window

    I have had so many problems with CC (2014) since the 8.1 update. The latest problem is interacting with media in the project window. In any version of PP (7, 8.0.1, 8.1), when I attempt to drag media from the project window to the timeline i get the "Premiere Pro CC has encountered a serious error..." crash. I am running a Macbook Pro i7, 16gb of ram, Nvidia GT 750m graphics card, on OSX Yosemite. I have tried clearing the media cache and clearing settings on startup with alt+shift. I have been using 8.0.1 because of previous problems with serious ui lag on 8.1. I have had more problems with PP in the last 3 months, than in the previous 7 years I've used it.

    Hi Huzzahbeard,
    Just out of curiosity. How is it that your software is hindered by a plugin in Chrome. I .... I have no words. This solved my problem and thats great except. Push Bullet is the issue! No, what is premiere even doing with my browser that push bullet would cause problems.
    I looked at our bug database and there is no real "reason" listed as to why this particular issue occurs (and it does affect a couple of our other non-video applications—InDesign and Illustrator, as well).
    A common troubleshooting step for when things go wrong with an application is to remove any recently installed applications or plug-ins. As I understand it, certain applications share resources which can affect each other. Since Chrome extensions are created using Javascript, I assume that is the area of conflict.
    Thanks,
    Kevin

  • InDesign CS2 (4.0.5) freezes on dragging from one window to another

    Using CS2 on Mac 10.4.11, 2.5GB, if I stay within InDesign, works fine, no issues. If I drag from Illustrator or another CS2 app, computer locks up, curser still moves, but apps, keyboard unresponsive. Have to reboot to clear. Have run disk check util, etc.. Have followed all Adobe troubleshooting procedures,removed pref's, cleared all cache's, etc. Have gone as far as removing CS2 (per Adobe guidelines) and reinstalling. No luck, same issues. All other CS2 apps work fine. Not practical to work with only InDesign open, as I work from Illustrator, Photoshop and Indesign as a set. Worked fine until Oct 2007 time frame. Looking back, received an update from Adobe at that time. Looking at syslog errors (also UNIX/Linux sys admin by trade), found issues with what appear to be memory address issues in InDesign and XWindows. Anyone else run into this or have a work around?

    You know you could have posted all this stuff in one thread.
    I answered you in the CS forum.

  • Cannot drag photos from one event to another-

    I cannot drag photos between events following the instructions in Help and I cannot drag photos to any album new or otherwise.
    This version seems to be not all that great…
    Regards,
    Andrew Shlapak

    Andrew
    I've been using Apple products since '74.
    Wow.
    I cannot find the photos from another app; i.e., tried to look for the iPhoto folder and found instead an iPhoto file. When the file is selected, selected iPhoto opens. This file must be the phots -- it's 5 GB!
    There are three ways (at least) to get files from the iPhoto Window.
    1. Drag and Drop: Drag a photo from the iPhoto Window to the desktop, there iPhoto will make a full-sized copy of the pic.
    2. File -> Export: Select the files in the iPhoto Window and go File -> Export. The dialogue will give you various options, including altering the format, naming the files and changing the size. Again, producing a copy.
    3. Show File: Right- (or Control-) Click on a pic and in the resulting dialogue choose 'Show File'. A Finder window will pop open with the file already selected.
    The change was made to the format of the iPhoto library because many users were inadvertently corrupting their library by browsing through it with other software or making changes in it themselves. If you're willing to risk database corruption, you can restore the older functionality simply by right clicking on the iPhoto Library and choosing 'Show Package Contents'. Then simply make an alias to the folders you require and put that alias on the desktop or where ever you want it. Be aware though, that this is a hack and not supported by Apple.
    Finally, you can drag and drop pics from the iPhoto Window to the addressbook - and many other applications.
    When you say:
    I cropped a photo in iPhoto and the original disappeared!
    Can you describe exactly where this happened?
    You create new topics in the Forum - Installing and Using iPhoto 08, in this case. The link is up there. You can't create a new topic in a thread.
    Regards
    TD

  • How to use the 3 button mouse to swipe from one window to another window

    when I use the trackpad in the macbook pro 2010 with 3 fingers, I can easily swipe left or right to another window that I setup one for my home and one for my office work, but I also use a external mouse, keyboard and big display to use the MBP with the lib close, this case how can do this with mouse itself under osx mavericks 10.9.1
    thanks.

    Hi,
            Any data sharing accross views can be achiveved by defining CONTEXT data in COMPONENT CONTROLLER and mapping it to the CONTEXT of all the views. Follow the below steps.
    1. Define a CONTEXT NODE in component controller
    2. Define same CONTEXT NODE in all the views where this has to be accessed & changed.
    3. Go to CONTEXT NODE of each view, right click on the node and choose DEFINE MAPPING.
    This is how you map CONTEXT NODE and same can be accessed/changed from any VIEW or even from COMPONENT CONTROLLER. Any change happens at one VIEW will be automatically available in others.
    Check the below link for more info regarding same.
    [http://help.sap.com/saphelp_nw04s/helpdata/EN/48/444941db42f423e10000000a155106/content.htm]
    Regards,
    Manne.

  • Transfer data from a window to another

    Hello All,
    This my first programme,
    In my first window
    I write the name of the company in "INSociete" in the class DataPanelCli when I use the button "findcli" in the class ButtonPanelCli, I'm looking in the tables Cli_fact and Adresse and the request give me the name street of my company BUT
    In my second window
    StruCliBox, I' d like to write again the same informations by transfering the data from the first window to the second... I don't know how I can do it
    Please could you help me here is the code :
    import java.util.*;
    import java.sql.*;
    import java.io.*;
    import java.awt.event.*;
    import java.awt.*;
    import java.awt.Container;
    import javax.swing.*;
    import javax.swing.table.*;
    import java.text.*;
    import java.lang.String;
    public class AppClient extends JFrame {
         private DataPanelCli screenvarcli;
         private JTextArea msgout;
         private Connection dbconn;
         public AppClient() {
              //titre fen�tre
              super( " APPLICATION CLIENT");
              // set up GUI environment
              Container p = getContentPane();
              screenvarcli = new DataPanelCli();
              msgout = new JTextArea( 8, 40);
              p.setLayout( new FlowLayout() );
              p.add( new JScrollPane(screenvarcli) );
              p.add( new JScrollPane(msgout) );
              // DB Connection
              try {
                   String url = "jdbc:odbc:Access";
                   Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                   // Cr�ation d'une liaison
                   dbconn = DriverManager.getConnection(url, "dba", "sql" );
                   msgout.append("Connection successful !\n");
              catch (ClassNotFoundException cnfex) {
                   cnfex.printStackTrace();
                   msgout.append("Connection unsuccessful\n" +
                        cnfex.toString());
              catch (SQLException sqlex) {
                   sqlex.printStackTrace();
                   msgout.append("Connection unsuccessful\n" +
                        sqlex.toString());
              catch (Exception excp) {
                   excp.printStackTrace();
                   msgout.append(excp.toString());
              // Complete GUI
              ButtonPanelCli controls = new
              ButtonPanelCli(dbconn, screenvarcli, msgout);
              p.add(controls);
    //          RadioButtons rb = new RadioButtons(dbconn, screenvarcli, msgout);
    //          p.add(rb);
              setSize(500,475);
              show();
         public static void main( String args[]) {
              AppClient cli = new AppClient();
              cli.addWindowListener(
                   new WindowAdapter() {
                        public void windowClosing(WindowEvent e) {
                             System.exit(0);
    class DataPanelCli extends JPanel {
         JTextField ICCliFact, INSociete,
              ILAdresseA, ICPostal, ILLocalite, ICPays;
         JLabel LCCliFact, LNSociete,
              LLAdresseA, LCPostal, LLLocalite, LCPays;
         public DataPanelCli() {
              //Label Panel
              JPanel labelPanelCli = new JPanel();
              labelPanelCli.setLayout( new GridLayout(6, 1));
              LNSociete = new JLabel( "Nom ", 0);
              labelPanelCli.add(LNSociete);
              LCCliFact = new JLabel( "Num�ro Client", 0);
              labelPanelCli.add(LCCliFact);
              LLAdresseA = new JLabel( "Adresse ", 0);
              labelPanelCli.add(LLAdresseA);
              LCPostal = new JLabel( "Code Postal ", 0);
              labelPanelCli.add(LCPostal);
              LLLocalite = new JLabel( "Localite ", 0);
              labelPanelCli.add(LLLocalite);
              LCPays = new JLabel( "Pays ", 0);
              labelPanelCli.add(LCPays);
              //TextField Panel
              JPanel screenvarcliPanel = new JPanel();
              screenvarcliPanel.setLayout( new GridLayout(6, 1));
              INSociete = new JTextField("Enter Name - click RECHERCHER", 20);
              screenvarcliPanel.add(INSociete);
              ICCliFact = new JTextField( 20);
              screenvarcliPanel.add(ICCliFact);
              ILAdresseA = new JTextField( 20);
              screenvarcliPanel.add(ILAdresseA);
              ICPostal = new JTextField( 20);
              screenvarcliPanel.add(ICPostal);
              ILLocalite = new JTextField( 20);
              screenvarcliPanel.add(ILLocalite);
              ICPays = new JTextField( 20);
              screenvarcliPanel.add(ICPays);
              // Accessibility Section - relate labels and text fields
              // for use by assistive technologies
              LNSociete.setLabelFor( INSociete);
              LLAdresseA.setLabelFor( ILAdresseA);
              LCPostal.setLabelFor( ICPostal);
              LLLocalite.setLabelFor( ILLocalite);
              LCPays.setLabelFor( ICPays);
              setLayout( new GridLayout( 1, 2));
              add( labelPanelCli);
              add( screenvarcliPanel);
    class ButtonPanelCli extends JPanel {
         public ButtonPanelCli( Connection dbc, DataPanelCli scv, JTextArea msg ) {
              setLayout( new GridLayout( 2 ,0 ));
              JButton findcli = new JButton( "Rechercher" );
              findcli.addActionListener( new FindRecCli( dbc, scv, msg ));
              add( findcli );
              JButton addcli = new JButton( "Ajouter" );
              addcli.addActionListener( new AddRecCli( dbc, scv, msg ));
              add( addcli );
              JButton clearcli = new JButton( "Clear" );
              clearcli.addActionListener( new ClearScreenCli( scv ));
              add( clearcli );
              JButton printcli = new JButton( "Impression" );
    //          printcli.addActionListener( new PrintRecCli( dbc, scv, msg ));
              add( printcli );
              JButton structcli = new JButton( "STRUCTURE" );
              structcli.addActionListener( new StructRecCli( dbc, scv, msg ));
              add( structcli );
              JButton commerccli = new JButton( "COMMERCIAL" );
    //          commerccli.addActionListener( new CommercRecCli( dbc, scv, msg ));
              add( commerccli );
              JButton financli = new JButton( "FINANCIER" );
    //          financli.addActionListener( new FinanRecCli( dbc, scv, msg ));
              add( financli );
    class ClearScreenCli implements ActionListener {
         private DataPanelCli screenvarcli;
         public ClearScreenCli( DataPanelCli scv ) {
              screenvarcli = scv;
         public void actionPerformed( ActionEvent e ) {
              screenvarcli.ICCliFact.setText( "" );
              screenvarcli.INSociete.setText( "" );
              screenvarcli.ILAdresseA.setText( "" );
              screenvarcli.ICPostal.setText( "" );
              screenvarcli.ILLocalite.setText( "" );
              screenvarcli.ICPays.setText( "" );
    // Recherche Ajout Maj record
    // FIND NUMERO CLIENT
    class FindRecCli implements ActionListener {
         private DataPanelCli screenvarcli;
         private JTextArea msgout;
         private Connection dbconn;
         public FindRecCli( Connection dbc, DataPanelCli scv, JTextArea msg ) {
              dbconn = dbc;
              screenvarcli = scv;
              msgout = msg;
         public void actionPerformed( ActionEvent e ) {
              try {
                   String rechnom = new String();
                   rechnom = screenvarcli.INSociete.getText();
              if ( !rechnom.equals( "" )) {
                   Statement statement = dbconn.createStatement();
                   String query = "SELECT * " +
                        "FROM Cli_fact, Adresse " +
                        "WHERE Cli_fact.n_societe_c = '" + rechnom + "' " +
                        "AND c_adresse = c_cli_fact " +
                        "AND c_type_adr = '02'";
    //                    "WHERE n_societe_c = '" +
    //                    rechnom + "' ";
                   msgout.append( "\nSending query " +
                   dbconn.nativeSQL( query ) + "\n" );
                   ResultSet rs = statement.executeQuery( query );
                   display( rs );
                   statement.close();
              else
                   screenvarcli.INSociete.setText( "Entrer le NOM de Soci�t� ");
              catch ( SQLException sqlex ) {
                   msgout.append( sqlex.toString() + sqlex.getMessage() );
         // Display results of query
         public void display( ResultSet rs ) {
              try {
                   rs.next();
                   int recordNumber = rs.getInt( 1);
                   if ( recordNumber != 0 ) {
                        screenvarcli.ICCliFact.setText( String.valueOf(recordNumber) );
                        screenvarcli.INSociete.setText( rs.getString(2));
                        screenvarcli.ILAdresseA.setText( rs.getString(35));
                        screenvarcli.ILLocalite.setText( rs.getString(32));
                        screenvarcli.ICPostal.setText( rs.getString(31));
                        screenvarcli.ICPays.setText( rs.getString(33));
                        msgout.append( "\n Enregistrements trouv�s!!!!!!!\n" );
                   else
                        msgout.append( "\nPas d'enregistrements trouv�s\n" );
              catch ( SQLException sqlex ) {
                   msgout.append( "\n*** Nom de Soci�t� pas dans la data Base ***\n" );
    // ADD CLIENT
    class AddRecCli implements ActionListener {
         private DataPanelCli screenvarcli;
         private JTextArea msgout;
         private Connection dbconn;
         public AddRecCli( Connection dbc, DataPanelCli scv, JTextArea msg ) {
              dbconn = dbc;
              screenvarcli = scv;
              msgout = msg;
         public void actionPerformed( ActionEvent e ) {
              try {
              Statement statement = dbconn.createStatement();
              String rechnom = new String();
              rechnom = screenvarcli.INSociete.getText();
              if ( !rechnom.equals( "" )) {
                   String query = "INSERT INTO cli_fact (" +
                   "n_societe_c) VALUES ('" +
                   screenvarcli.INSociete.getText() + "')";
                   msgout.append( "\nSending query " +
                   dbconn.nativeSQL( query ) + "\n" );
                   int result = statement.executeUpdate( query );
                   if ( result == 1 ) {
                   // read just inserted rec to obtain c_cli_fact field
                   // needed to place STRUCTURE COMMERCIAL FINANCIER
                   msgout.append( "\nInsertion r�ussie\n" );
                   try {
                   query = "SELECT * FROM cli_fact WHERE n_societe_c='" +
                        rechnom + "'";
                   ResultSet rs = statement.executeQuery( query );
                   rs.next();
                   screenvarcli.ICCliFact.setText(String.valueOf(rs.getInt(1)));
                   catch ( SQLException sqlex ) {
                   msgout.append( sqlex.toString() );
              else {
                   msgout.append( "\nInsertion NON r�ussie\n" );
                   screenvarcli.INSociete.setText( "" );
              else
              msgout.append( "\nEntrer au moins le non de soci�t� puis press NOUVEAU\n" );
              statement.close();
              catch ( SQLException sqlex ) {
              msgout.append( sqlex.toString() );
              screenvarcli.INSociete.setText("Nom de soci�t� existe d�j� -- reenter");
    // STRUCTURE
    class StructRecCli extends JFrame implements ActionListener {
         private DataPanelCli screenvarcli;
         private JTextArea msgout;
         private Connection dbconn;
         private boolean firsttime = true;
         public StructRecCli( Connection dbc, DataPanelCli scv, JTextArea msg ) {
              super( " APPLICATION CLIENT STUCTURE " );
              dbconn = dbc;
              screenvarcli = scv;
              msgout = msg;
         public void actionPerformed( ActionEvent e) {
              if (firsttime) {
                   Container cnt = getContentPane();
                   cnt.setLayout( new FlowLayout() );
                   StruCliBox ob = new StruCliBox();
                   cnt.add( ob );
         screenvarcli.INSociete.getText();
                   ButtonPanelStr controls = new
                   ButtonPanelStr(dbconn, screenvarcli, msgout);
                   cnt.add(controls);
                   setSize(500, 475);
                   firsttime = false;
              show();
    class StruCliBox extends JPanel {
         JTextField ICCliFact, INSociete,
              ILAdresseA, ICPostal, ILLocalite, ICPays;
         JLabel LCCliFact, LNSociete,
              LLAdresseA, LCPostal, LLLocalite, LCPays;
         public StruCliBox() {
              //Label Panel
              JPanel s = new JPanel();
              s.setLayout( new GridLayout(6, 1));
              LNSociete = new JLabel( "Nom ", 0);
              s.add(LNSociete);
              LCCliFact = new JLabel( "Num�ro Client", 0);
              s.add(LCCliFact);
              LLAdresseA = new JLabel( "Adresse ", 0);
              s.add(LLAdresseA);
              LCPostal = new JLabel( "Code Postal ", 0);
              s.add(LCPostal);
              LLLocalite = new JLabel( "Localite ", 0);
              s.add(LLLocalite);
              LCPays = new JLabel( "Pays ", 0);
              s.add(LCPays);
              //TextField Panel
              JPanel screenvarcliPanel = new JPanel();
              screenvarcliPanel.setLayout( new GridLayout(6, 1));
              INSociete = new JTextField( 20);
              screenvarcliPanel.add(INSociete);
    //          String rechnom = new String();
    //          screenvarcli.INSociete.getText();
              ICCliFact = new JTextField( 20);
              screenvarcliPanel.add(ICCliFact);
              ILAdresseA = new JTextField( 20);
              screenvarcliPanel.add(ILAdresseA);
              ICPostal = new JTextField( 20);
              screenvarcliPanel.add(ICPostal);
              ILLocalite = new JTextField( 20);
              screenvarcliPanel.add(ILLocalite);
              ICPays = new JTextField( 20);
              screenvarcliPanel.add(ICPays);
              // Accessibility Section - relate labels and text fields
              // for use by assistive technologies
    //          LNSociete.setLabelFor( INSociete);
              LLAdresseA.setLabelFor( ILAdresseA);
              LCPostal.setLabelFor( ICPostal);
              LLLocalite.setLabelFor( ILLocalite);
              LCPays.setLabelFor( ICPays);
              setLayout( new GridLayout( 1, 2));
              add( s);
              add( screenvarcliPanel);
    //          setLayout(new FlowLayout() );
    //          add(s);     
    class ButtonPanelStr extends JPanel {
         public ButtonPanelStr( Connection dbc, DataPanelCli scv, JTextArea msg ) {
              setLayout( new GridLayout( 1 ,0 ));
              JButton addstr = new JButton("Ajouter");
    //          addstr.addActionListener( new AddStructure( dbconn, screenvarcli, msgout, ob));
              add( addstr );
              JButton majstr = new JButton("Mise � jour");
    //          majstr.addActionListener( new MajStructure( dbconn, screenvarcli, msgout, ob));
              add( majstr );
              JButton clestr = new JButton("Clear");
    //          clestr.addActionListener( new CleStructure( dbconn, screenvarcli, msgout, ob));
              add( clestr );
              JButton prnstr = new JButton("Impression");
    //          prnstr.addActionListener( new PrnStructure( dbconn, screenvarcli, msgout, ob));
              add( prnstr );

    That means its simply sharing of data between the 2 swing applications.. and if the main application does some updating of the data, the 2nd window will oso be updated?
    Is this what you are trying to say?

Maybe you are looking for