How to pass/share components between different JPanels/Container

Dear Friends,
I know here a lot Java Guru, I met a problem below.
How can I pass components between different JPanels??
here, ListPanelMain.java is main,
When I click a tree node in splitPane, I can see all its children on the right splitpane, but I hope they can be seen on another Panel called "ListRightPane.java"
How to do it??
Why cannot pass??
[1]. main Program:
package swing.com.test.test;
import javax.swing.JFrame;
import java.awt.BorderLayout;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JSplitPane;
import javax.swing.JTextArea;
import java.io.Serializable;
import swing.com.test.test.ListPanel;
import java.awt.GridLayout;
public class ListPanelMain implements java.io.Serializable{
     private JFrame frame;
     * Launch the application
     * @param args
     public static void main(String args[]) {
          try {
               ListPanelMain window = new ListPanelMain();
               window.frame.setVisible(true);
          } catch (Exception e) {
               e.printStackTrace();
     * Create the application
     public ListPanelMain() {
          initialize();
     * Initialize the contents of the frame
     private void initialize() {
          frame = new JFrame("FileTreePanelMain");
          frame.setBounds(100, 100, 900, 675);
     //     FieTreePanelComm      ftreecomm                = new      FieTreePanelComm();
          ListPanel                ftree                     = new      ListPanel("C:\\");
//          ListAllFile           ftree                     = new      ListAllFile("C:\\");
     //     FileTreePanelText      fileTreePanelText      = new      FileTreePanelText(ftreecomm);
          frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          final JPanel panel = new JPanel();
          panel.setLayout(new GridLayout(0, 2));
          frame.getContentPane().add(panel, BorderLayout.CENTER);
     //     final JSplitPane splitPane = new JSplitPane();
     //     frame.getContentPane().add(splitPane, BorderLayout.CENTER);
     //     splitPane.setLeftComponent(ftree);
          panel.add(ftree);
          final ListRightPanel listRightPanel = new ListRightPanel(ftree);
          //splitPane.setRightComponent(listRightPanel);
          panel.add(listRightPanel);
     frame.addWindowListener(new WindowAdapter() {
     public void windowClosing(WindowEvent e) {
     System.exit(0);
     frame.pack();
     frame.setVisible(true);
[2]. Program 2:
package swing.com.test.test;
//File System Tree
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.GridLayout;
import java.io.File;
import java.util.Iterator;
import java.util.Vector;
import javax.swing.JFrame;
import javax.swing.JScrollPane;
import javax.swing.JSplitPane;
import javax.swing.JTextArea;
import javax.swing.JTree;
import javax.swing.JPanel;
import javax.swing.event.TreeModelEvent;
import javax.swing.event.TreeModelListener;
import javax.swing.event.TreeSelectionEvent;
import javax.swing.event.TreeSelectionListener;
import javax.swing.tree.TreeModel;
import javax.swing.tree.TreePath;
import java.io.Serializable;
public class ListPanel extends JPanel implements Serializable{
protected JTree fileTree;
private FileSystemModel fileSystemModel;
private JTextArea ltextArea = new JTextArea();
protected JTextArea fileDetailsTextArea = new JTextArea();
private String str = "";
     public String getlTextArea() {
               //textArea.getText();
               return str;
     public String setlTextArea(String ta) {
               ltextArea.setText(ta);
               str = ta;
               return str;
public ListPanel(String directory) {
//super("JTree FileSystem Viewer");
               setLayout(new BorderLayout());
               final JPanel panel = new JPanel();
               panel.setLayout(new BorderLayout());
          add(panel, BorderLayout.CENTER);
fileDetailsTextArea.setEditable(false);
fileSystemModel = new FileSystemModel(new File(directory));
fileTree = new JTree(fileSystemModel);
fileTree.setEditable(true);
fileTree.addTreeSelectionListener(new TreeSelectionListener() {
public void valueChanged(TreeSelectionEvent event) {
System.out.println("1. What we save is: getlTextArea() =" + getlTextArea() );
File file = (File) fileTree.getLastSelectedPathComponent();
fileDetailsTextArea.setText(getFileDetails(file));
final ListRightPanel lrp = new ListRightPanel(this);
lrp.textArea.setText(getFileDetails(file));
setlTextArea(getFileDetails(file));
System.out.println("2. What we save is: getlTextArea() =" + getlTextArea() );
          final JSplitPane splitPane = new JSplitPane();
          panel.add(splitPane, BorderLayout.CENTER);
          final JPanel panel_1 = new JPanel();
          splitPane.setLeftComponent(panel_1);
          panel_1.add(new JScrollPane(fileTree));
          final JPanel panel_2 = new JPanel();
          splitPane.setRightComponent(panel_2);
          panel_2.add(new JScrollPane(fileDetailsTextArea));
setVisible(true);
private String getFileDetails(File file) {
if (file == null)
return "";
StringBuffer buffer = new StringBuffer();
if (file.listFiles()!=null){
     for (int i=0; i< file.listFiles().length; i++){
     buffer.append(((file.listFiles())) + "\n");
     System.out.println("List all files");
return buffer.toString();
public static void main(String args[]) {
new ListPanel("c:\\");
class FileSystemModel implements TreeModel {
private File root;
private Vector listeners = new Vector();
public FileSystemModel(File rootDirectory) {
root = rootDirectory;
public Object getRoot() {
return root;
public Object getChild(Object parent, int index) {
File directory = (File) parent;
String[] children = directory.list();
return new TreeFile(directory, children[index]);
public int getChildCount(Object parent) {
File file = (File) parent;
if (file.isDirectory()) {
String[] fileList = file.list();
if (fileList != null)
return file.list().length;
return 0;
public boolean isLeaf(Object node) {
File file = (File) node;
return file.isFile();
public int getIndexOfChild(Object parent, Object child) {
File directory = (File) parent;
File file = (File) child;
String[] children = directory.list();
for (int i = 0; i < children.length; i++) {
if (file.getName().equals(children[i])) {
return i;
return -1;
public void valueForPathChanged(TreePath path, Object value) {
File oldFile = (File) path.getLastPathComponent();
String fileParentPath = oldFile.getParent();
String newFileName = (String) value;
File targetFile = new File(fileParentPath, newFileName);
oldFile.renameTo(targetFile);
File parent = new File(fileParentPath);
int[] changedChildrenIndices = { getIndexOfChild(parent, targetFile) };
Object[] changedChildren = { targetFile };
fireTreeNodesChanged(path.getParentPath(), changedChildrenIndices, changedChildren);
private void fireTreeNodesChanged(TreePath parentPath, int[] indices, Object[] children) {
TreeModelEvent event = new TreeModelEvent(this, parentPath, indices, children);
Iterator iterator = listeners.iterator();
TreeModelListener listener = null;
while (iterator.hasNext()) {
listener = (TreeModelListener) iterator.next();
listener.treeNodesChanged(event);
public void addTreeModelListener(TreeModelListener listener) {
listeners.add(listener);
public void removeTreeModelListener(TreeModelListener listener) {
listeners.remove(listener);
private class TreeFile extends File {
public TreeFile(File parent, String child) {
super(parent, child);
public String toString() {
return getName();
[3]. Program 3:
package swing.com.test.test;
import java.awt.BorderLayout;
import java.io.File;
import javax.swing.JPanel;
import javax.swing.JTextArea;
import javax.swing.JTree;
import javax.swing.event.TreeModelEvent;
import javax.swing.event.TreeModelListener;
import javax.swing.event.TreeSelectionEvent;
import javax.swing.event.TreeSelectionListener;
import javax.swing.tree.TreeModel;
import javax.swing.tree.TreePath;
import java.io.Serializable;
public class ListRightPanel extends JPanel implements TreeSelectionListener, Serializable{
     protected JTextArea textArea;
//     protected ListAllFile laf;
private String str = "";
          public String getlTextArea() {
                    //textArea.getText();
                    return str;
          public String setlTextArea(String ta) {
                    str = ta;
                    return str;
     * Create the panel
     public ListRightPanel(ListPanel laff) {
          super();
          setLayout(new BorderLayout());
          final JPanel panel = new JPanel();
          panel.setLayout(new BorderLayout());
          add(panel, BorderLayout.CENTER);
          textArea = new JTextArea();
final String st = laff.getlTextArea();
System.out.println("####################################");
System.out.println("st=" + st);
     laff.fileTree.addTreeSelectionListener(new TreeSelectionListener() {
     public void valueChanged(TreeSelectionEvent event) {
     //laff.textArea.setText(getFileDetails(file));
          textArea.setText(getlTextArea());
     System.out.println("ListRightPanel Was Invoked from ListPanel!!getlTextArea() =" + getlTextArea() );
     System.out.println("st=" + st);
          panel.add(textArea, BorderLayout.CENTER);
     public void valueChanged(TreeSelectionEvent e){};
It is runnable program, just compile and run it in Console is ok,
Regards
Sunny

Thnaks, code post again, see
[1]. package swing.com.test.test;
import javax.swing.JFrame;
import java.awt.BorderLayout;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JSplitPane;
import javax.swing.JTextArea;
import java.io.Serializable;
import swing.com.test.test.ListPanel;
import java.awt.GridLayout;
public class ListPanelMain implements java.io.Serializable{
     private JFrame frame;
      * Launch the application
      * @param args
     public static void main(String args[]) {
          try {
               ListPanelMain window = new ListPanelMain();
               window.frame.setVisible(true);
          } catch (Exception e) {
               e.printStackTrace();
      * Create the application
     public ListPanelMain() {
          initialize();
      * Initialize the contents of the frame
     private void initialize() {
          frame = new JFrame("FileTreePanelMain");
          frame.setBounds(100, 100, 900, 675);
     //     FieTreePanelComm      ftreecomm                = new       FieTreePanelComm();
          ListPanel                 ftree                     = new      ListPanel("C:\\");
//          ListAllFile            ftree                     = new      ListAllFile("C:\\");
     //     FileTreePanelText      fileTreePanelText      = new      FileTreePanelText(ftreecomm);
          frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          final JPanel panel = new JPanel();
          panel.setLayout(new GridLayout(0, 2));
          frame.getContentPane().add(panel, BorderLayout.CENTER);
     //     final JSplitPane splitPane = new JSplitPane();
     //     frame.getContentPane().add(splitPane, BorderLayout.CENTER);
     //     splitPane.setLeftComponent(ftree);
          panel.add(ftree);
          final ListRightPanel listRightPanel = new ListRightPanel(ftree);
          //splitPane.setRightComponent(listRightPanel);
          panel.add(listRightPanel);
            frame.addWindowListener(new WindowAdapter() {
                 public void windowClosing(WindowEvent e) {
                     System.exit(0);
             frame.pack();
             frame.setVisible(true);
}[2] Program 2
package swing.com.test.test;
//File System Tree
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.GridLayout;
import java.io.File;
import java.util.Iterator;
import java.util.Vector;
import javax.swing.JFrame;
import javax.swing.JScrollPane;
import javax.swing.JSplitPane;
import javax.swing.JTextArea;
import javax.swing.JTree;
import javax.swing.JPanel;
import javax.swing.event.TreeModelEvent;
import javax.swing.event.TreeModelListener;
import javax.swing.event.TreeSelectionEvent;
import javax.swing.event.TreeSelectionListener;
import javax.swing.tree.TreeModel;
import javax.swing.tree.TreePath;
import java.io.Serializable;
public class ListPanel extends JPanel implements Serializable{
  protected JTree fileTree;
  private FileSystemModel fileSystemModel;
  private JTextArea ltextArea = new JTextArea();
  protected JTextArea fileDetailsTextArea = new JTextArea();
  private String str = "";
     public  String getlTextArea()  {
               //textArea.getText();
                  return str;
     public  String setlTextArea(String ta)  {
               ltextArea.setText(ta);
               str = ta;
                  return str;
  public ListPanel(String directory) {
    //super("JTree FileSystem Viewer");
               setLayout(new BorderLayout());
               final JPanel panel = new JPanel();
               panel.setLayout(new BorderLayout());
              add(panel, BorderLayout.CENTER);
    fileDetailsTextArea.setEditable(false);
    fileSystemModel = new FileSystemModel(new File(directory));
    fileTree = new JTree(fileSystemModel);
    fileTree.setEditable(true);
    fileTree.addTreeSelectionListener(new TreeSelectionListener() {
      public void valueChanged(TreeSelectionEvent event) {
        System.out.println("1. What we save is: getlTextArea() =" + getlTextArea() );
        File file = (File) fileTree.getLastSelectedPathComponent();
        fileDetailsTextArea.setText(getFileDetails(file));
        final ListRightPanel lrp = new ListRightPanel(this);
        lrp.textArea.setText(getFileDetails(file));
        setlTextArea(getFileDetails(file));
        System.out.println("2. What we save is: getlTextArea() =" + getlTextArea() );
          final JSplitPane splitPane = new JSplitPane();
          panel.add(splitPane, BorderLayout.CENTER);
          final JPanel panel_1 = new JPanel();
          splitPane.setLeftComponent(panel_1);
          panel_1.add(new JScrollPane(fileTree));
          final JPanel panel_2 = new JPanel();
          splitPane.setRightComponent(panel_2);
          panel_2.add(new JScrollPane(fileDetailsTextArea));
    setVisible(true);
  private String getFileDetails(File file) {
    if (file == null)
      return "";
    StringBuffer buffer = new StringBuffer();
    if (file.listFiles()!=null){
         for (int i=0; i< file.listFiles().length; i++){
         buffer.append(((file.listFiles())) + "\n");
     System.out.println("List all files");
return buffer.toString();
public static void main(String args[]) {
new ListPanel("c:\\");
class FileSystemModel implements TreeModel {
private File root;
private Vector listeners = new Vector();
public FileSystemModel(File rootDirectory) {
root = rootDirectory;
public Object getRoot() {
return root;
public Object getChild(Object parent, int index) {
File directory = (File) parent;
String[] children = directory.list();
return new TreeFile(directory, children[index]);
public int getChildCount(Object parent) {
File file = (File) parent;
if (file.isDirectory()) {
String[] fileList = file.list();
if (fileList != null)
return file.list().length;
return 0;
public boolean isLeaf(Object node) {
File file = (File) node;
return file.isFile();
public int getIndexOfChild(Object parent, Object child) {
File directory = (File) parent;
File file = (File) child;
String[] children = directory.list();
for (int i = 0; i < children.length; i++) {
if (file.getName().equals(children[i])) {
return i;
return -1;
public void valueForPathChanged(TreePath path, Object value) {
File oldFile = (File) path.getLastPathComponent();
String fileParentPath = oldFile.getParent();
String newFileName = (String) value;
File targetFile = new File(fileParentPath, newFileName);
oldFile.renameTo(targetFile);
File parent = new File(fileParentPath);
int[] changedChildrenIndices = { getIndexOfChild(parent, targetFile) };
Object[] changedChildren = { targetFile };
fireTreeNodesChanged(path.getParentPath(), changedChildrenIndices, changedChildren);
private void fireTreeNodesChanged(TreePath parentPath, int[] indices, Object[] children) {
TreeModelEvent event = new TreeModelEvent(this, parentPath, indices, children);
Iterator iterator = listeners.iterator();
TreeModelListener listener = null;
while (iterator.hasNext()) {
listener = (TreeModelListener) iterator.next();
listener.treeNodesChanged(event);
public void addTreeModelListener(TreeModelListener listener) {
listeners.add(listener);
public void removeTreeModelListener(TreeModelListener listener) {
listeners.remove(listener);
private class TreeFile extends File {
public TreeFile(File parent, String child) {
super(parent, child);
public String toString() {
return getName();
[3] Program 3:
package swing.com.test.test;
import java.awt.BorderLayout;
import java.io.File;
import javax.swing.JPanel;
import javax.swing.JTextArea;
import javax.swing.JTree;
import javax.swing.event.TreeModelEvent;
import javax.swing.event.TreeModelListener;
import javax.swing.event.TreeSelectionEvent;
import javax.swing.event.TreeSelectionListener;
import javax.swing.tree.TreeModel;
import javax.swing.tree.TreePath;
import java.io.Serializable;
public class ListRightPanel extends JPanel implements TreeSelectionListener, Serializable{
     protected JTextArea textArea;
//     protected ListAllFile  laf;
    private String str = "";
          public  String getlTextArea()  {
                    //textArea.getText();
                       return str;
          public  String setlTextArea(String ta)  {
                    str = ta;
                       return str;
      * Create the panel
     public ListRightPanel(ListPanel  laff) {
          super();
          setLayout(new BorderLayout());
          final JPanel panel = new JPanel();
          panel.setLayout(new BorderLayout());
          add(panel, BorderLayout.CENTER);
          textArea = new JTextArea();
        final String st = laff.getlTextArea();
        System.out.println("####################################");
        System.out.println("st=" + st);
         laff.fileTree.addTreeSelectionListener(new TreeSelectionListener() {
             public void valueChanged(TreeSelectionEvent event) {
               //laff.textArea.setText(getFileDetails(file));
                  textArea.setText(getlTextArea());
                 System.out.println("ListRightPanel Was Invoked from ListPanel!!getlTextArea() =" + getlTextArea() );
                 System.out.println("st=" + st);
          panel.add(textArea, BorderLayout.CENTER);
       public void valueChanged(TreeSelectionEvent e){};
}You can try this one, thanks again
sunny

Similar Messages

  • HT3819 How do I share music between different users on the same computer?

    I understand Home Sharing helps me share music across different computers.  How do I share between different users on the same computer?  We have a few instances of iTunes on a single computer and have to download from the same CD each time.  I must be doing something wrong - seems crazy to have several copies of the same song on one hard-drive when Home Share allows for sharing across computers - how do I share within the same computer?  Please outline specific steps.  THANKS.

    Hello Whigged-out,
    It sounds like you would like to share one library between two different users on your iMac.  I found an article with steps you can take to accomplish this:
    iTunes: How to share music between different accounts on a single computer
    http://support.apple.com/kb/ht1203
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • Can u/how do u  share playlists between different apple accounts on the same computer?

    My other half has own iphone    how do I share i tunes with 2 different phones and 2 itunes ids

    First thing you need to do is disable auto syncing in iTunes. This is from Edit>Preferences>Devices>Prevent iPods, etc.
    Unfortunately, the only thing you can do is set up separate log in accounts for the laptop. This will allow you to have iTunes in each log in and they can have different content. iTunes cannot have separate content with the same log in and different Apple ID, but you can manage two phones with the same iTunes account. See if any of the information in this support document will help you http://support.apple.com/kb/ht1495 but the best solution is separate computer log in.

  • How can I share values between different jsp pages?

    Hi,
    I'm doing a jsp, bc4j application (JDeveloper 9.0.3), and I need to share some values between different jsp pages. To do this,
    I have used the tag <jsp:usebean.....></jsp:usebean> in this way:
    on pageone.jsp
    <jsp:useBean id="param" scope="session" class="MyPackage.Parameters" ></jsp:useBean>
    on pagetwo.jsp     
    <jsp:useBean id="param" scope="session" class="MyPackage.Parameters" ></jsp:useBean>
    and so on, in order to refer to the same instance of the class "Parameters".
    After deploying, the application works well only if the client is the same pc where the AS resides, otherwise the variables of "Parameters" are null.
    Please, could you help me?
    Thanks
    Nunzio.

    I am seeing an indication on 9.0.3 that static includes are not static, but instead always dynamic. The compiler generates a call to the included page, and doesn't include the content in the calling page as it should.

  • How to pass local variables between different sequence files?

    Actually i want to pass the data (local variable) from my process model file to a client file. The client file only has the callbacks and those callbacks require some parameters as input which is available in local variables of my process model sequence file. I do not want to use Station Globals.
    Please tell me any other way by which i can pass that data.

    Which Locals do you want from the model.  Every sequence has it's own Locals and there are a bunch of sequences in every process model.  Do you want the entry point's Locals?  A callback's Locals?  Just one of the sequence's Locals?  Some Models have way more entry points than others.  What if your sequence file is ran with a different entry point?
    One option is to create your own callback in the model and pass the data to it as parameters.  Then add that callback to your client sequence file and get it out of the parameters.
    If you simply want the entry point's locals and you are in your Main Sequence then you could use RunState.Caller.Locals.VariableName.  This assumes you will use the same entry point every time you run that sequence file.  Or assumes that every entry point you run has the same Local variable name.
    Maybe there is an API method that exposes what you are looking for.  What is your goal?
    Regards,
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

  • How do I share applications between different user accounts?

    Word is stored on my user account but when my girlfriend logs in she cannot get to Word or all Itunes music is not availiable....HELP

    Move the Word (or Office) folder from your user/Applications folder to the Macintosh HD/Applications folder. There it can be accessed by all users.
    iTunes Music is slightly different as that's user-oriented, but you should be able to allow other accounts to use it by opening iTunes and selecting iTunes/Preferences in the menu bar. Select the Sharing option and choose what to share;
    If the other account holder then checks the 'look for shared libraries' option, she should be able to access whatever music you choose to share.

  • How can i share tones between different iPhones on the same account

    I have two iPhones registered on the same iTunes account - one for work and one personal. I have bought a couple of ringtones through iTunes but find that I cannot see them in the iTunes library so cannot load a ringtone from one of my iPhones to the other. Any suggestion on how I can do this ?
    Regards
    Kev

    You will have to transfer the ringtones from the phone that has them to your iTunes library.
    File>Transfer Purchases.
    Then you can sync them to the other phone.

  • How can you share picture between different user on one computer

    I am trying to move pictures from one user I photo to another user on the same computer but not sure how to do it can anyone help?

    Just the Photos?
    Export from one user (File -> Export) to the FInder. Drag the images to the Users/Shared folder. Change user and then import from there.
    Or use iPhoto Sharing:
    For iPhoto 09 (version 8.0.2) and later:
    Enable Sharing in your iPhoto (Preferences -> Sharing), leave iPhoto running and use Fast User Switching to open the other account. In that account, enable 'Look For Shared Libraries'. Your Library will appear in the other source pane.
    Any user can drag a pic from the Shared Library to their own in the iPhoto Window.
    Remember iPhoto must be running in both accounts for this to work.

  • How do I share music between different accounts on a single Mac?

    I've placed my iTunes folder in the shared users folder and then pointed all users to that folder... but none of the other users are able to see the music. How can I have all users on the same computer using the same iTunes music folder?

    File -> *Add to library*.

  • HT1203 iTunes: How to share music between different accounts on a single computer - I tried to use the instructions to configure 2 different windows users sharing the same iTunes library.  I could not get this to work per the instructions.

    I tried to configure 2 windows users accounts using a single library per the instructions in HT1203.  My iTunes library is on an external drive.  I cannot get this to work.  Any suggestions?

    To give other users read-only access to your iTunes library, use the Sharing features of iTunes. Sharing works over the local network as well as on the same computer. See the built-in help for details.
    If you want to give full read/write access to more than one user, see the support article linked below.
    iTunes: How to share music between different accounts on a single computer
    There is a way to share the library without moving it to a secondary volume. If you really need to do that, ask for instructions.

  • How to share music between different accounts on a single computer

    I am trying to share music on my Mac between two different iTunes accounts.  Can this be done?

    iTunes: How to share music between different accounts on a single computer - http://support.apple.com/kb/HT1203 - relocating iTunes' media folder to a shared area but leaving separate library files - extra tip at https://discussions.apple.com/message/17331189

  • HT1203 i have tried this 6+ times to "How to share music between different accounts on a single computer" on my wifes mac and can not get it to work!! On my PC no problem but on the MAC it will not work, follow the instructions to the T but no go????

    i have tried this 6+ times to "How to share music between different accounts on a single computer" on my wifes mac and can not get it to work!! On my PC no problem but on the MAC it will not work, follow the instructions to the T but no go????

    It is almost as if the program does not exist on my computer. If I search for it, the only thing that comes up is the installer. I cannot find it anywhere despite the fact I have installed it numerous times, uninstalled it and conducted a fresh install, and the Adobe website checks says that it is installed.

  • How to share memory between different VMs?

    Hi, dear all!
    I don't know if it is possible to share memory between different VMs. I know its easy for threads. Now my problem is that I want to start serveral applications which share only one copy of data, I don't know what's the right way to do that.
    Thanx

    They are some volume data for visualization. I want to
    serveral rendering servers on a single machine, the
    data size can be up to 1024*1024*1024 ( or even larger
    I don't know if I HAVE TO use threads in order to
    share the data, however, threads are not preemptive as
    processes I think, is that true?
    Not really sure what that has to do with it.
    I believe the VMs for most common OSes use preemptive thread scheduling. I know windows does and I am rather certain that solaris/linux also do that.
    A number of suggestions were made above for your problem. Memory mapped files allow multiple VMs if memory mapped files work for your VM/OS. Or you can use a single VM.
    Given that your dataset is 1 gig or larger you might want to keep in mind the limitations of modern OSes. Windows for example will not normally allow any application to have a process space larger than 2 gigs. And on all OSes the VM heap limitations for 32-bit VMs are below 2 gigs by several hundred mega-bytes.

  • How do I share music between user accounts on the same computer?

    My wife and I have separate user accounts on the same MacBook Pro so that we can both sync our phones to this computer. My account is the primary user account, and my iTunes library is stored in this account. My wife would like to put music on her iPhone so she can run, but I can't seem to access the music library thru her account. I know the files are all on the hard drive regardless, so I just need to know how I can make iTunes on my wife's account access the library that's there. I've tried the steps I could find on Apple's website, but I can't seem to make it work. I'm running the latest versions of everything - even tho the post says I'm running 10.9.1, I'm actually running 10.9.4

    To give other users read-only access to your iTunes library, use the Sharing features of iTunes. Sharing works over the local network as well as on the same computer. See the built-in help for details.
    If you want to give full read/write access to more than one user, see the support article linked below.
    iTunes: How to share music between different accounts on a single computer
    There is a way to share the library without moving it to a secondary volume. If you really need to do that, ask for instructions.

  • How do I share files between users on the same Macbook pro?

    I have created different users on my new Macbookpro, but I can't seem to share files between two users. Help how do I share files between users on one laptop? eg. a pdf file that I want to grab from my user x and use it on user y, thanks.  By the way I have already tries going into system preferences, sharing folder, then turning on file sharing and that didnt work. thanks

    From the Help Menu using the search criteria Drop Box

Maybe you are looking for

  • Network Media Player (Noontec V9-T) unable to access network shares on WIN8 Pro

    I have just upgraded from Windows 7 home premium 64 bit to Windows 8 Pro 64 bit. After the upgrade, I made sure my video library was shared (both with the homegroup and my username) and that network discovery was enabled file sharing enabled etc etc.

  • CS6 | Adobe Acrobat Pro v10.1.4 | Crashes when running Recognize Text on large PDF document

    Dear Adobe Friends, I really need some help here. I am working on a project for graduate school and am having a big problem with Acrobat Pro X. I am running CS6 with Acrobat Pro X on my iMac (specs below). Ordinarily, I have no problems running Acrob

  • A General FTP Question  - Interesting One?

    Hi, We have a domain hosted through a hosting company and can access the ftp in two ways... ftp.mydomain.co.uk - user/pass ftp.hostingcompany - user/pass We have a OS X Server (email) in house and an iMac running PureFTP. I need to allow a 3rd party

  • Deploying WebLogicFusionOrderDemo to SOA Suite hangs

    I am trying to deploy the WebLogicFusionOrderDemo as part of the Fusion Order Demo Application, using JDeveloper 11.1.1.2.0. I followed all the steps in the tutorial, also read this similar tutorial and did all the configuration steps http://www.orac

  • How to make images 100% page width?

    I've been familiar with the 100% page width feature for a while and have used it quite a bit with no trouble until now. I'm trying make this banner image I have 100% page width (which doesn't appear to be an option), but when I do it still leaves som