Best way to 'bend' an object

I have a custom rectangular object, I want to bend along a path of arcing.  My goal is to take 3 of my custom rectangular objects and bend each other along an arc that roughly 1/3 of a circle (~ 120 degrees) and position them so that they form a phase 3, the pie chart of cycle.

Any suggestions?

Thank you!

SD,

... end of the arrow is distorted in the process.  So, I'm looking for a way around this problem...

You can get past by and get the straigt arrowheads by:

(1) create three concentric circles: two to form trees of the arrow, the third at least the size to hold the extreme parts of the arrowheads.

(2) create the shape of the triangular end, like a triangle, to duplicate and train the arrowheads;

((3) place 2) while its base extends equal amounts before the circles of the tree at the same horizontal level as the Center;

((4) select 3) and the circle outside and copies rotation 120 degrees twice in order to have the three arrows pointing one way;

(5) remove the outer circle;

(6) group, select all and reflect a copy horizontally in order to also have the arrows opposite;

(7) turn the copy to get the gap want between the arrow points;

(8) select all and Pathfinder > divide;

(9) remove the parts between the arrow points;

(10) merge forms forming each double arrows / color / be it;

(11) rotate the batch to the final direction.

(9)-10) you can ungroup (enough) or use the direct Selection tool.

Tags: Illustrator

Similar Questions

  • Best way to MouseDrag several objects around a scene.

    So I'm having a little trouble tried to drag the 3 s Box in a scene.

    Originally, I had it in place where everyone was transferred to an x, is translated Z, then assign a DRC. Then I thought that instead of the click of the mouse on the box itself, I'd be at the root. From there, I would look through all the root.getChildren (then) that see if it contained the x, position y.


    So to know who my children root I clicked on I did .setOnDragged of root.getChildren.get (current) to figure out that it was dragged.

    The code itself has worked with the exception of find which box I was.

    The question that I find, is that I only PositionX, getSceneX and getScreenX. SceneX and X produce the same value and ScreenX is useless. I then tried to do event.getX () - root.getLayoutX () contains the function works, but it did not work and would require me to change many things. getLayoutX() a = 0, since I did not indicate the location of the root, only the locations of the box.

    From there on, I was wondering if there was a better way. Then I thought maybe to loop through each element in my root or in an arrayList (which is what I used, but realized the root.getchildren should work like the original) but the problem is he keeps only save one last list, then just shut up and that's it.

    So I want to know, what would be the best way to understand what object am I?

    Initially, I use contains (Swing) but Swing is different, and as we can save mouseEvents to each node, should we not we know now exactly what we we are, while making a loop in each of them? I think it's easier than having to check each contained unique mouse position, especially if I have 10000 points to check?

    Edited by: KonradZuse March 18, 2013 20:05

    KonradZuse wrote:
    Thanks for the help!

    I can now draw a box, so there is no question about it, just that I have several boxes and I need to be able to drag each without knowing the total.

    I have 1000 boxes, or 5, I can't save a mouse to each event

    Why not?

    so I thought I would go, and then I realized after I posted this I could use the function 'Mouse_ENTERED' or 'Mouse_PRESSED' field and then move each individual, but it would still be a loop in each of them and then find who's who.

    I do not see that your example below has a certain meaning.

    I have never seen sphere.addEventHandler (MouseEvent.ANY, new DragShapeHandler()); so thank you for this tip.

    Buy it, you can also do

    DragShapeHandler handler = new DragShapeHandler();
    box.setOnMousePressed(handler);
    box.setOnMouseDragged(handler);
    

    If you prefer the convenience methods. (It is important that convey you the same reference for both).

    >

    It seems that the "DragShapeHandler" will basically get the source node and then move it? If we really do not need to know which.

    OK-ish. It uses event.getSource () to determine the source of the event (i.e., the node on which the event occurred). But you might as well set a field in the DragShapeHandler class with the node that had to be moved:

      class DragShapeHandler implements EventHandler {
    
        private double sceneAnchorX;
        private double sceneAnchorY;
    
        private final Node nodeToMove ;
    
        DragShapeHandler(Node node) {
           this.nodeToMove = node ;
        } 
    
        @Override
        public void handle(MouseEvent event) {
          if (event.getEventType() == MouseEvent.MOUSE_PRESSED) {
            sceneAnchorX = event.getSceneX();
            sceneAnchorY = event.getSceneY();
          } else if (event.getEventType() == MouseEvent.MOUSE_DRAGGED) {
            double x = event.getSceneX();
            double y = event.getSceneY();
            nodeToMove.setTranslateX(node.getTranslateX() + x - sceneAnchorX);
            nodeToMove.setTranslateY(node.getTranslateY() + y - sceneAnchorY);
            sceneAnchorX = x;
            sceneAnchorY = y;
          }
        }
      }
    

    and then:

    ...
    box.addEventHandler(MouseEvent.ANY, new DragShapeHandler(box));
    ...
    sphere.addEventHandler(MouseEvent.ANY, new DragShapeHandler(sphere));
    

    I slightly prefer the getSource(), I think that, like the box.addEventHandler (..., DragShapeHandler (box)) new; is a little unnatural. Without doubt, however, this version is more robust (it's more type-safe because you are forced to specify a node to drag, while the source of the event could theoretically be any object).

    >

    That's a lot of sense that you're making a new node and just dragging it as such. so I can creater add a picture of the area between them and I just needed to understand the point of click, to get the box then he would know to do hmm...

    Should really "to display the box" as stated above. Just register a Manager with any node you want to be able to drag and the Manager he will drag.

  • What is the best way to show 1000 objects moving in a field?

    Hello. I'm trying to JavaFX 2.0 and higher. I want to create 1000 objects (because now they can be rectangles) and move them randomly (for now). What is the best way to do this? Do I have to create an initial keyframe for each object? I was watching the demo of BrickBreaker. Is all that I need? I'm looking for a simple example. For example: ColorfulCirclesSample. Basically, what I want to do is create 1000 rectangles with random attributes including a vector (direction and speed) and show them using JavaFX 2.x.

    Thanks in advance.

    ServandoC

    Not that this is the best way, but it's an example, you can try:

    import java.util.Random;
    import javafx.animation.*;
    import javafx.application.Application;
    import javafx.event.*;
    import javafx.scene.*;
    import javafx.scene.image.*;
    import javafx.scene.input.KeyEvent;
    import javafx.scene.paint.Color;
    import javafx.scene.transform.Rotate;
    import javafx.stage.Screen;
    import javafx.stage.Stage;
    import javafx.util.Duration;
    
    // animates a 1000 objects (klingons) moving around the scene at random directions and velocity.
    public class ObjectsInMotion extends Application {
      private static Random random = new Random(42);
      private static final int    N_OBJECTS   = 1000;
      private static final int    OBJECT_SIZE = 20;
      private static final Image  KLINGON = new Image("http://icons.mysitemyway.com/wp-content/gallery/green-jelly-icons-transport-travel/038998-green-jelly-icon-transport-travel-star-trek-sc43.png", OBJECT_SIZE, OBJECT_SIZE, true, true);
      public static void main(String[] args) { launch(args); }
      @Override public void start(final Stage stage) throws Exception {
        // initialize the stage to fill the screen with klingons.
        stage.setTitle("Starboard bow");
        stage.setFullScreen(true);
        final double screenWidth    = Screen.getPrimary().getBounds().getWidth();
        final double screenHeight   = Screen.getPrimary().getBounds().getHeight();
        final Group objects = new Group(constructObjects(N_OBJECTS, OBJECT_SIZE, (int) screenWidth, (int) screenHeight));
        stage.setScene(new Scene(objects, screenWidth, screenHeight, Color.MIDNIGHTBLUE.darker().darker().darker()));
        stage.show();
    
        // press any key to exit the program.
        stage.getScene().setOnKeyTyped(new EventHandler() {
          @Override public void handle(KeyEvent event) {
            stage.close();
          }
        });
    
        // move the klingons around according to their motion vectors.
        final Timeline timeline = new Timeline(
          new KeyFrame(
            new Duration(1000/30), // update the klingon's motion 30 times a second.
            new EventHandler() {
              @Override public void handle(ActionEvent event) {
                for (Node n: objects.getChildren()) {
                  // apply the motion vector for this object to determine the object's new location.
                  MotionVector vector = (MotionVector) n.getUserData();
                  double tx = n.getTranslateX() + vector.velocity * Math.cos(Math.toRadians(vector.angle));
                  double ty = n.getTranslateY() + vector.velocity * Math.sin(Math.toRadians(vector.angle));
    
                  // wrap the objects around when they fall off the starfield.
                  if (tx + n.getLayoutX() > screenWidth)  tx -= screenWidth;
                  if (tx + n.getLayoutX() < 0)            tx += screenWidth;
                  if (ty + n.getLayoutY() > screenHeight) ty -= screenHeight;
                  if (ty + n.getLayoutY() < 0)            ty += screenHeight;
    
                  // update the object co-ordinates.
                  n.setTranslateX(tx);
                  n.setTranslateY(ty);
                }
              }
            }
          )
        );
        timeline.setRate(5);
        timeline.getCurrentRate();
        timeline.setCycleCount(Animation.INDEFINITE);
        timeline.play();
      }
    
      // construct an array of n objects of rectangular size spaced randomly within a field of width and height.
      private Node[] constructObjects(final int n, final int size, final int width, final int height) {
        Node[] nodes = new Node[n];
        for (int i = 0; i < n; i++) {
          ImageView node = new ImageView(KLINGON);
          node.setLayoutX(random.nextInt(width  - size / 2));
          node.setLayoutY(random.nextInt(height - size / 2));
          MotionVector vector = new MotionVector();
          node.setUserData(vector);
          // rotate the klingon to align with the motion vector accounting for the klingon image initially pointing south-west.
          node.getTransforms().add(new Rotate(vector.angle + 225, node.getFitWidth() / 2, node.getFitHeight() / 2));
          nodes[i] = node;
        }
    
        return nodes;
      }
    
      // polar co-ordinates of a motion vector.
      class MotionVector {
        final double velocity = random.nextDouble();
        final double angle    = random.nextDouble() * 360;
      }
    }
    
  • Please advise me on the best way to bend/warp/envelope this text

    Hi all

    Please can you advise me on the best way to distort/warp/envelope this text. I need to fit exactly (heightwise) in the white box below. I thought it would be a very simple thing to do in Illy, but I was wrong! I tried using the string and mesh methods, but am just not having much luck! I even tried to do it manually, point by point (after having developed the appearance), but it looks like a MESS:)

    As you can see, the form of the white arc is not consistent in height/thickness, as it tapers off the coast toward the ends. It is thicker/more higher in the Middle, so I need to get the letters to increase in height he touch the top and bottom of the box white and then tapered down in height.

    Please can you help me?

    Thank you in advance, please

    Christine

    racingartwork.jpg

    1 create a text, select the object.

    2 object > envelope distort > make with mesh
    Lines: 1
    Columns: 2
    3. align the center of the text with the center of the wheel.
    4. use the direct Selection tool, Rotate tool to adjust the points, direct Selection tool to adjust the handles.

  • Best way to retrieve the object named?  best way to get a named object?

    Inside of my loop, where I get my XML objects I added a code to draw and add the mask:

    var myMask:MovieClip = new MovieClip();

    / / width height x color settings play etc etc.

    myMask.name = '-NAME' + i; set the NAME

    myContainer.addChild (myMask);

    myContainer.mask = myMask;

    the mask looks good on the scene.

    now since I the name I want to use for another purpose such as move

    now I want to call real myMask

    I get my number 'num' of the other function, which works very well

    function applyMask(num:int):void {}

    need to call myMask("NAME-"+num)

    }

    I tried myContainer.getChildByName

    have you tried: var hide: myContainer = getChildByName ("NAME-" + String (num)) as myContainer;

    I traced to the options I can think of me, but all the results found no property.

    hmm I know that I do not use the right method of appeal? So what is the best way to call my named object?

    I think that the use...

    var theMask:MovieClip = myContainer.getChildByName ("NAME-" + String (num));

    would work, where you can use theMask to target.  Another approach to this would be to store each mask in a table so that you can just use the table to target the...

    var maskArray:Array = new Array();

    var myMask:MovieClip = new MovieClip();

    maskArray [i] = myMask;

    myContainer.addChild (myMask);

    myContainer.mask = myMask;

    Note: When first name you the object you should convert I have a string as well... myMask.name = "- NAME" + String (i); ".  at least I have is already a string

  • best way to send server objects and recreate step?

    I want to send an object and its properties (that have been manipulated) on my server. I then intend to recreate this object and automatically create a screenshot of the object (I don't want to make on the client side). I intend to use POST and some php for each property that has changed and then load data into an as3 script on the server side. I would like to than this side script server to automatically take the object and create a server image side - is anyway to do all this while asking does not have any input (of what I have learned, flash requires a prompt before saving a file)? I haven't used flex, can be used here?

    Is there a better way to do it? I am open to any suggestions!

    I misunderstood.  Yes, you will need to run your as3 swf that will load data and save an image on the server.

  • Best way to blur an object in a video?

    I have a video clip with a product in what we cannot show.  What is the the more easy/quick way to blend the product using AE logo?  The logo moves in the shot, I have to be able to move the blur with her.

    Thank you.

    Is this correct?

    For the most part, but you will need to add a step:

    7. turn on the switch setting on your solid layer, so it blurs the hidden itme and caterpillars underneath, not the solid itself.

    For info on follow-up, see this section in the help files.

    Mylenium

  • What is the best way to save an array of objects and then load it?

    Hi, what is the best way to save and load an array of objects?

    I hade a code like that, but it does not work:

    var test = new Array();
    test.push(new Foo("a"));
    for (var i = 0; i < test.length; i++) {
        console.log(test[i]);
    }
    // save and load, then show again
    localStorage.setItem("test", test);
    var test2 = localStorage("test");
    for (var i = 0; i < test2.length; i++) {
        console.log(test2[i]);
    }
    

    the problem is, the first newspaper that get the things I want. The second time I get:

    Uncaught TypeError: Property 'localStorage' of object [object Object] is not a function
    

    The work around this problem is to stringify before saving and then analyze before loading.

    http://StackOverflow.com/a/2010948/773263

    Although I said, it is better to use IndexDB.

  • What is the best way to gradually increase the speed of objects?

    I'm creating an animation where I want to simulate the increase in the speed of the particles with the temperature increase. I intend to have just gradually less frames by distance on the screen, but I thought I'd check here to see if there is a less tedious way to do.

    Thank you

    The best way to proceed would probably be coded according to your overall design solution, not a one timeline.  But if you have version already in chronology and you use AS3, you could try to implement a gradual change of the frame rate... those pennies... stage.frameRate += 5;  with each game loop.  It will speed up the rate of that whole movie plays out if it matters how you did things.

  • best way to see the xml objects attribute existence

    "I have the xml node < type mynode ='sometype" >...

    I do: 'item.@type' and I need to check and if the attribute type is not lifting error, but it seems that "item.@type" will never return null, if there is no attribute "type" not specified, it returns a kind of empty xml or something, is there a particular reason, why it is done that way? and especially, what is the best way to check whether the xml node attribute 'type' defined?

    Thanks in advance


    ! point. (hasOwnProperty ("@type")) | «StringUtil.trim (item.@type) == «»

  • What is the best way to backup a hard drive full of pictures and videos on another external hard drive?

    What is the best way to backup a hard drive full of pictures and videos on another external hard drive? I want an exact clone-

    Drag and Drop? Time Machine?

    Thank you. DB

    < object edited by host >

    If you want an exact clone, you will need to use a utility like utility disk, Carbon Copy Cloner or SuperDuper!

  • Not sure about the best way to structure my app.

    Hello

    I'm not sure of the best way to structure my app.

    I have a main menu that links to 3 submenus, each a link to a number of pages. Initially when I clicked on a menu button, that he would open a submenu instantly and then clicking a button, the page open instantly. And return to the previous menus was also very fast.

    But at some point that he started getting really slow. I click on a button in the main menu and he thinks for a while before moving on to the pick-me-up submenu is too slow. I'm not sure why and I lose a lot of time trying different ways to do it.

    So what I want to know, as far as efficiency goes, should I create the main menu and submenus 3 at the start of my application, keep these same objects active and just pass pointers to them around like settings and pop on and off the screen of the battery when required, or should I just create them as new items whenever they are needed?

    Any advice on this would be greatly appreciated.

    If each submenu returns to the main menu, just use the screen for the navigation stack. Don't forward mainMenu for the submenus; to return, just pop the submenu and the main menu will be back at the top. At the time of mainMenu wants to open a submenu, just push without fun first.

    Have you thought to check for memory leaks? There is a discussion of 3 parts of this by Kamen:

    How to find that leak memory (part i)

    How to find this memory leak (Part Two)

    How to find this part of memory ((troisieme leak)

  • What is the best way for foglight consume a webservice

    I hope that this is has not been replied that a bazillion times and if it is please send me the link I'm open to that.  What is the best way for foglight consume a Web service and respond with an alarm if the response from the Web service is not what is expexted.

    for example, calls Foglight webservice to acme.com/areuup and he responds with correct status in json format process.  If it does agree return, then foglight must send alerts to correct individuals.

    Thank you

    Kaleb

    in the end, we have used a perl script to capture the webservice and treat it and tables configuration.  Here is what has been written and created an agent custom.

    I apologize to all those who find the bulky comments, but it's my edition of journal of the script. I removed the comments once the script has been published and used.

    ===

    #! / usr/bin/perl

    #############################################################

    # Author: Kaleb J. Albee

    # Depandancies: SOA webservice

    # Engineers: Marc and Manu

    # Date: 28/02/2013 perl: (v5.14.2) built for x86_64-linux-gnu-thread-multi

    # Operating system: Linux 3.2.0 - 29-generic eam-ops-test #46 - Ubuntu SMP Wed Jul 27 17:03:23 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

    #############################################################

    use strict;

    use warnings;

    use Try::Tiny;

    use SOAP::Lite;

    use SOAP::WSDL;

    Use Time::Local;

    My = @soaenvs ('BSE - dev', 'BSE test', 'BSE-scene', 'BSE');

    # parameters: $_ [0] receives a call of SOAP client object.

    #

    void toStr {return $_ [0] == 1?} 'up': 'down' ;}

    void getBusResults {}

    # $_ [0] will be the $client spent

    # create a different buses SOAP connection.

    my $result = $_ [0]-> (getMessagingEngineHealth)

    # arg0 is used to set the setting for what is expected on the soa web service.

    SOAP::Data-> name (arg0 => $_ [1]));

    # $_ [1] will be the bus happened in

    return (Lk ($result) "started" eq? 1: 0);

    #return $result;

    }

    # Start sampling.

    My $curTimeStamp = "";

    my $count = 0;

    Print "LdsEsbBusHealth5\nSTART_SAMPLE_PERIOD\n TABLE";

    foreach my {$soae (@soaenvs)

    my $client is SOAP::Lite-> service ("put the url of the webservice here.");.

    $count ++;

    # create an object to inspect objects. My $insp = Data new::Inspect->; Download the time stamp for this.

    my ($sec, $min, $hr, $day, $mon, $year) = localtime;

    # format the year correctly for useage.

    My $curyear = 1900 + $year;

    # the hand to the fglam agent fields at the tables.

    My $soacei = getBusResults ($client, "messaging.000 - CEI.esb.BUS");

    My $soaapp = getBusResults ($client, "messaging.000 - SCA.APPLICATION.esb.Bus");

    My $soasys = getBusResults ($client, "messaging.000 - SCA.SYSTEM.esb.Bus");

    $curTimeStamp = ' $curyear$ MON$ day$ hr$ min$ s ";

    Print "SoaEnv.String.id=$soae\n";

    Print "CeiBusNum = $soacei\n";

    Print "AppBusNum = $soaapp\n";

    Print "SysBusNum = $soasys\n";

    Print "CeiBusStr.StringObservation.obs =". toStr ($soacei). "\n";

    Print "AppBusStr.StringObservation.obs =". toStr ($soaapp). "\n";

    Print "SysBusStr.StringObservation.obs =". toStr ($soasys). "\n";

    Print "Daterun.StringObservation.obs=$curTimeStamp\n";

    If ($count<=>

    Print ("NEXT_SAMPLE\n");

    }

    } {$soae foreach (@soaenvs) #.

    Print "END_TABLE\n";

    Exit 0;

    ===

    I hope this helps someone out there!

    Bravo!

  • What is the "best way" to see all the 'hooks' that affect the database?

    Hi all

    I'm responsible for exporting all schemas using the data pump and then re - import the scehmas, yet once so we can reorganize the real table spaces.

    I know that this can be done using grid 12 c, but I'm not sure I want to use this feature for this task.

    Anyone who has used the feature of grids to 'keep the tables' and then re - organize them while they are still online?

    I'll have to finally make it to the PROD database and I am concerned about the "break" out of jobs, items, ect, ect.

    What is the "best way" to do a proper verification of all database objects and or work, that the export/import might pipe upward?

    As I did for example, a simple count on all objects and of course excludes "SYS and SYSTEM" and the County was in close 60 000 objects.

    How do I know all 'hooks' that are inside the database? What is the way that do you?

    Thank you

    Lady Allora.

    Hi, Justin.

    I think that's what I'm going the way of...

    Select os_username, username, OWNER, dba_audit_trail SQL_TEXT

    where rownum<>

    where username <> 'SYSTEM '.

    and also have different variations all asking questions them the same point of view...

    Modes of verification do you find useful?

    Also I'm using something like this as well.

    Select "check standard", sessionid,

    proxy_sessionid statementid, entryid, extended_timestamp, global_uid,

    username, client_id, null, os_username, userhost, os_process, terminal,

    instance_number, owner, obj_name, null, new_owner,

    new_name, action, action_name, audit_option, transactionid, returncode,

    SNA, comment_text, sql_bind, sql_text,

    obj_privilege, sys_privilege, admin_option, dealer, priv_used,.

    ses_actions, logoff_time, logoff_lread, logoff_pread, logoff_lwrite,

    logoff_dlock, session_cpu

    Of

    dba_audit_trail

    where rownum<>

    order extended_timestamp;

    Thank you

    Lady Allora.

  • The best way to manage two GUI

    I have two classes using java swings. The first Panel is where all the calculations will be made and the result will appear in a JList (in the 1st Panel). After that, the next button will show a 2nd Panel where the JList of the 1st group results are transferred. I need a back button in the 2nd Panel to return to the Panel 1. After you click the back button, I need the previous results on the 1st Panel to always be there for extra change (add / change / delete data). If I changed something and click the next button again, I want the 2nd Panel show a set results to date from the 1st Panel.

    What is the best way to do it? I spent two days trying to apply this using the presentation of the card, but it does not work as I want. All the examples I found use only one category. Even if I break down for separate classes, I face problem where when I click the back button, all the data in the 1st Panel disappeared. I'm out of my mind right now. It would be great if anyone can share some ideas in this. Any suggestions are welcome.

    Yes. I already tried several times to break it down into categories before posting here again. I am new to Java, that's why I found quite difficult and decided to post my problem here after he tried for two days. In any case, I thought about it already. I share the codes so that anyone who has problems like me can be useful if not much.

    Presentation of the main card:

    import java.awt.CardLayout;
    
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.SwingUtilities;
    
    public class CardCard {
      private static final String FIRST_PANEL = "firstPanel";
      public static JPanel mainPanel;
      private JFrame frame;
      public static CardPanel_1 cp1 = null;
      public static final CardLayout cardLayout = new CardLayout();
    
      public CardCard (){
      frame = new JFrame("Test");
      frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
      frame.setLocationByPlatform(true);
      mainPanel = new JPanel(cardLayout);
      cp1 = new CardPanel_1();
      mainPanel.add(cp1, FIRST_PANEL);
      frame.getContentPane().add(mainPanel);
      frame.pack();
      frame.setVisible(true);
      }
    
      public static void main(String... args) {
      SwingUtilities.invokeLater(new Runnable()
      {
      public void run()
      {
      new CardCard();
      }
      });
      }
    
    }
    

    First card:

    import java.awt.FlowLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.util.ArrayList;
    import java.util.List;
    import java.util.Observable;
    import java.util.Random;
    
    import javax.swing.JButton;
    import javax.swing.JPanel;
    import javax.swing.JTextField;
    
    public class CardPanel_1 extends JPanel {
      public static JTextField textField, textField3;
      private static final String SECOND_PANEL = "secondPanel";
      private CardPanel_2 observer;
      private JButton btnNext, btnRandom;
      private String show;
      public CardPanel_2 cp2 = null;
      private List numList;
      private String numResult;
    
      /**
      * Create the panel.
      */
      public CardPanel_1() {
      setLayout(new FlowLayout());
    
      textField = new JTextField();
      textField.setBounds(64, 5, 134, 28);
      add(textField);
      textField.setColumns(10);
    
      textField3 = new JTextField();
      textField3.setBounds(64, 5, 134, 28);
      add(textField3);
      textField3.setColumns(10);
    
      btnRandom = new JButton("Randomise");
      btnRandom.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
      String str = textField.getText();
      int num = Integer.parseInt(str);
      numList = new ArrayList();
      for (int i =0;i
    

    2nd map:

    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.util.Observable;
    import java.util.Observer;
    
    import javax.swing.JButton;
    import javax.swing.JPanel;
    import javax.swing.JTextField;
    
    public class CardPanel_2 extends JPanel implements Observer {
     private static JTextField textField2;
      private JButton btnBack;
     private static final String FIRST_PANEL = "firstPanel";
    
     /**
      * Create the panel.
      */
      public CardPanel_2() {
      System.out.println("PANEL 2");
      textField2 = new JTextField();
      add(textField2);
      textField2.setColumns(10);
      btnBack = new JButton("Back");
      btnBack.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent evt) {
      CardCard.cardLayout.show(CardCard.mainPanel, FIRST_PANEL);
      System.out.println("BACK");
      }
      });
      add(btnBack);
      }
    
      public void update(Observable o, Object arg) {
      System.out.println("Updated: " + CardCard.cp1.textField3.getText());
      textField2.setText(CardCard.cp1.textField3.getText());
      }
    }
    

Maybe you are looking for