Results 1 to 5 of 5
  1. #1
    Shima is offline Member
    Join Date
    Aug 2010
    Posts
    11
    Rep Power
    0

    Question 4 frames work toghether

    Hi all

    How can I write below code?:D
    4 frames with different action work together with thread and synchronize.

    thx;)

  2. #2
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,573
    Blog Entries
    7
    Rep Power
    21

    Default

    Quote Originally Posted by Shima View Post
    Hi all

    How can I write below code?:D
    4 frames with different action work together with thread and synchronize.

    thx;)
    It all depends on *what* those frames have to do; if it were my software those frames do nothing but display results while controller software does all the nitty-gritty stuff behind the scenes.

    kind regards,

    Jos

  3. #3
    Shima is offline Member
    Join Date
    Aug 2010
    Posts
    11
    Rep Power
    0

    Default

    Hi

    Thx Jos
    It doesn’t matter “*what* those frames have to do”.
    It’s matter that they use thread and support synchronize.

    Best wishes
    Shima

  4. #4
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,573
    Blog Entries
    7
    Rep Power
    21

    Default

    Quote Originally Posted by Shima View Post
    It doesn’t matter “*what* those frames have to do”.
    It’s matter that they use thread and support synchronize.
    Swing uses only one thread anyway (the Even Dispatch Thread (EDT)) so that won't be a problem if you use the SwingUtilities class to do work in that thread or the SwingWorker class.

    kind regards,

    Jos

  5. #5
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    Quote Originally Posted by Shima View Post
    Hi
    It doesn’t matter “*what* those frames have to do”.
    It’s matter that they use thread and support synchronize.
    You really aren't giving us much information to go on here. You may wish to read my signature link: "how to ask questions" as it can help you to provide enough information to help make your question answerable..

Similar Threads

  1. navigation b/w frames
    By imrankhan in forum AWT / Swing
    Replies: 3
    Last Post: 03-19-2012, 12:25 PM
  2. GUI - how do I get frames within a frame
    By AJArmstron@aol.com in forum New To Java
    Replies: 1
    Last Post: 04-28-2010, 02:00 AM
  3. jsp frames
    By vasug in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 04-16-2010, 05:00 PM
  4. Help regarding Frames
    By ramesh.8189 in forum AWT / Swing
    Replies: 14
    Last Post: 02-15-2009, 08:12 AM
  5. will java webBrowser work with frames
    By elipford in forum New To Java
    Replies: 2
    Last Post: 06-04-2007, 03:26 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •