Exit from a Frame without resorting to System.exit()
This is driving me nuts.
I've got a really simple problem, actually... I've got a Frame and I'm trying to get rid of it so my application will exit.
Though using System.exit() seems to be the most common way to get an application to exit, I'd prefer to avoid going that route. My program uses multiple threads, and I want to give them all a chance to exit gracefully before the application exits, as opposed to terminating them all quite suddenly. All the threads monitor a boolean value, "exiting", and terminate, after some cleanup, when the variable is set. Using join() on all the threads before using System.exit() would work, except any number of threads may be created by the program, and not all of them will be accessible by the function doing the exiting!
If I simply omit the call to System.exit(), and remove the Frame with dispose(), the threads all shut down properly, and the program appears to have exited, except the command prompt doesn't reappear until I hit Ctrl-C.
So I looked up the docs for the dispose() method. It was slightly different than I remembered... Obviously, that method is not the way to shut down a Frame. What is?
So I looked up the docs for the dispose() method. It
was slightly different than I remembered...
Obviously, that method is not the way to shut down a
Frame. What is?The problem is that once you use some GUI, a pool of AWT threads is created and they are not shut down, not even if there is no more GUI visible.
Look at these other threads for some explanation on this behaviour an workarounds:
http://forum.java.sun.com/thread.jspa?forumID=5&threadID=10901
http://forum.java.sun.com/thread.jspa?forumID=57&threadID=122569
Similar Messages
-
Closing JFrame from within frame without closing program
Is there any way to close a JFrame from within frame without closing the program. I don't want to just frame.setVisible(false);
http://search.java.sun.com/search/java/index.jsp?col=javaforums&qp=%2Bforum%3A31&qt=closing+JFrame+from+within+frame+without+closing+program+&x=5&y=11
Happy New Year! -
Activate items from Business Cont. without change existing system
Hi all,
I plan to activate some Infoobjects, DSO and InfoCubes from the Business content. In order to avoid some big issue I'like to know if there is a procedure to follow. My main fear is to Activate all the business content and to overwrite the existing objects..
Thanks for your adivises
jakHi,
Its always good to leverage functionality provided my SAP. You should go ahead any activate the object you want in the system.
Only those object which are selected by you will get activate.
And if they already activated in the system then it will show a green light next to them . In that case you need not activate them. Because it will overwrite the existing objects
I would advise you to choose only necessary object in 'Grouping'.
for detailed explaination refer this article :
http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/business-intelligence/a-c/activating%20the%20standard%20bi%20report.pdf
regard
vivek -
Starting sap-system from MS-DOS without SAP Management Console?
Hi,
I want to start the sap-system from MS-DOS without using SAP Management Console.
Is this possible?
Which file must be started?
Thanks for your help.
Regards
StefanHi Stefan!
Try this:
startsap name=<SID> nr=<InstNo> SAPDIAHOST=<host>
Regards,
Carsten -
Data from a frame to another (bis)
Hi,
I have a first Frame DataPanelCli, when I use the button "Rechercher" in the class ButtonPanelCli, I find the informations of my company in the class FindRecCli. After when I use the button "STRUCTURE", I use the JFrame StructRecCli BUT I CAN NOT show the data coming from my first Frame.
Here is the programme, could you please help me.
regards.
Thierry
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 {
class StructRecCli 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 );
// Fermeture de l'application
// protected void processWindowEvent(WindowEvent e) {
// if (e.getID() == WindowEvent.WINDOW_CLOSING) {
// System.exit(0);To get data from one frame to another, either create one frame with a reference to the other one so it can discover the data in it, or create a static variable in one of your classes that both frames can access
-
How to copy a value from one Frame to another Frame.
Hi,
I am new to Swing and AWT prgramming .
I have created a menu called " Test window " and it contains toplevel menu item "File" and File Menu contains subitems "Product Evaluation", "ProcessEvaluation", "ResourceEvalation", "TotalEvaluation" and "Exit".
When i click File->Product Evaluation it displays a new Frame named frame1 , similarly if i click ProcessEvaluation , ResourceEvalation , TotalEvalation it displays frame 2 , frame 3 and frame 4 Respectively,
frame 1 , frame 2, frame 3 contains four textfields with names t1,t2,t3 and t4.(NOTE: I have given same names for textfields in all three frames so that in future i want to extend my GUI).
frame 4 contains 4 textfields with names t5,t6,t7,t8 and 4 buttons (b1,b2,b3,b4).
After i compile my program i will select ProductEvaluation and enter some values in textfield of frame 1 and minimise it. Similary i will open ProcessEvaluation and TotalEvaluation and enter values in textfields of frame2 and frame3 and minimise them.
My queston is now if i select TotalEvaluation and press Button1 in frame 4 it should display in textfield t5 the value extracted from t1 in frame1 added to the value extracted from t1 in frame 2 added to the value extracted from t1 in frame 3.
ie after pressing Button 1 textfield t5 should conatin value of t1 in frame1+ value of t1 in frame2 + value of t1 in frame3.
I am sending the code.
Can you please help me.
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.awt.Component;
// Make a main window with a top-level menu: File
public class MainWindow extends Frame {
public MainWindow() {
super("Test Window");
setSize(500, 500);
// make a top level File menu
FileMenu fileMenu = new FileMenu(this);
// make a menu bar for this frame
// and add top level menus File and Menu
MenuBar mb = new MenuBar();
mb.add(fileMenu);
setMenuBar(mb);
addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
exit();
public void exit() {
setVisible(false); // hide the Frame
dispose(); // tell windowing system to free resources
System.exit(0); // exit
public static void main(String args[]) {
w = new MainWindow();
w.setVisible(true);
private static MainWindow w ;
protected TextField t1, t2, t3, t4,t5,t6,t7,t8;
// Encapsulate the look and behavior of the File menu
class FileMenu extends Menu implements ActionListener {
private MainWindow mw; // who owns us?
private MenuItem itmPE = new MenuItem("ProductEvaluation");
private MenuItem itmPRE = new MenuItem("ProcessEvaluation");
private MenuItem itmRE = new MenuItem("ResourceEvaluation");
private MenuItem itmTE = new MenuItem("TotalEvaluation");
private MenuItem itmExit = new MenuItem("Exit");
public FileMenu(MainWindow main) {
super("File");
this.mw = main;
this.itmPE.addActionListener(this);
this.itmPRE.addActionListener(this);
this.itmRE.addActionListener(this);
this.itmTE.addActionListener(this);
this.itmExit.addActionListener(this);
this.add(this.itmPE);
this.add(this.itmPRE);
this.add(this.itmRE);
this.add(this.itmTE);
this.add(this.itmExit);
// respond to the Exit menu choice
public void actionPerformed(ActionEvent e) {
if (e.getSource() == this.itmPE) {
final Frame frame1 = new Frame("Frame1");
frame1.setSize(700,700);
frame1.setLayout(null);
t1 = new TextField("");
t1.setBounds(230, 230, 50, 24);
frame1.add(t1);
t2 = new TextField("");
t2.setBounds(330, 230, 50, 24);
frame1.add(t2);
t3 = new TextField("");
t3.setBounds(430, 230, 50, 24);
frame1.add(t3);
t4 = new TextField("");
t4.setBounds(530, 230, 50, 24);
frame1.add(t4);
frame1.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
frame1.dispose();
frame1.setVisible(true);
else
if (e.getSource() == this.itmPRE) {
final Frame frame2 = new Frame("Frame2");
frame2.setSize(700,700);
frame2.setLayout(null);
t1 = new TextField("");
t1.setBounds(230, 230, 50, 24);
frame2.add(t1);
t2 = new TextField("");
t2.setBounds(330, 230, 50, 24);
frame2.add(t2);
t3 = new TextField("");
t3.setBounds(430, 230, 50, 24);
frame2.add(t3);
t4 = new TextField("");
t4.setBounds(530, 230, 50, 24);
frame2.add(t4);
frame2.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
frame2.dispose();
frame2.setVisible(true);
else
if (e.getSource() == this.itmRE) {
final Frame frame3 = new Frame("Frame3");
frame3.setSize(700,700);
frame3.setLayout(null);
t1 = new TextField("");
t1.setBounds(230, 230, 50, 24);
frame3.add(t1);
t2 = new TextField("");
t2.setBounds(330, 230, 50, 24);
frame3.add(t2);
t3 = new TextField("");
t3.setBounds(430, 230, 50, 24);
frame3.add(t3);
t4 = new TextField("");
t4.setBounds(530, 230, 50, 24);
frame3.add(t4);
frame3.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
frame3.dispose();
frame3.setVisible(true);
else
if (e.getSource() == this.itmTE) {
final Frame frame4 = new Frame("Frame4");
frame4.setSize(700,700);
frame4.setLayout(null);
t5 = new TextField("");
t5.setBounds(170, 230, 50, 24);
frame4.add(t5);
t6 = new TextField("");
t6.setBounds(270, 230, 50, 24);
frame4.add(t6);
t7 = new TextField("");
t7.setBounds(370, 230, 50, 24);
frame4.add(t7);
t8 = new TextField("");
t8.setBounds(470, 230, 50, 24);
frame4.add(t8);
ActionListener action = new MyActionListener(frame4, t5, t6, t7, t8);
Button b1 = new Button("Button1");
b1.setBounds(170, 400, 120, 24);
b1.addActionListener(action);
frame4.add(b1);
Button b2 = new Button("Button2");
b2.setBounds(300, 400, 120, 24);
b2.addActionListener(action);
frame4.add(b2);
Button b3 = new Button("Button3");
b3.setBounds(420, 400, 120, 24);
b3.addActionListener(action);
frame4.add(b3);
Button b4 = new Button("Button4");
b4.setBounds(550, 400, 120, 24);
b4.addActionListener(action);
frame4.add(b4);
frame4.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
frame4.dispose();
frame4.setVisible(true);
else {
mw.exit();
class MyActionListener implements ActionListener {
private Frame frame4;
private TextField t5;
private TextField t6;
private TextField t7;
private TextField t8;
public MyActionListener(Frame frame4,TextField tf5, TextField tf6, TextField tf7, TextField tf8)
this.frame4 = frame4;
this.t5 = tf5;
this.t6 = tf6;
this.t7 = tf7;
this.t8 = tf8;
public void actionPerformed(ActionEvent e) {
String s = e.getActionCommand();
if (s.equals("Button1")) {
// I think code for the Button1 action can be written here
hi,
u have ot submit the values using
b1 for f1,
b1 for f2 and
b1 forf3
after u can access the values in to f4 other wise u con't
what u have to do use method in each frame like
setValueforframe1() { } and 2 and 3
and u can call this method in frame 4 and u can get the values -
How to put a string from one Frame to another Frame?
Dear all,
How can I put a String from one Frame to another Frame?
When the application started, the Frame 'WindowX' will be displayed. After you press the 'openButton', a whole new Frame (inputFrame) will be shown. In this Frame )(inputFrame) you can write a String in a TextField. After pressing the okButton, this String will be sent to the first Frame 'WindowX'.
But does anyone know how to realize the sending part?
I've tested this code on Win98 SE and JDK1.2.2.
Hope someone can help me. Thanks in advance.
import java.awt.*;
import java.awt.event.*;
public class WindowX extends Frame implements ActionListener, WindowListener
private Button openButton;
private TextField resultField;
public static void main(String [] args)
WindowX wx = new WindowX();
wx.setSize(300,100);
wx.setVisible(true);
public WindowX()
setLayout(new FlowLayout());
openButton=new Button("open");
add(openButton);
openButton.addActionListener(this);
resultField=new TextField(10);
add(resultField);
resultField.addActionListener(this);
addWindowListener(this);
public void actionPerformed(ActionEvent evt)
if (evt.getSource()==openButton)
inputFrame ip=new inputFrame();
ip.setSize(200,80);
ip.show();
public void place(String theString) //this doesn't work
resultField.setText(theString);
public void windowClosing(WindowEvent event)
System.exit(0);
public void windowIconi......
class inputFrame extends Frame implements ActionListener,WindowListener
String theString = "";
Button okButton;
TextField inputField;
WindowX myWX=new WindowX(); //??
public inputFrame()
setLayout(new FlowLayout());
inputField=new TextField(10);
add(inputField);
inputField.addActionListener(this);
okButton=new Button("OK");
add(okButton);
okButton.addActionListener(this);
addWindowListener(this);
public static void main(String[] args)
Frame f = new Frame();
f.show();
public void actionPerformed(ActionEvent evt)
if (evt.getSource()==okButton)
theString=inputField.getText();
myWX.place(theString); //??
dispose();
public void windowClosing(WindowEvent e) {
dispose();
public void windowIconi......
}Thanks for your reply!
But I got an other problem:
I can't refer to the object (wx) made from the main Frame 'WindowX', because it's initialized in 'public static void main(String [] args)'...
Hope you can help me again... Thanks!
import java.awt.*;
import java.awt.event.*;
public class WindowX extends Frame implements ActionListener, WindowListener
private Button openButton;
private TextField resultField;
public static void main(String [] args)
WindowX wx = new WindowX(); //!!
wx.setSize(300,100);
wx.setVisible(true);
public WindowX()
setLayout(new FlowLayout());
openButton=new Button("open");
add(openButton);
openButton.addActionListener(this);
resultField=new TextField(10);
add(resultField);
resultField.addActionListener(this);
addWindowListener(this);
public void actionPerformed(ActionEvent evt)
if (evt.getSource()==openButton)
inputFrame ip=new inputFrame(wx);
ip.setSize(200,80);
ip.show();
public void place(String theString)
resultField.setText(theString);
public void windowClosing(WindowEvent event)
System.exit(0);
public void windowIconi....
class inputFrame extends Frame implements ActionListener,WindowListener
String theString = "";
Button okButton;
TextField inputField;
WindowX parent;
public inputFrame(WindowX parent)
setLayout(new FlowLayout());
this.parent=parent;
inputField=new TextField(10);
add(inputField);
inputField.addActionListener(this);
okButton=new Button("OK");
add(okButton);
okButton.addActionListener(this);
addWindowListener(this);
public static void main(String[] args)
Frame f = new Frame();
f.show();
public void actionPerformed(ActionEvent evt)
if (evt.getSource()==okButton)
theString=inputField.getText();
parent.place(theString);
dispose();
public void windowClosing(WindowEvent e) {
dispose();
public void windowIconi..........
} -
How to copy value from one frame to another frame
Hi,
I am new to swing prgramming .
I have created a menu called " TopFrame " and it contains toplevel menu item "select" and select Menu contains subitems "firstframe", "secondframe", "thirdframe" and "Exit".
When i click select->firstframe it displays a new Frame f1 with a
textfield t1. I enter value in textfield t1 and minimise the frame.
similarly when i click select->secondframe it displays a new Frame f2 with a textfield t1. I enter value in textfield t1 and minimise the frame.
now when i click select->thirdframe it displays a frame f3 which contains button called "Totalvalue" and a textfield t2 .
MY question is after opening frame f3 when i press "Totalvalue" button it should add the values from textfield t1 from both the frames f1 and f2 and display the result in textfield t2 of frame f3.
Actually my application is big but for better understanding i have reduced the description above.
I am posting the code...Kindly help me
thanks in advance..
import java.awt.*;
import java.awt.event.*;
import java.awt.Component;
import java.awt.Checkbox;
import javax.swing.*;
import java.text.DecimalFormat;
import javax.swing.JComponent;
public class MainWindow extends Frame {
public MainWindow() {
super("TopFrame");
setSize(600, 600);
// make a top level File menu
FileMenu fileMenu = new FileMenu(this);
// make a menu bar for this frame
// and add top level menus File and Menu
MenuBar mb = new MenuBar();
mb.add(fileMenu);
setMenuBar(mb);
addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
exit();
public void exit() {
setVisible(false); // hide the Frame
dispose(); // tell windowing system to free resources
System.exit(0); // exit
public static void main(String args[]) {
MainWindow w = new MainWindow();
w.setVisible(true);
w.setBackground(Color.white);
private static MainWindow w ;
protected TextField t1, t2;
class FileMenu extends Menu implements ActionListener {
private MainWindow mw; // who owns us?
private MenuItem itm1 = new MenuItem("Firstframe");
private MenuItem itm2 = new MenuItem("Secondframe");
private MenuItem itm3 = new MenuItem("Thirdframe");
private MenuItem itmExit = new MenuItem("Exit");
public FileMenu(MainWindow main)
super("Select");
this.mw = main;
this.itm1.addActionListener(this);
this.itm2.addActionListener(this);
this.itm3.addActionListener(this);
this.itmExit.addActionListener(this);
this.add(this.itm1);
this.add(this.itm2);
this.add(this.itm3);
this.add(this.itmExit);
public void actionPerformed(ActionEvent e)
if (e.getSource() == this.itm1)
final Frame f1 = new Frame("first frame opened");
f1.setSize(500,500);
f1.setLayout(null);
Label l1 = new Label("Enter first value below");
l1.setBounds(220, 250, 240, 24);
f1.add(l1);
TextField t1 = new TextField("0");
t1.setBounds(260, 300, 40, 24);
f1.add(t1);
f1.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e)
//System.exit(0);
f1.dispose();
f1.show();
else
if (e.getSource() == this.itm2)
final Frame f2 = new Frame("second frame opened");
f2.setSize(500,500);
f2.setLayout(null);
Label l1 = new Label("Enter first value below");
l1.setBounds(220, 250, 240, 24);
f2.add(l1);
TextField t1 = new TextField("0");
t1.setBounds(260, 300, 40, 24);
f2.add(t1);
f2.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e)
//System.exit(0);
f2.dispose();
f2.show();
else
if (e.getSource() == this.itm3)
final Frame f3 = new Frame("third frame opened");
f3.setSize(500,500);
f3.setLayout(null);
JButton b1 = new JButton("Totalvalue");
b1.setBounds(220, 300, 180, 24);
f3.add(b1);
TextField t2 = new TextField("0");
t2.setBounds(410, 300, 40, 24);
f3.add(t2);
f3.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e)
//System.exit(0);
f3.dispose();
f3.show();
else
{ mw.exit();}hi ,
I have extended my application ...i have some doubts can you please clear my doubts..
Now i have two textfields t1 and t2 in both the frames frame 1 and frame 2 and i have 2 buttons Button1 and Button2, textfields t5 and t6 in frame3.
Now my question is i enter some values in t1 and t2 in frame1, and t1 and t2 in frame2 and minimise or close them...when i open frame3 and press Button1 it should take values from t1 in both frame1 and frame2 , add them and display the result in t5( in frame3)... similarly when i press Button2 it should take values from t2 in both frame1 and frame2, add them and display the result in t6(in frame3).
Can you please tell me how can i do this?
Thanks in advance.
I am posting the code...
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.awt.Component;
// Make a main window with a top-level menu: File
public class MainWindow extends Frame {
public MainWindow() {
super("Test Window");
setSize(500, 500);
// make a top level File menu
FileMenu fileMenu = new FileMenu(this);
// make a menu bar for this frame
// and add top level menus File and Menu
MenuBar mb = new MenuBar();
mb.add(fileMenu);
setMenuBar(mb);
addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
exit();
public void exit() {
setVisible(false); // hide the Frame
dispose(); // tell windowing system to free resources
System.exit(0); // exit
public static void main(String args[]) {
w = new MainWindow();
w.setVisible(true);
private static MainWindow w ;
protected TextField t1, t2,t5,t6;
// Encapsulate the look and behavior of the File menu
class FileMenu extends Menu implements ActionListener {
private MainWindow mw; // who owns us?
private MenuItem itmPE = new MenuItem("ProductEvaluation");
private MenuItem itmPRE = new MenuItem("ProcessEvaluation");
private MenuItem itmTE = new MenuItem("TotalEvaluation");
private MenuItem itmExit = new MenuItem("Exit");
public FileMenu(MainWindow main) {
super("File");
this.mw = main;
this.itmPE.addActionListener(this);
this.itmPRE.addActionListener(this);
this.itmTE.addActionListener(this);
this.itmExit.addActionListener(this);
this.add(this.itmPE);
this.add(this.itmPRE);
this.add(this.itmTE);
this.add(this.itmExit);
// respond to the Exit menu choice
public void actionPerformed(ActionEvent e) {
if (e.getSource() == this.itmPE) {
final Frame frame1 = new Frame("Frame1");
frame1.setSize(700,700);
frame1.setLayout(null);
t1 = new TextField("");
t1.setBounds(230, 230, 50, 24);
frame1.add(t1);
t2 = new TextField("");
t2.setBounds(330, 230, 50, 24);
frame1.add(t2);
frame1.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
frame1.dispose();
frame1.setVisible(true);
else
if (e.getSource() == this.itmPRE) {
final Frame frame2 = new Frame("Frame2");
frame2.setSize(700,700);
frame2.setLayout(null);
t1 = new TextField("");
t1.setBounds(230, 230, 50, 24);
frame2.add(t1);
t2 = new TextField("");
t2.setBounds(330, 230, 50, 24);
frame2.add(t2);
frame2.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
frame2.dispose();
frame2.setVisible(true);
else
if (e.getSource() == this.itmTE) {
final Frame frame3 = new Frame("Frame4");
frame3.setSize(700,700);
frame3.setLayout(null);
t5 = new TextField("");
t5.setBounds(170, 230, 50, 24);
frame3.add(t5);
t6 = new TextField("");
t6.setBounds(270, 230, 50, 24);
frame3.add(t6);
ActionListener action = new MyActionListener(frame3,t5,t6);
Button b1 = new Button("Button1");
b1.setBounds(170, 400, 120, 24);
b1.addActionListener(action);
frame3.add(b1);
Button b2 = new Button("Button2");
b2.setBounds(300, 400, 120, 24);
b2.addActionListener(action);
frame3.add(b2);
frame3.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
frame3.dispose();
frame3.setVisible(true);
else {
mw.exit();
class MyActionListener implements ActionListener {
private Frame frame3;
private TextField t5;
private TextField t6;
public MyActionListener(Frame frame3,TextField tf5,TextField tf6)
this.frame3 = frame3;
this.t5 = tf5;
this.t6 = tf6;
public void actionPerformed(ActionEvent e) {
String s = e.getActionCommand();
if (s.equals("Button1")) {
// I think code for the Button1 action can be written here
else if (s.equals("Button2")) {
// I think code for the Button2 action can be written here
-
Is there a way to access OSX directly from Parallel Desktop - without a password?
Hi guys.
My dear late brother had left his Mac Mini when he chose to exit this world.
All the while - his Mac Mini was still on and running.
After a while when having to pack his belongings, I noticed this and tried to login - but all the passwords I've tried were wrong.
Meanwhile I had to shut his Mac off - and when later on turned it on again - it went straight to Parellel Desktop (running Windows)..
I noticed there were some files on it - through My Computer :// ...
But all those files which are found on the above folder etc. - is that all files available on the Mac including files on OSX??
So my question goes: The files found on My Computer :// (running Windows) - are they the exact files which can be seen on OSX or is it possible that there's more files available when running OSX??
One more question : Is it possible to access OSX directly from Parallel Desktop - without having to type any password on OSX?Thanks for the info.
So that must mean - there may be more files available on the OSX partition then..?
But seeing that it requires a password (login) in order for me to access the OSX system - is there any chance of getting access to all the data, without losing them? -
Goods Receipts 101 E from Production Order without valuation
Hi,
we faced a strange issue relating to the final confirmation of production order.
In some cases, the goods receipt of main order, created by the confirmation in CO11N, has value "0".
Taking a look to some production orders for the same product, they have no differences and the valuation is correctly with the plan cost estimate.
The issue is triggered twice:
1- Directly with the first confirmation in random cases;
2- Confirmation with wrong value (higher than Zero), reversal of confirmation and new confirmation without valuation.
Could you please help us?
Thanks.
MCHi
With Valuation Strategy M, a record is created in EBEW for each sales order
1. The first goods receipt results in valuation on the basis of one of the subsequent strategies in the specified sequence. A standard price selected through one of the subsequent strategies is copied into strategy and serves as the valuation basis from this point onwards.
- The system calculates the standard price on the basis of your customer exit COPCP002 Material valuation for valuated sales order stock.
- The system calculates the standard price in a sales order cost estimate. This sales order cost estimate can be based on a unit cost estimate or on a product cost estimate.
- The system determines the standard price using the production order cost estimate or the planned costs for the WBS element. If there are multiple production orders for the same sales order item, the system uses the standard price that results from the production order that delivers first (see strategy 1).
2. If the above price is changed after first delivery, then the difference would be posted as output price variance at month end.
3. Even reversal of first goods receipt does not reverses the standard price. You need to manually change it using MR21..
4. Have you ticked "W/o Val Strategy" in your req class? If yes, it means that inventory is valuated using Std cost from CK11N... In your case, if it is ticked and Std cost is not released, then GR will be valuated at zero price
BR,Ajay M
BR,Ajay M -
HELP ME i need to pass String variables from one Frame to another
I need help with some code.
i need to pass a set of string values from one frame to another.
from the mainscreen i need to pass what type of seats the user has requested this is done by radio buttons. i need this information to then be passed onto the next frame called Mydialog1 and placed in a textbox with label st. it dosn't comple and i don't know why
this is getting me depressed. I need some serious help with this
can anybody get this to work??
here is the code
Mainscreen1 code
import java.applet.*;
import java.awt.*;
import java.awt.event.*;
public class mainscreen1 extends Applet implements ItemListener,
ActionListener
private Image layout1;
private int frame;
private int xpos,ypos,xdir,ydir;
public TextField tn, tt1, tt2, total;
public int value, ticketnum, sum, nr_seats, ctot;
public Label title, seat, need, payable;
public Button b1, b2, b3;
Mydialog1 d;
String stype, c1, sr;
public void init()
setBackground(Color.pink);
setSize (600, 460);
setLayout(null);
//Mydialog1.mehod(sr);
title=new Label("The Almeida Theater booking system");
title.setBounds(100,0,400,30);
title.setFont(new Font("Verdana", Font.PLAIN,24));
add(title);
seat=new Label("Please choose a seating location:");
seat.setBounds(300,40,190,20);
seat.setFont(new Font("Verdana", Font.BOLD,12));
add(seat);
payable=new Label("Total Payable:�");
payable.setBounds(300,390,100,20);
payable.setFont(new Font("Verdana", Font.BOLD,12));
add(payable);
need=new Label("Please enter the number of seats needed:");
need.setBounds(300,180,245,20);
need.setFont(new Font("Verdana", Font.BOLD,12));
add(need);
CheckboxGroup sr = new CheckboxGroup();
Checkbox Stalls = new Checkbox("Stalls", true, sr);
Stalls.setBounds(490,40,60,25);
add(Stalls);
Stalls.addItemListener(this);
Checkbox Balcony = new Checkbox("Balcony", false, sr);
Balcony.setBounds(490,65,65,25);
add(Balcony);
Balcony.addItemListener(this);
Checkbox Concessions = new Checkbox("Concessions", false,
sr);
Concessions.setBounds(490,90,94,25);
add(Concessions);
Concessions.addItemListener(this);
Button b1=new Button("Quote");
b1.setBounds(20,395,80,30);
add(b1);
b1.addActionListener( this );
Button b2=new Button("Confirm booking");
b2.setBounds(110,395,100,30);
add(b2);
b2.addActionListener( this );
Button b3=new Button("Clear");
b3.setBounds(480,410,100,30);
add(b3);
b3.addActionListener( this );
tt1=new TextField(60);
tt1.setBounds(300,250,270,20);
add(tt1);
tt1.setEditable (false);
tt1.addActionListener(this);
tt2=new TextField(60);
tt2.setBounds(300,300,150,20);
add(tt2);
tt2.setEditable (false);
tt2.addActionListener(this);
tn=new TextField(3);
tn.setBounds(545,180,30,20);
add(tn);
tn.addActionListener(this);
total=new TextField(5);
total.setBounds(400,390,45,20);
add(total);
total.setEditable (false);
total.addActionListener(this);
xpos = getSize().width/-1400;
ypos = getSize().height/12;
layout1 = getImage(getDocumentBase(),"layout1.gif");
repaint();
public void itemStateChanged(ItemEvent e)
String c1 = (String) e.getItem();
if (c1 == "Stalls")
value = 20;
else if (c1 == "Balcony")
value = 15;
else
value = 10;
tt1.setText("You have chosen to sit in the " + c1 + "
area");
tt2.setText("Each seat will cost: �" + value);
repaint();
public void clearValue()
//cb.setSelectiob
total.setText("");
tt1.setText("");
tt2.setText("");
tn.setText("");
public void actionPerformed ( ActionEvent e )
if( e.getActionCommand() == "Quote" )
int nr_seats = Integer.parseInt(tn.getText());
total.setText("" +nr_seats*value);
else if( e.getActionCommand() == "Confirm booking")
int nr_seats = Integer.parseInt(tn.getText());
int ctot = Integer.parseInt(total.getText());
//String stype = String.parseString(c1.getText());
total.setText("" +nr_seats*value);
d = new Mydialog1();
d.set_text(nr_seats);
d.set_texts(ctot);
stype = sr.getSelectedItem();
else if ( e.getActionCommand() == "Clear")
clearValue();
ticketnum = Integer.parseInt(tn.getText());
repaint();
public void paint(Graphics g)
g.setColor(Color.black);
g.drawString ("You have chosen:" + ticketnum +"
seats", 300, 365);
g.drawImage(layout1,xpos,ypos,null);
Mydialog1 code
import java.applet.*;
import java.awt.*;
import java.awt.event.*;
public class Mydialog1 extends Frame implements ItemListener,
ActionListener
public Label title, custd, custd1, custfn, custad, custsn, custpc,
custph, custem, custem1, need;
public Button b1, b2, b3;
public TextField cfnt, csnt, cdt,cdt2,cdt3,cdt4, tf, tt, st,
cpct, cph, cem;
public int value, nr_seats, ctot;
creditcard cc;
String stype, c;
public Mydialog1() //constructor
init();
public void init()
custer(String c)
stype = c;
setBackground(Color.yellow);
setSize (500, 500);
setLayout(null);
setLocation(320,140);
setVisible(true);
//Mydialog1(Frame f);
title=new Label("The Almeida Theater booking system");
title.setBounds(70,20,400,30);
title.setFont(new Font("Verdana", Font.PLAIN,24));
add(title);
CheckboxGroup ct = new CheckboxGroup();
Checkbox Mr = new Checkbox("Mr", true, ct);
Mr.setBounds(5,190,36,25);
add(Mr);
Mr.addItemListener(this);
Checkbox Mrs = new Checkbox("Mrs", false, ct);
Mrs.setBounds(50,190,42,25);
add(Mrs);
Mrs.addItemListener(this);
Checkbox Miss = new Checkbox("Miss", false, ct);
Miss.setBounds(95,190,45,25);
add(Miss);
Miss.addItemListener(this);
custd=new Label("If above booking details are correct please
fill in your deatils below");
custd.setBounds(5,140,400,30);
add(custd);
custd1=new Label("If they are incorrect please click on
close and re-book seats.");
custd1.setBounds(5,160,400,30);
add(custd1);
custfn=new Label("*ForeName:");
custfn.setBounds(5,220,60,20);
add(custfn);
cfnt=new TextField(60);
cfnt.setBounds(70,220,150,20);
add(cfnt);
custsn=new Label("*SurName:");
custsn.setBounds(230,220,60,20);
add(custsn);
csnt=new TextField(60);
csnt.setBounds(300,220,150,20);
add(csnt);
custad=new Label("*Address:");
custad.setBounds(5,250,55,20);
add(custad);
cdt=new TextField(60);
cdt.setBounds(70,250,180,20);
add(cdt);
cdt2=new TextField(60);
cdt2.setBounds(70,270,180,20);
add(cdt2);
cdt3=new TextField(60);
cdt3.setBounds(70,290,180,20);
add(cdt3);
cdt4=new TextField(60);
cdt4.setBounds(70,310,180,20);
add(cdt4);
custpc=new Label("*Postcode:");
custpc.setBounds(5,330,60,20);
add(custpc);
cpct=new TextField(60);
cpct.setBounds(70,330,180,20);
add(cpct);
custph=new Label("*Telephone:");
custph.setBounds(5,360,65,20);
add(custph);
cph=new TextField(60);
cph.setBounds(70,360,180,20);
add(cph);
custem=new Label("E-mail:");
custem.setBounds(5,390,65,20);
add(custem);
cem=new TextField(60);
cem.setBounds(70,390,180,20);
add(cem);
custem1=new Label("eg: [email protected]");
custem1.setBounds(250,390,150,20);
add(custem);
need=new Label("* = required field.");
need.setBounds(350,400,150,20);
add(need);
//seat number being pased into this textbox
tf = new TextField();
tf.setBounds(5, 80, 160,20);
tf.setEditable (false);
add(tf);
//seat number being pased into this textbox
tt = new TextField();
tt.setBounds(5, 100, 160,20);
tt.setEditable (false);
add(tt);
//seat number being pased into this textbox
st = new TextField(stype);
st.setBounds(5, 120, 230,20);
st.setEditable (false);
add(st);
setVisible(true);
Button b1=new Button("Close");
b1.setBounds(20,440,80,30);
add(b1);
b1.addActionListener( this );
Button b2=new Button("Proced with booking");
b2.setBounds(110,440,150,30);
add(b2);
b2.addActionListener( this );
Button b3=new Button("Clear");
b3.setBounds(350,440,100,30);
add(b3);
b3.addActionListener( this );
public void itemStateChanged(ItemEvent e)
String c2 = (String) e.getItem();
if (c2 == "Mr")
value = 20;
else if (c2 == "Mrs")
value = 15;
else
value = 10;
public void clearValuea()
//cb.setSelectiob
cem.setText("");
cph.setText("");
cdt.setText("");
cdt2.setText("");
cdt3.setText("");
cdt4.setText("");
cfnt.setText("");
csnt.setText("");
cpct.setText("");
cph.setText("");
cem.setText("");
public void actionPerformed( ActionEvent e )
if( e.getActionCommand() == "Close" )
this.dispose();
else if( e.getActionCommand() == "Proced with booking")
cc = new creditcard();
else if( e.getActionCommand() == "Clear")
clearValuea();
public void set_text (int nr_seats)
tf.setText (" You have booked " + nr_seats + " seat/s");
public void set_texts (int ctot)
tt.setText (" The total is � " + ctot);
public void SetTextField(String c1)
st.setText(c1);
creditcard
import java.applet.*;
import java.awt.*;
import java.awt.event.*;
public class creditcard extends Frame implements ActionListener
public Label title, ccd1, ccfn;
public Button b1, b2;
public TextField cnt, cdt, ccfnt;
public String cfnt;
public creditcard() //constructor
init();
public void init()
setBackground(Color.green);
setSize (500, 500);
setLayout(null);
setLocation(320,140);
setVisible(true);
//Mydialog1(Frame f);
title=new Label("The Almeida Theater booking system");
title.setBounds(70,20,400,30);
title.setFont(new Font("Verdana", Font.PLAIN,24));
add(title);
ccd1=new Label("If billing address is different please edit below information.");
ccd1.setBounds(5,50,400,20);
ccd1.setFont(new Font("Verdana", Font.BOLD,12));
add(ccd1);
ccfn=new Label("*ForeName:");
ccfn.setBounds(5,220,60,20);
add(ccfn);
ccfnt=new TextField(60);
ccfnt.setBounds(70,220,150,20);
add(ccfnt);
Button b1=new Button("Close");
b1.setBounds(20,440,80,30);
add(b1);
b1.addActionListener( this );
Button b2=new Button("Proced with booking");
b2.setBounds(110,440,150,30);
add(b2);
b2.addActionListener( this );
public void actionPerformed( ActionEvent e )
if( e.getActionCommand() == "Close" )
this.dispose();
else if( e.getActionCommand() == "Proced with booking")
setBackground(Color.red);Here's the new mainscreen1.java file...
public class mainscreen1 extends Applet implements ItemListener,
ActionListener
private Image layout1;
private int frame;
private int xpos,ypos,xdir,ydir;
public TextField tn, tt1, tt2, total;
public int value, ticketnum, sum, nr_seats, ctot;
public Label title, seat, need, payable;
public Button b1, b2, b3;
Mydialog1 d;
CheckboxGroup checkGroup; // heres the new global CheckboxGroup variable.
String stype, c1, dialogString; // new name for the string too...
public void init()
setBackground(Color.pink);
setSize(600, 460);
setLayout(null);
//dialogString = "Hi";
//Mydialog1.mehod(dialogString);
title=new Label("The Almeida Theater booking system");
title.setBounds(100,0,400,30);
title.setFont(new Font("Verdana", Font.PLAIN,24));
add(title);
seat=new Label("Please choose a seating location:");
seat.setBounds(300,40,190,20);
seat.setFont(new Font("Verdana", Font.BOLD,12));
add(seat);
payable=new Label("Total Payable:�");
payable.setBounds(300,390,100,20);
payable.setFont(new Font("Verdana", Font.BOLD,12));
add(payable);
need=new Label("Please enter the number of seats needed:");
need.setBounds(300,180,245,20);
need.setFont(new Font("Verdana", Font.BOLD,12));
add(need);
checkGroup = new CheckboxGroup(); // instantiate the global CheckboxGroup
Checkbox Stalls = new Checkbox("Stalls", true, checkGroup); // add to the CheckboxGroup
Stalls.setBounds(490,40,60,25);
add(Stalls);
Stalls.addItemListener(this);
Checkbox Balcony = new Checkbox("Balcony", false, checkGroup);
Balcony.setBounds(490,65,65,25);
add(Balcony);
Balcony.addItemListener(this);
Checkbox Concessions = new Checkbox("Concessions", false, checkGroup);
Concessions.setBounds(490,90,94,25);
add(Concessions);
Concessions.addItemListener(this);
Button b1=new Button("Quote");
b1.setBounds(20,395,80,30);
add(b1);
b1.addActionListener( this );
Button b2=new Button("Confirm booking");
b2.setBounds(110,395,100,30);
add(b2);
b2.addActionListener( this );
Button b3=new Button("Clear");
b3.setBounds(480,410,100,30);
add(b3);
b3.addActionListener( this );
tt1=new TextField(60);
tt1.setBounds(300,250,270,20);
add(tt1);
tt1.setEditable(false);
tt1.addActionListener(this);
tt2=new TextField(60);
tt2.setBounds(300,300,150,20);
add(tt2);
tt2.setEditable(false);
tt2.addActionListener(this);
tn=new TextField(3);
tn.setBounds(545,180,30,20);
add(tn);
tn.addActionListener(this);
total=new TextField(5);
total.setBounds(400,390,45,20);
add(total);
total.setEditable(false);
total.addActionListener(this);
xpos = getSize().width/-1400;
ypos = getSize().height/12;
layout1 = getImage(getDocumentBase(),"layout1.gif");
repaint();
public void itemStateChanged(ItemEvent e) {
String c1 = (String) e.getItem();
if (c1 == "Stalls") {
value = 20;
else if (c1 == "Balcony") {
value = 15;
else {
value = 10;
tt1.setText("You have chosen to sit in the " + c1 + " area");
tt2.setText("Each seat will cost: �" + value);
repaint();
public void clearValue() {
//cb.setSelectiob
total.setText("");
tt1.setText("");
tt2.setText("");
tn.setText("");
public void actionPerformed( ActionEvent e ) {
if( e.getActionCommand() == "Quote" ) {
int nr_seats = Integer.parseInt(tn.getText());
total.setText("" +nr_seats*value);
else if( e.getActionCommand() == "Confirm booking") {
int nr_seats = Integer.parseInt(tn.getText());
int ctot = Integer.parseInt(total.getText());
total.setText("" +nr_seats*value);
d = new Mydialog1();
d.set_text(nr_seats);
d.set_texts(ctot);
// You can do your checkbox selection data transfer here like this...
// I used d.SetTextField because you had that defined in the Mydialog1 class.
Checkbox chkBx = checkGroup.getSelectedCheckbox();
d.SetTextField(chkBx.getLabel());
else if ( e.getActionCommand() == "Clear") {
clearValue();
ticketnum = Integer.parseInt(tn.getText());
repaint();
public void paint(Graphics g)
g.setColor(Color.black);
g.drawString("You have chosen:" + ticketnum +" seats", 300, 365);
g.drawImage(layout1,xpos,ypos,null);
} -
Hey, was clearing out files from Macintosh and when i open system preferences i get this message..
Process: System Preferences [725]
Path: /Applications/System Preferences.app/Contents/MacOS/System Preferences
Identifier: com.apple.systempreferences
Version: 7.0 (7.0)
Build Info: SystemPrefsApp-1750100~19
Code Type: X86-64 (Native)
Parent Process: launchd [92]
Date/Time: 2012-01-07 16:35:08.594 +0000
OS Version: Mac OS X 10.6.8 (10K549)
Report Version: 6
Interval Since Last Report: 201694 sec
Crashes Since Last Report: 56
Per-App Interval Since Last Report: 1892 sec
Per-App Crashes Since Last Report: 56
Anonymous UUID: 41AC60CC-2BEC-4643-A939-B4FC5890ACD5
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Crashed Thread: 3
Application Specific Information:
abort() called
objc[725]: garbage collection is ON
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSCFArray insertObject:atIndex:]: attempt to insert nil'
*** Call stack at first throw:
0 CoreFoundation 0x00007fff855b0784 __exceptionPreprocess + 180
1 libobjc.A.dylib 0x00007fff86dc7f03 objc_exception_throw + 45
2 CoreFoundation 0x00007fff855b05a7 +[NSException raise:format:arguments:] + 103
3 CoreFoundation 0x00007fff855b0534 +[NSException raise:format:] + 148
4 Foundation 0x00007fff81257e7e -[NSCFArray insertObject:atIndex:] + 119
5 System Preferences 0x0000000100004f71 0x0 + 4294987633
6 System Preferences 0x0000000100004671 0x0 + 4294985329
7 System Preferences 0x00000001000021bb 0x0 + 4294975931
8 System Preferences 0x0000000100001f87 0x0 + 4294975367
9 System Preferences 0x0000000100001ef1 0x0 + 4294975217
10 libSystem.B.dylib 0x00007fff80088d64 _dispatch_call_block_and_release + 15
11 libSystem.B.dylib 0x00007fff800678d2 _dispatch_queue_drain + 251
12 libSystem.B.dylib 0x00007fff80067734 _dispatch_queue_invoke + 57
13 libSystem.B.dylib 0x00007fff800672de _dispatch_worker_thread2 + 252
14 libSystem.B.dylib 0x00007fff80066c08 _pthread_wqthread + 353
15 libSystem.B.dylib 0x00007fff80066aa5 start_wqthread + 13
Thread 0: Dispatch queue: com.apple.main-thread
0 libSystem.B.dylib 0x00007fff8004cd92 semaphore_signal_trap + 10
1 libobjc.A.dylib 0x00007fff86dcadaa lookUpMethod + 314
2 libobjc.A.dylib 0x00007fff86dc2faa objc_msgSend + 198
3 com.apple.AppKit 0x00007fff81f6b8c7 _NSToolbarMetricsLoadCustom + 53
4 com.apple.AppKit 0x00007fff81f6b76f -[NSToolbar _setToolbarViewWindow:] + 103
5 com.apple.AppKit 0x00007fff81f6b5ab -[NSWindow setToolbar:] + 403
6 com.apple.systempreferences 0x00000001000032dd 0x100000000 + 13021
7 com.apple.systempreferences 0x0000000100003023 0x100000000 + 12323
8 com.apple.Foundation 0x00007fff81261ad5 _nsnote_callback + 167
9 com.apple.CoreFoundation 0x00007fff85557fd0 __CFXNotificationPost + 1008
10 com.apple.CoreFoundation 0x00007fff85544548 _CFXNotificationPostNotification + 200
11 com.apple.Foundation 0x00007fff81258a36 -[NSNotificationCenter postNotificationName:object:userInfo:] + 101
12 com.apple.AppKit 0x00007fff81f5244a -[NSApplication _postDidFinishNotification] + 100
13 com.apple.AppKit 0x00007fff81f5237f -[NSApplication _sendFinishLaunchingNotification] + 66
14 com.apple.AppKit 0x00007fff8201d35d -[NSApplication(NSAppleEventHandling) _handleAEOpen:] + 219
15 com.apple.AppKit 0x00007fff8201cfd9 -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] + 77
16 com.apple.Foundation 0x00007fff812900d6 -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] + 360
17 com.apple.Foundation 0x00007fff8128ff06 _NSAppleEventManagerGenericHandler + 114
18 com.apple.AE 0x00007fff858a132b aeDispatchAppleEvent(AEDesc const*, AEDesc*, unsigned int, unsigned char*) + 162
19 com.apple.AE 0x00007fff858a1224 dispatchEventAndSendReply(AEDesc const*, AEDesc*) + 32
20 com.apple.AE 0x00007fff858a112b aeProcessAppleEvent + 210
21 com.apple.HIToolbox 0x00007fff8520a619 AEProcessAppleEvent + 48
22 com.apple.AppKit 0x00007fff81f22095 _DPSNextEvent + 1191
23 com.apple.AppKit 0x00007fff81f21801 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 155
24 com.apple.AppKit 0x00007fff81ee768f -[NSApplication run] + 395
25 com.apple.AppKit 0x00007fff81ee03b0 NSApplicationMain + 364
26 com.apple.systempreferences 0x0000000100001cf4 0x100000000 + 7412
Thread 1: Dispatch queue: com.apple.libdispatch-manager
0 libSystem.B.dylib 0x00007fff80065c0a kevent + 10
1 libSystem.B.dylib 0x00007fff80067add _dispatch_mgr_invoke + 154
2 libSystem.B.dylib 0x00007fff800677b4 _dispatch_queue_invoke + 185
3 libSystem.B.dylib 0x00007fff800672de _dispatch_worker_thread2 + 252
4 libSystem.B.dylib 0x00007fff80066c08 _pthread_wqthread + 353
5 libSystem.B.dylib 0x00007fff80066aa5 start_wqthread + 13
Thread 2:
0 libSystem.B.dylib 0x00007fff80066a2a __workq_kernreturn + 10
1 libSystem.B.dylib 0x00007fff80066e3c _pthread_wqthread + 917
2 libSystem.B.dylib 0x00007fff80066aa5 start_wqthread + 13
Thread 3 Crashed:
0 libSystem.B.dylib 0x00007fff800bf9ce __semwait_signal_nocancel + 10
1 libSystem.B.dylib 0x00007fff800bf8d0 nanosleep$NOCANCEL + 129
2 libSystem.B.dylib 0x00007fff8011c3ce usleep$NOCANCEL + 57
3 libSystem.B.dylib 0x00007fff8013ba00 abort + 93
4 libstdc++.6.dylib 0x00007fff85d055d2 __tcf_0 + 0
5 libobjc.A.dylib 0x00007fff86dcbb39 _objc_terminate + 100
6 libstdc++.6.dylib 0x00007fff85d03ae1 __cxxabiv1::__terminate(void (*)()) + 11
7 libstdc++.6.dylib 0x00007fff85d03b16 __cxxabiv1::__unexpected(void (*)()) + 0
8 libstdc++.6.dylib 0x00007fff85d03bfc __gxx_exception_cleanup(_Unwind_Reason_Code, _Unwind_Exception*) + 0
9 libobjc.A.dylib 0x00007fff86dc7fa2 object_getIvar + 0
10 com.apple.CoreFoundation 0x00007fff855b05a7 +[NSException raise:format:arguments:] + 103
11 com.apple.CoreFoundation 0x00007fff855b0534 +[NSException raise:format:] + 148
12 com.apple.Foundation 0x00007fff81257e7e -[NSCFArray insertObject:atIndex:] + 119
13 com.apple.systempreferences 0x0000000100004f71 0x100000000 + 20337
14 com.apple.systempreferences 0x0000000100004671 0x100000000 + 18033
15 com.apple.systempreferences 0x00000001000021bb 0x100000000 + 8635
16 com.apple.systempreferences 0x0000000100001f87 0x100000000 + 8071
17 com.apple.systempreferences 0x0000000100001ef1 0x100000000 + 7921
18 libSystem.B.dylib 0x00007fff80088d64 _dispatch_call_block_and_release + 15
19 libSystem.B.dylib 0x00007fff800678d2 _dispatch_queue_drain + 251
20 libSystem.B.dylib 0x00007fff80067734 _dispatch_queue_invoke + 57
21 libSystem.B.dylib 0x00007fff800672de _dispatch_worker_thread2 + 252
22 libSystem.B.dylib 0x00007fff80066c08 _pthread_wqthread + 353
23 libSystem.B.dylib 0x00007fff80066aa5 start_wqthread + 13
Thread 4:
0 libSystem.B.dylib 0x00007fff80066a2a __workq_kernreturn + 10
1 libSystem.B.dylib 0x00007fff80066e3c _pthread_wqthread + 917
2 libSystem.B.dylib 0x00007fff80066aa5 start_wqthread + 13
Thread 5: Dispatch queue: com.apple.root.default-priority
0 libSystem.B.dylib 0x00007fff8004cd7a mach_msg_trap + 10
1 libSystem.B.dylib 0x00007fff8004d3ed mach_msg + 59
2 com.apple.CoreFoundation 0x00007fff8554b902 __CFRunLoopRun + 1698
3 com.apple.CoreFoundation 0x00007fff8554ad8f CFRunLoopRunSpecific + 575
4 com.apple.Foundation 0x00007fff812ea807 -[NSConcreteTask waitUntilExit] + 230
5 ....frameworks.preferencepanes 0x0000000100030f51 -[NSPrefPanesCenter _checkHWForPreferences:] + 233
6 libSystem.B.dylib 0x00007fff80088d64 _dispatch_call_block_and_release + 15
7 libSystem.B.dylib 0x00007fff800672d1 _dispatch_worker_thread2 + 239
8 libSystem.B.dylib 0x00007fff80066c08 _pthread_wqthread + 353
9 libSystem.B.dylib 0x00007fff80066aa5 start_wqthread + 13
Thread 3 crashed with X86 Thread State (64-bit):
rax: 0x000000000000003c rbx: 0x0000000100703760 rcx: 0x0000000100703718 rdx: 0x0000000000000001
rdi: 0x0000000000000c03 rsi: 0x0000000000000000 rbp: 0x0000000100703750 rsp: 0x0000000100703718
r8: 0x0000000000000000 r9: 0x0000000000989680 r10: 0x0000000000000001 r11: 0x0000000000000246
r12: 0x0000000000000000 r13: 0x0000000000000000 r14: 0x00007fff826315d8 r15: 0x00000002000a61c0
rip: 0x00007fff800bf9ce rfl: 0x0000000000000247 cr2: 0x0000000103013600
Binary Images:
0x100000000 - 0x10001eff7 com.apple.systempreferences 7.0 (7.0) <AC669017-E97F-61B7-1303-A21DABA33797> /Applications/System Preferences.app/Contents/MacOS/System Preferences
0x10002d000 - 0x100054ff7 com.apple.frameworks.preferencepanes 13.5 (13.5) <C79DCAF8-302A-843F-BE9B-407DDA682A8E> /System/Library/Frameworks/PreferencePanes.framework/Versions/A/PreferencePanes
0x7fff5fc00000 - 0x7fff5fc3bdef dyld 132.1 (???) <63B47435-46CF-3D2D-F7F4-7FE77DEEFE06> /usr/lib/dyld
0x7fff8004b000 - 0x7fff8004bff7 com.apple.Carbon 150 (152) <B72D29DB-3787-26D1-E842-7AF12F179A83> /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
0x7fff8004c000 - 0x7fff8020dfef libSystem.B.dylib 125.2.11 (compatibility 1.0.0) <9AB4F1D1-89DC-0E8A-DC8E-A4FE4D69DB69> /usr/lib/libSystem.B.dylib
0x7fff8020e000 - 0x7fff805abfe7 com.apple.QuartzCore 1.6.3 (227.37) <16DFF6CD-EA58-CE62-A1D7-5F6CE3D066DD> /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore
0x7fff805ac000 - 0x7fff805e9ff7 libFontRegistry.dylib ??? (???) <4C3293E2-851B-55CE-3BE3-29C425DD5DFF> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ATS.framework/Versions/A/Resources/libFontRegistry.dylib
0x7fff805ea000 - 0x7fff8062dff7 libRIP.A.dylib 545.0.0 (compatibility 64.0.0) <5FF3D7FD-84D8-C5FA-D640-90BB82EC651D> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/Resources/libRIP.A.dylib
0x7fff8062e000 - 0x7fff80678ff7 com.apple.Metadata 10.6.3 (507.15) <2EF19055-D7AE-4D77-E589-7B71B0BC1E59> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadat a.framework/Versions/A/Metadata
0x7fff80679000 - 0x7fff80679ff7 com.apple.CoreServices 44 (44) <DC7400FB-851E-7B8A-5BF6-6F50094302FB> /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
0x7fff8067a000 - 0x7fff8067bff7 com.apple.audio.units.AudioUnit 1.6.7 (1.6.7) <53299948-2554-0F8F-7501-04B34E49F6CF> /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
0x7fff806ca000 - 0x7fff806d1fff com.apple.OpenDirectory 10.6 (10.6) <4200CFB0-DBA1-62B8-7C7C-91446D89551F> /System/Library/Frameworks/OpenDirectory.framework/Versions/A/OpenDirectory
0x7fff80711000 - 0x7fff8071fff7 libkxld.dylib ??? (???) <8145A534-95CC-9F3C-B78B-AC9898F38C6F> /usr/lib/system/libkxld.dylib
0x7fff80730000 - 0x7fff80747fff com.apple.ImageCapture 6.1 (6.1) <79AB2131-2A6C-F351-38A9-ED58B25534FD> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture. framework/Versions/A/ImageCapture
0x7fff8092a000 - 0x7fff80994fe7 libvMisc.dylib 268.0.1 (compatibility 1.0.0) <AF0EA96D-000F-8C12-B952-CB7E00566E08> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libvMisc.dylib
0x7fff80995000 - 0x7fff80cc9fef com.apple.CoreServices.CarbonCore 861.39 (861.39) <1386A24D-DD15-5903-057E-4A224FAF580B> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonC ore.framework/Versions/A/CarbonCore
0x7fff80cca000 - 0x7fff80e88fff libicucore.A.dylib 40.0.0 (compatibility 1.0.0) <4274FC73-A257-3A56-4293-5968F3428854> /usr/lib/libicucore.A.dylib
0x7fff80e89000 - 0x7fff80e89ff7 com.apple.Accelerate.vecLib 3.6 (vecLib 3.6) <4CCE5D69-F1B3-8FD3-1483-E0271DB2CCF3> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/vecLib
0x7fff80e8a000 - 0x7fff80eb5ff7 libxslt.1.dylib 3.24.0 (compatibility 3.0.0) <8AB4CA9E-435A-33DA-7041-904BA7FA11D5> /usr/lib/libxslt.1.dylib
0x7fff80eb6000 - 0x7fff80f77fff libFontParser.dylib ??? (???) <A00BB0A7-E46C-1D07-1391-194745566C7E> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ATS.framework/Versions/A/Resources/libFontParser.dylib
0x7fff80f78000 - 0x7fff8104cfe7 com.apple.CFNetwork 454.12.4 (454.12.4) <C83E2BA1-1818-B3E8-5334-860AD21D1C80> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwo rk.framework/Versions/A/CFNetwork
0x7fff8104d000 - 0x7fff81053ff7 IOSurface ??? (???) <04EDCEDE-E36F-15F8-DC67-E61E149D2C9A> /System/Library/Frameworks/IOSurface.framework/Versions/A/IOSurface
0x7fff81054000 - 0x7fff81074ff7 com.apple.DirectoryService.Framework 3.6 (621.11) <AD76C757-6701-BDB5-631E-1CB77D669586> /System/Library/Frameworks/DirectoryService.framework/Versions/A/DirectoryServi ce
0x7fff81075000 - 0x7fff81105fff com.apple.SearchKit 1.3.0 (1.3.0) <4175DC31-1506-228A-08FD-C704AC9DF642> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchK it.framework/Versions/A/SearchKit
0x7fff81106000 - 0x7fff8123bfff com.apple.audio.toolbox.AudioToolbox 1.6.7 (1.6.7) <E5D7DBDB-6DDF-E6F9-C71C-86F4520EE5A3> /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
0x7fff8123c000 - 0x7fff81250fff libGL.dylib ??? (???) <2ECE3B0F-39E1-3938-BF27-7205C6D0358B> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
0x7fff81251000 - 0x7fff814d3fff com.apple.Foundation 6.6.8 (751.63) <E10E4DB4-9D5E-54A8-3FB6-2A82426066E4> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
0x7fff814d4000 - 0x7fff8151cff7 libvDSP.dylib 268.0.1 (compatibility 1.0.0) <98FC4457-F405-0262-00F7-56119CA107B6> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libvDSP.dylib
0x7fff8152f000 - 0x7fff81d39fe7 libBLAS.dylib 219.0.0 (compatibility 1.0.0) <FC941ECB-71D0-FAE3-DCBF-C5A619E594B8> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libBLAS.dylib
0x7fff81df1000 - 0x7fff81e91fff com.apple.LaunchServices 362.3 (362.3) <B90B7C31-FEF8-3C26-BFB3-D8A48BD2C0DA> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchS ervices.framework/Versions/A/LaunchServices
0x7fff81e92000 - 0x7fff81ed3fef com.apple.CoreMedia 0.484.60 (484.60) <6B73A514-C4D5-8DC7-982C-4E4F0231ED77> /System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia
0x7fff81ed4000 - 0x7fff81ed7ff7 libCoreVMClient.dylib ??? (???) <E03D7C81-A3DA-D44A-A88A-DDBB98AF910B> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCoreVMClien t.dylib
0x7fff81ed8000 - 0x7fff81eddfff libGFXShared.dylib ??? (???) <1D0D3531-9561-632C-D620-1A8652BEF5BC> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGFXShared.d ylib
0x7fff81ede000 - 0x7fff828d8ff7 com.apple.AppKit 6.6.8 (1038.36) <4CFBE04C-8FB3-B0EA-8DDB-7E7D10E9D251> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
0x7fff828d9000 - 0x7fff828ddff7 libCGXType.A.dylib 545.0.0 (compatibility 64.0.0) <DB710299-B4D9-3714-66F7-5D2964DE585B> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/Resources/libCGXType.A.dylib
0x7fff82947000 - 0x7fff82a5efef libxml2.2.dylib 10.3.0 (compatibility 10.0.0) <1B27AFDD-DF87-2009-170E-C129E1572E8B> /usr/lib/libxml2.2.dylib
0x7fff82a5f000 - 0x7fff82a78fff com.apple.CFOpenDirectory 10.6 (10.6) <CCF79716-7CC6-2520-C6EB-A4F56AD0A207> /System/Library/Frameworks/OpenDirectory.framework/Versions/A/Frameworks/CFOpen Directory.framework/Versions/A/CFOpenDirectory
0x7fff82a79000 - 0x7fff82b2efe7 com.apple.ink.framework 1.3.3 (107) <8C36373C-5473-3A6A-4972-BC29D504250F> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework /Versions/A/Ink
0x7fff83dd8000 - 0x7fff83e95fff com.apple.CoreServices.OSServices 359.2 (359.2) <BBB8888E-18DE-5D09-3C3A-F4C029EC7886> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServi ces.framework/Versions/A/OSServices
0x7fff83e96000 - 0x7fff83e96ff7 com.apple.vecLib 3.6 (vecLib 3.6) <96FB6BAD-5568-C4E0-6FA7-02791A58B584> /System/Library/Frameworks/vecLib.framework/Versions/A/vecLib
0x7fff83e97000 - 0x7fff842dafef libLAPACK.dylib 219.0.0 (compatibility 1.0.0) <0CC61C98-FF51-67B3-F3D8-C5E430C201A9> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libLAPACK.dylib
0x7fff842db000 - 0x7fff842f1fef libbsm.0.dylib ??? (???) <42D3023A-A1F7-4121-6417-FCC6B51B3E90> /usr/lib/libbsm.0.dylib
0x7fff8456d000 - 0x7fff84588ff7 com.apple.openscripting 1.3.1 (???) <9D50701D-54AC-405B-CC65-026FCB28258B> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting .framework/Versions/A/OpenScripting
0x7fff847f3000 - 0x7fff84864ff7 com.apple.AppleVAFramework 4.10.27 (4.10.27) <6CDBA3F5-6C7C-A069-4716-2B6C3AD5001F> /System/Library/PrivateFrameworks/AppleVA.framework/Versions/A/AppleVA
0x7fff84865000 - 0x7fff849a3fff com.apple.CoreData 102.1 (251) <9DFE798D-AA52-6A9A-924A-DA73CB94D81A> /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData
0x7fff851d6000 - 0x7fff854d4fff com.apple.HIToolbox 1.6.5 (???) <AD1C18F6-51CB-7E39-35DD-F16B1EB978A8> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.fra mework/Versions/A/HIToolbox
0x7fff854d5000 - 0x7fff854e7fe7 libsasl2.2.dylib 3.15.0 (compatibility 3.0.0) <76B83C8D-8EFE-4467-0F75-275648AFED97> /usr/lib/libsasl2.2.dylib
0x7fff854e8000 - 0x7fff854fefe7 com.apple.MultitouchSupport.framework 207.11 (207.11) <8233CE71-6F8D-8B3C-A0E1-E123F6406163> /System/Library/PrivateFrameworks/MultitouchSupport.framework/Versions/A/Multit ouchSupport
0x7fff854ff000 - 0x7fff85676fe7 com.apple.CoreFoundation 6.6.6 (550.44) <BB4E5158-E47A-39D3-2561-96CB49FA82D4> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x7fff85677000 - 0x7fff85791fef libGLProgrammability.dylib ??? (???) <8A4B86E3-0FA7-8684-2EF2-C5F8079428DB> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLProgramma bility.dylib
0x7fff85792000 - 0x7fff857e5ff7 com.apple.HIServices 1.8.3 (???) <F6E0C7A7-C11D-0096-4DDA-2C77793AA6CD> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ HIServices.framework/Versions/A/HIServices
0x7fff857e6000 - 0x7fff85827fff com.apple.SystemConfiguration 1.10.8 (1.10.2) <78D48D27-A9C4-62CA-2803-D0BBED82855A> /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfi guration
0x7fff85828000 - 0x7fff8582cff7 libmathCommon.A.dylib 315.0.0 (compatibility 1.0.0) <95718673-FEEE-B6ED-B127-BCDBDB60D4E5> /usr/lib/system/libmathCommon.A.dylib
0x7fff8582d000 - 0x7fff85850fff com.apple.opencl 12.3.6 (12.3.6) <42FA5783-EB80-1168-4015-B8C68F55842F> /System/Library/Frameworks/OpenCL.framework/Versions/A/OpenCL
0x7fff85851000 - 0x7fff8589dfff libauto.dylib ??? (???) <F7221B46-DC4F-3153-CE61-7F52C8C293CF> /usr/lib/libauto.dylib
0x7fff8589e000 - 0x7fff858d9fff com.apple.AE 496.5 (496.5) <208DF391-4DE6-81ED-C697-14A2930D1BC6> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.fram ework/Versions/A/AE
0x7fff858dc000 - 0x7fff85995fff libsqlite3.dylib 9.6.0 (compatibility 9.0.0) <2C5ED312-E646-9ADE-73A9-6199A2A43150> /usr/lib/libsqlite3.dylib
0x7fff85996000 - 0x7fff85a22fef SecurityFoundation ??? (???) <84778E7D-B73C-781A-CD71-7EF5E7EA8EF5> /System/Library/Frameworks/SecurityFoundation.framework/Versions/A/SecurityFoun dation
0x7fff85a23000 - 0x7fff85a6cfef libGLU.dylib ??? (???) <1C050088-4AB2-2BC2-62E6-C969F925A945> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib
0x7fff85afd000 - 0x7fff85afdff7 com.apple.ApplicationServices 38 (38) <10A0B9E9-4988-03D4-FC56-DDE231A02C63> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Application Services
0x7fff85afe000 - 0x7fff85b09ff7 com.apple.speech.recognition.framework 3.11.1 (3.11.1) <3D65E89B-FFC6-4AAF-D5CC-104F967C8131> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecogni tion.framework/Versions/A/SpeechRecognition
0x7fff85b0a000 - 0x7fff85b3bfff libGLImage.dylib ??? (???) <7F102A07-E4FB-9F52-B2F6-4E2D2383CA13> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dyl ib
0x7fff85b77000 - 0x7fff85bf6fe7 com.apple.audio.CoreAudio 3.2.6 (3.2.6) <79E256EB-43F1-C7AA-6436-124A4FFB02D0> /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
0x7fff85cb9000 - 0x7fff85d36fef libstdc++.6.dylib 7.9.0 (compatibility 7.0.0) <35ECA411-2C08-FD7D-11B1-1B7A04921A5C> /usr/lib/libstdc++.6.dylib
0x7fff85d37000 - 0x7fff85d7cfff com.apple.CoreMediaIOServices 140.0 (1496) <D93293EB-0B84-E97D-E78C-9FE8D48AF58E> /System/Library/PrivateFrameworks/CoreMediaIOServices.framework/Versions/A/Core MediaIOServices
0x7fff85d7d000 - 0x7fff85d9aff7 libPng.dylib ??? (???) <6D8E515B-E0A2-2BA1-9CAC-8CB8A8B35879> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libPng.dylib
0x7fff85dd5000 - 0x7fff85e0ffff libcups.2.dylib 2.8.0 (compatibility 2.0.0) <7982734A-B66B-44AA-DEEC-364D2C10009B> /usr/lib/libcups.2.dylib
0x7fff85e10000 - 0x7fff85e1dfe7 libCSync.A.dylib 545.0.0 (compatibility 64.0.0) <1C35FA50-9C70-48DC-9E8D-2054F7A266B1> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/Resources/libCSync.A.dylib
0x7fff85e1e000 - 0x7fff85e1eff7 com.apple.Cocoa 6.6 (???) <68B0BE46-6E24-C96F-B341-054CF9E8F3B6> /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa
0x7fff85e1f000 - 0x7fff85e66ff7 com.apple.coreui 2 (114) <923E33CC-83FC-7D35-5603-FB8F348EE34B> /System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/CoreUI
0x7fff85e67000 - 0x7fff85ea8fef com.apple.QD 3.36 (???) <5DC41E81-32C9-65B2-5528-B33E934D5BB4> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ QD.framework/Versions/A/QD
0x7fff85fae000 - 0x7fff85fe1ff7 libTrueTypeScaler.dylib ??? (???) <69D4A213-45D2-196D-7FF8-B52A31DFD329> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ATS.framework/Versions/A/Resources/libTrueTypeScaler.dylib
0x7fff85fe2000 - 0x7fff86429fef com.apple.RawCamera.bundle 3.7.1 (570) <5AFA87CA-DC3D-F84E-7EA1-6EABA8807766> /System/Library/CoreServices/RawCamera.bundle/Contents/MacOS/RawCamera
0x7fff8642a000 - 0x7fff86439fff com.apple.NetFS 3.2.2 (3.2.2) <7CCBD70E-BF31-A7A7-DB98-230687773145> /System/Library/Frameworks/NetFS.framework/Versions/A/NetFS
0x7fff8643a000 - 0x7fff8643ffff libGIF.dylib ??? (???) <201B8077-B5CC-11AA-E1B0-1D057ABE416A> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libGIF.dylib
0x7fff86440000 - 0x7fff864f0fff edu.mit.Kerberos 6.5.11 (6.5.11) <085D80F5-C9DC-E252-C21B-03295E660C91> /System/Library/Frameworks/Kerberos.framework/Versions/A/Kerberos
0x7fff864f1000 - 0x7fff86512fff libresolv.9.dylib 41.0.0 (compatibility 1.0.0) <9F322F47-0584-CB7D-5B73-9EBD670851CD> /usr/lib/libresolv.9.dylib
0x7fff86513000 - 0x7fff86683fff com.apple.QTKit 7.7 (1787) <AD4C0243-16DA-F7EE-7202-E9EE7198223F> /System/Library/Frameworks/QTKit.framework/Versions/A/QTKit
0x7fff86684000 - 0x7fff8668aff7 com.apple.CommerceCore 1.0 (9.1) <3691E9BA-BCF4-98C7-EFEC-78DA6825004E> /System/Library/PrivateFrameworks/CommerceKit.framework/Versions/A/Frameworks/C ommerceCore.framework/Versions/A/CommerceCore
0x7fff8668b000 - 0x7fff86849ff7 com.apple.ImageIO.framework 3.0.4 (3.0.4) <0A4F51A1-4502-767B-8A4E-F14C6214EF88> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/ImageIO
0x7fff8687b000 - 0x7fff8699afe7 libcrypto.0.9.8.dylib 0.9.8 (compatibility 0.9.8) <14115D29-432B-CF02-6B24-A60CC533A09E> /usr/lib/libcrypto.0.9.8.dylib
0x7fff8699b000 - 0x7fff86a80fef com.apple.DesktopServices 1.5.11 (1.5.11) <39FAA3D2-6863-B5AB-AED9-92D878EA2438> /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/Desk topServicesPriv
0x7fff86a81000 - 0x7fff86a81ff7 com.apple.Accelerate 1.6 (Accelerate 1.6) <15DF8B4A-96B2-CB4E-368D-DEC7DF6B62BB> /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
0x7fff86ba2000 - 0x7fff86ba3ff7 com.apple.TrustEvaluationAgent 1.1 (1) <5952A9FA-BC2B-16EF-91A7-43902A5C07B6> /System/Library/PrivateFrameworks/TrustEvaluationAgent.framework/Versions/A/Tru stEvaluationAgent
0x7fff86cc1000 - 0x7fff86d21fe7 com.apple.framework.IOKit 2.0 (???) <4F071EF0-8260-01E9-C641-830E582FA416> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
0x7fff86d22000 - 0x7fff86d4afff com.apple.DictionaryServices 1.1.2 (1.1.2) <E9269069-93FA-2B71-F9BA-FDDD23C4A65E> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Diction aryServices.framework/Versions/A/DictionaryServices
0x7fff86d68000 - 0x7fff86dbdff7 com.apple.framework.familycontrols 2.0.2 (2020) <F09541B6-5E28-1C01-C1AE-F6A2508670C7> /System/Library/PrivateFrameworks/FamilyControls.framework/Versions/A/FamilyCon trols
0x7fff86dbe000 - 0x7fff86e74ff7 libobjc.A.dylib 227.0.0 (compatibility 1.0.0) <03140531-3B2D-1EBA-DA7F-E12CC8F63969> /usr/lib/libobjc.A.dylib
0x7fff86e75000 - 0x7fff86e77fff com.apple.print.framework.Print 6.1 (237.1) <CA8564FB-B366-7413-B12E-9892DA3C6157> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framewo rk/Versions/A/Print
0x7fff86fb6000 - 0x7fff874bcff7 com.apple.VideoToolbox 0.484.60 (484.60) <F55EF548-56E4-A6DF-F3C9-6BA4CFF5D629> /System/Library/PrivateFrameworks/VideoToolbox.framework/Versions/A/VideoToolbo x
0x7fff8783c000 - 0x7fff878baff7 com.apple.CoreText 151.10 (???) <54961997-55D8-DC0F-2634-674E452D5A8E> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreText.framework/Versions/A/CoreText
0x7fff878bb000 - 0x7fff878ccff7 libz.1.dylib 1.2.3 (compatibility 1.0.0) <97019C74-161A-3488-41EC-A6CA8738418C> /usr/lib/libz.1.dylib
0x7fff878cd000 - 0x7fff8798efef com.apple.ColorSync 4.6.6 (4.6.6) <BB2C5813-C61D-3CBA-A8F7-0E59E46EBEE8> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ColorSync.framework/Versions/A/ColorSync
0x7fff87c96000 - 0x7fff87dbeff7 com.apple.MediaToolbox 0.484.60 (484.60) <F921A5E6-E260-03B4-1458-E5814FA1924D> /System/Library/PrivateFrameworks/MediaToolbox.framework/Versions/A/MediaToolbo x
0x7fff87dbf000 - 0x7fff87e0eff7 com.apple.DirectoryService.PasswordServerFramework 6.1 (6.1) <01B370FB-D524-F660-3826-E85B7F0D85CD> /System/Library/PrivateFrameworks/PasswordServer.framework/Versions/A/PasswordS erver
0x7fff87e59000 - 0x7fff87e68fef com.apple.opengl 1.6.13 (1.6.13) <516098B3-4517-8A55-64BB-195CDAA5334D> /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
0x7fff87e69000 - 0x7fff87eb8fef libTIFF.dylib ??? (???) <1E2593D1-A7F6-84C6-DF8F-0B46AE445926> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libTIFF.dylib
0x7fff87ecb000 - 0x7fff88153fef com.apple.security 6.1.2 (55002) <015C9A08-3D07-9462-8E91-DB1924349621> /System/Library/Frameworks/Security.framework/Versions/A/Security
0x7fff88154000 - 0x7fff88159ff7 com.apple.CommonPanels 1.2.4 (91) <4D84803B-BD06-D80E-15AE-EFBE43F93605> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels. framework/Versions/A/CommonPanels
0x7fff8815a000 - 0x7fff8816eff7 com.apple.speech.synthesis.framework 3.10.35 (3.10.35) <621B7415-A0B9-07A7-F313-36BEEDD7B132> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ SpeechSynthesis.framework/Versions/A/SpeechSynthesis
0x7fff8816f000 - 0x7fff88172ff7 com.apple.securityhi 4.0 (36638) <0CCEB8E0-8D7E-5046-F4E2-5F66D24B6600> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.fr amework/Versions/A/SecurityHI
0x7fff88173000 - 0x7fff88198ff7 com.apple.CoreVideo 1.6.2 (45.6) <E138C8E7-3CB6-55A9-0A2C-B73FE63EA288> /System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo
0x7fff88272000 - 0x7fff88274fff libRadiance.dylib ??? (???) <A9DB4D5D-4072-971B-DEF6-DDE645F415EA> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libRadiance.dylib
0x7fff88275000 - 0x7fff88352fff com.apple.vImage 4.1 (4.1) <C3F44AA9-6F71-0684-2686-D3BBC903F020> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.fr amework/Versions/A/vImage
0x7fff88353000 - 0x7fff8839cff7 com.apple.securityinterface 4.0.1 (40418) <E2DC796D-84EC-48F5-34A9-DF614573BE74> /System/Library/Frameworks/SecurityInterface.framework/Versions/A/SecurityInter face
0x7fff8839d000 - 0x7fff883c4ff7 libJPEG.dylib ??? (???) <46A413EA-4FD1-A050-2EF0-6279F3EAD581> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libJPEG.dylib
0x7fff88644000 - 0x7fff88d40ff7 com.apple.CoreGraphics 1.545.0 (???) <58D597B1-EB3B-710E-0B8C-EC114D54E11B> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/CoreGraphics
0x7fff88d41000 - 0x7fff88d42fff liblangid.dylib ??? (???) <EA4D1607-2BD5-2EE2-2A3B-632EEE5A444D> /usr/lib/liblangid.dylib
0x7fff88d50000 - 0x7fff88deafff com.apple.ApplicationServices.ATS 275.19 (???) <FBC907AF-C3EF-CAF1-3705-13DC91B29114> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ATS.framework/Versions/A/ATS
0x7fff88deb000 - 0x7fff88e70ff7 com.apple.print.framework.PrintCore 6.3 (312.7) <CDFE82DD-D811-A091-179F-6E76069B432D> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ PrintCore.framework/Versions/A/PrintCore
0x7fff88e71000 - 0x7fff88e86ff7 com.apple.LangAnalysis 1.6.6 (1.6.6) <1AE1FE8F-2204-4410-C94E-0E93B003BEDA> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ LangAnalysis.framework/Versions/A/LangAnalysis
0x7fff88e93000 - 0x7fff88e99ff7 com.apple.DiskArbitration 2.3 (2.3) <857F6E43-1EF4-7D53-351B-10DE0A8F992A> /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
0x7fff88f66000 - 0x7fff88f69fff com.apple.help 1.3.2 (41.1) <BD1B0A22-1CB8-263E-FF85-5BBFDE3660B9> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framewor k/Versions/A/Help
0x7fffffe00000 - 0x7fffffe01fff libSystem.B.dylib ??? (???) <9AB4F1D1-89DC-0E8A-DC8E-A4FE4D69DB69> /usr/lib/libSystem.B.dylib
Model: MacBookPro5,5, BootROM MBP55.00AC.B03, 2 processors, Intel Core 2 Duo, 2.26 GHz, 4 GB, SMC 1.47f2
Graphics: NVIDIA GeForce 9400M, NVIDIA GeForce 9400M, PCI, 256 MB
Memory Module: global_name
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x8D), Broadcom BCM43xx 1.0 (5.10.131.42.4)
Bluetooth: Version 2.4.5f3, 2 service, 19 devices, 1 incoming serial ports
Network Service: AirPort, AirPort, en1
Serial ATA Device: Hitachi HTS545032B9SA02, 298.09 GB
Serial ATA Device: HL-DT-ST DVDRW GS23N
USB Device: Built-in iSight, 0x05ac (Apple Inc.), 0x8507, 0x24400000 / 2
USB Device: Internal Memory Card Reader, 0x05ac (Apple Inc.), 0x8403, 0x26500000 / 2
USB Device: BRCM2046 Hub, 0x0a5c (Broadcom Corp.), 0x4500, 0x06100000 / 2
USB Device: Bluetooth USB Host Controller, 0x05ac (Apple Inc.), 0x8213, 0x06110000 / 3
USB Device: Apple Internal Keyboard / Trackpad, 0x05ac (Apple Inc.), 0x0237, 0x04600000 / 3
USB Device: IR Receiver, 0x05ac (Apple Inc.), 0x8242, 0x04500000 / 2
Please help! xxxThe Aperture 3.4 installer has a problem and may cause an incomplete install. You should remove your current installation and reinstall from your original installation media, then upgrade again, see this support article by Apple:
Aperture 3.4: May quit unexpectedly on launch after updating
Post back, if there are still problems after reinstalling.
Regards
Léonie -
How to restore from Time Machine WITHOUT install discs using a second Mac
It's a question that is asked repeatedly all over the web by Mac users like me that bought in to Time Machine (TM) on the assumption that if their computer died one day it would be a piece of cake to restore from it, only for that day to come and then to be told "ahh, okay the first thing is to get your computers install discs..." (loud crashing sound of world falling around ears).
I've never been able to afford a new Mac and both of my machines were bought second-hand. Neither came with Leopard (both have Tiger and have been upgraded to Leopard via the net). This was never supposed to be a problem as I've been backing up with TM. However it appears that Tiger discs are as much use as an inflatable dart board when it comes to using TM. So I've been faced with the possibility of having to spend £130 (about two hundred Pres Sheets, Yankees) on the Leopard install discs just so that I can have the option of restoring from TM. Bonkers.
However after much nashing of teeth, a very long weekend learning all sorts of things about 'Target Mode', 'Single User Mode', 'Verbose Mode', 'Open Source 9' etc the following solution has worked without the need to go out and buy those over-priced discs...
What you will need:
1 broken Mac requiring restoration
1 second donor Mac running Leopard (or Snow Leopard so long as the broken Mac can run it)
1 firewire cable with the correct fitting at either end to attach both Macs together
1 Time Machine backup
Note: The following is for when you have given up trying to boot from your hard drive. In my case I couldn't boot in to Safe Mode etc. so was forced to format my drive and re-import everything. If you've read this far I'm assuming your at the same point as well and have tried everything else that's out there first.
Also - both my Macs are Power PC's so can't run Snow Leopard, so I can't say 100% this will work with SL (Intel) machines. From what I've read Snow Leopard will work with this procedure too, but if you've found differently please feel free to add your experiences below...
STEP ONE: Format the corrupt Hard Drive or replace with a fresh HDD
*Link the two computers with a firewire.
*If you're replacing your HDD, remove your corrupted hard drive from the 'broken' machine and insert a new one.
*Power up the broken Mac whilst holding down the 'T' key. This will start it up in Target Mode and you'll get a nice firewire symbol floating around that machine's screen.
*Power up the second 'healthy' Mac. This will be our 'donor' machine. When it starts up after a few seconds you will see the hard drive of the broken Mac appear on the donor Mac's desktop.
*Using your donor Mac's 'Disc Utility', format the broken Mac's hard drive (now's the time to partition it etc. if you want to).
STEP TWO: Clone your donor Mac
Your broken Mac is no longer broken and now needs a new OS. But you don't have the discs, right? Well get this... you can clone your donor mac on to your machine, even if they are totally different i.e. a laptop on to a tower.
*Again using Disc Utility, click on your donor Mac's hard drive. The restore tab appears as an option.
*Click on restore and drag the donor Mac's hard drive that contains the operating system in to the Source box.
*Drag the newly formatted hard drive on the broken Mac in to the Destination box.
*Click restore. Your donor Mac's hard drive will now be 'cloned' on to your no-longer-broken Mac. Once this is done, eject the first Mac's hard drive from your donor Mac's desktop. You no longer need the donor Mac.
Ta daa! Your machine now starts up happy and smily again. Time to restore all that stuff that's been sat on your Time Machine drive...
STEP 3: Restore from Time Machine using Migration Assistant
This is the really clever part that prompted me to write this piece in the first place. Time Machine IS accessible without those Leopard install discs you don't have. You need to use something called 'Migration Assistant'.
*Start up your machine as normal and you'll see it is an exact clone of the donor machine. Weird huh?
*Attach your Time Machine hard drive. It will show up as an icon on the desktop and because of it's size, you'll be asked if you want to use it as a Time Machine backup. Err, NO YOU DON'T! Click 'cancel'.
*Open Migration Assistant (if you can't find it just type it in to Finder and click). There are three options, the middle one being to restore from TM or another disc. Yup, you want that one.
*Migration Assistant will now ask you what you want to restore in stages, firstly User Accounts, then folders, Apps etc. It will even import internet settings
And that's you done. Let Migration Assistant do it's thang... altogether I had about 140gb to restore, so it wasn't exactly speedy. This wasn't helped by the fact that my TM hard drive is connected via USB (yes, I know). Just leave it alone and it'll whirr happily away...
Before I go - you don't have an option of when to restore from, and will restore from the last Time Machine save. At least then you should be able to access TM and go 'backwards' if you need to.
Also - for a Mac expert, the above will be up there with 'Spot Goes To The Farm' in terms of complexity. However, for the rest of us the above is only available in fragments all over the net. By far the most common response to 'how do I restore from Time Machine without install discs' is 'you can't'. If I'd found the above information in one place I could have saved a lot of hair pulling and swearing over the last couple of days, so forgive me for sharing this workaround with the rest of the world. Meanwhile your expertise will come in very handy for the inevitable questions that will get posted below, so please feel free to help those people that won't be sure if this solution is the right one for them. I'm no expert, I just want to help people that were stuck in the same situation (and looking at the web, there's a LOT of them).
Hope this is of use to someone, thanks and *good luck*!Most maintenance and repair, restore and install procedures require the use
of the correct OS X install DVD; be it an original machine-specific restore/install
disc set or a later retail non-specific general install disc set.
By having an unsupported system, perhaps installed via an illegal download or
other file-sharing scheme, where no retail official discs are involved and the
initial upgrade was done by other means outside of the License Agreements,
you are asking us to discuss a matter of illegal installation and use of a product.
There are no legal complete OS X system download upgrades online; only bits
that are update segments to a retail or as-shipped machine's original OS X install.
+{Or an installation where a previous owner had correct retail upgrade discs, &+
+chose to not include them with the re-sale of the computer it was installed in.}+
However, to answer the initial question. To get and use an externally enclosed
hard drive in suitable boot-capable housing, and get a free-running Clone
Utility (download online; often a donation-ware product, runs free) you can
make a bootable backup of everything in your computer to an external HDD.
This is the way to make a complete backup to restore all functions to the computer.
The Time Machine has some limits, in that it can restore only that which it saves.
It does not make a bootable clone of your entire computer system with apps and
your files, to an external drive device. A clone can. And some of the clone utility's
settings can also backup changes to an external drive's system; if that other drive
is attached to the computer correctly.
Carbon Copy Cloner, from Bombich Software; and also SuperDuper, another of
the most known software names you can download and use to clone boot-capable
system backups of your computer's hard disk drive contents, are often cited.
However you resolve the matter of the running OS X system in your computer,
derived from what appears to be questionable means, is part of the initial issue.
Since you do need to be able to fix an existing installation by unmounting the
computer's hard disk drive and run the computer from the other (install disc or
system clone) while it is Unmounted; and use the correct Disk Utility version to
help diagnose and perhaps be able to fix it. You can't use a Tiger version Disk
Utility to fix a Leopard installation, and so on.
So, the situation and replies as far as they can go (since the matter does
constitute an illegal system, if it was arrived at without correct discs) is a
limited one. And file sharing of copied Mac OS X (and other) software is
also considered illegal.
And, one way to get odd malware and unusual stuff, is to get an unauthorized
system upgrade from an illegal source online. You never know what's inside it.
The other reply was not a personal attack; the matter is of legal status and as
you have a product with a questionable system, the answer is to correct it.
And if you want to save everything in your computer, make a clone to a suitable
externally enclosed self-powered boot capable hard disk drive. With older PPC
Macs, that would best be to one with FireWire and the Oxford-type control chips.
However that works out...
Good luck & happy computing! -
I have an alias of one of my external hard drives in my trash. When I tried to delete it, it showed that I was deleting 80,000 files and counting. I stopped the delete process and when I clicked on "show original" all my external H.D.'s and my Mac hard drive show up. How do I delete this alias from the trash without loosing all my files? When I tried to drag it back to the desk top, it just made a duplicate and remained in the trash. When I turned off the external H.D., the trash was then empty. Tried rebooting the computer and then turning the external hard drive back on and the alias shows up in the trash again. Much help appreciated.
RichIn Finder's Menu, select Go menu>Go to Folder, and go to "/volumes". (no quotes)
Volumes is where an alias to your hard drive ("/" at boot) is placed at startup, and where all the "mount points" for auxiliary drives are created for you to access them. This folder is normally hidden from view.
Drives with an extra 1 on the end have a side-effect of mounting a drive with the same name as the system already think exists. Try trashing the duplicates with a 1 or 2 if there are no real files in them, and reboot.
If it does contain data...
http://support.apple.com/kb/TS2474 -
How to push data from BW into SAP R/3 system???
Hello,
We have faced a problem. We need to push compressed sales data from BW to SAP R/3 system. But We don't know how to do it.
Does it exist the standard instruments for it (without ABAP development)?
How to integrate BW and SAP system?
We will be much obliged you for your recomendations and advices.Hi Igor,
I'm not aware of any standard out of the box mechanisms for moving Sales data back into SAP ERP. There are some delivered "retractors" for business scenarios like financial planning and consolidations where updated data is sent back to SAP ERP in a closed loop scenario. These retractors have been written in ABAP.
I would suggest that you search the latest BI content to see if there is anything for sales data retraction. There might also be information in SAP note on how to do this in code.
To send data from BI, you can also use the 'open hub' feature to extract the BI data to a DB table or file for example. This could then be read by a program to load SAP ERP. The loading would have to be custom development.
Sorry I can't help you more - I fear you will most definitely have some custom development in this case.
Cheers,
Mike.
Maybe you are looking for
-
How to use non-Unicode mode in VB6 with ADO.
I'm using ADO on top of OraOLEDB to connect to Oracle 9.2. The database characterset is AL32UTF8. Since my client can't handle Unicode characters, I need a character conversion. However, arcording to the OraOLEDB document( which can be obtained here
-
WD Java application is displaying ABAP MESSAGE NUMBER, Not the text
HI We have WD Java applications running on Adpeted RFC model, Now the Success/Error Messages coming from backend are not displayed in the text, Message number is shown rather. In ABAP side, the language pool is maintained only for the danish language
-
Safari Not Opening - or allowing a reinstall
This morning, Safari stopped opening. Although the icon bounced - no Safari. So deciding to reinstall I downloaded 3.1.1 - however attempting to install gives me an error that it cannot install to the hard drive as it requires 10.5.2 or higher. The o
-
I have a MBA with yosemite 10.10.1 installed & iPhone 5C 16 GB with iOS 8.1, But when I am trying to transfer the file its giving an error that the MBA has declined the request and same it happens with the iPhone too. I had a word with the technical
-
No flash videos playing in any browser
I am having this issue for over a month or two now, i can't play any videos on any browser, i tried firefox, then IE , then chrome, i re-installed all of them, updated flash, updated real player, downgraded flash , cleared browsing history,disable ha