I know, I know. It's another Mortgage Calculator question. I'm sure you all are sick of them. But I don't know where else to turn, our instructor is not helpful at all and never even bothers to respond to our questions.
Anyway so the assignment is:
Write the program in Java (with a graphical user interface) so that it will allow the user to select which way they want to calculate a mortgage: by input of the amount of the mortgage, the term of the mortgage, and the interest rate of the mortgage payment or by input of the amount of a mortgage and then select from a menu of mortgage loans:
- 7 year at 5.35%
- 15 year at 5.5 %
- 30 year at 5.75%
In either case, display the mortgage payment amount and then, list the loan balance and interest paid for each payment over the term of the loan. Allow the user to loop back and enter a new amount and make a new selection, or quit. Insert comments in the program to document the program.
Here is what I have so far:
import java.text.*;
import java.math.*;
import java.io.*;
import java.util.*;
import java.awt.event.*;
import java.awt.*;
import javax.swing.*;
public class MortgageCalcv7 extends javax.swing.JFrame
//new form creation
public MortgageCalcv7()
initComponents();
setLocation(400,250);
// New method to initialize the form
private void initComponents()// starts the java components initialization
amtofloan = new javax.swing.JLabel();
text1 = new javax.swing.JTextField();
term = new javax.swing.JLabel();
calculatebutt1 = new javax.swing.JButton();
amt1 = new javax.swing.JLabel();
panescroll = new javax.swing.JScrollPane();
textarea1 = new javax.swing.JTextArea();
quitbutt1 = new javax.swing.JButton();
clearbutton = new javax.swing.JButton();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setTitle("McBride Financial Services Mortgage Calculator"); //displays title bar text
amtofloan.setText("Enter the dollar amount of your Mortgage:"); // text area title for where user puts dollar amount of mortgage
term.setText("Select Your Term and Interest Rate:"); // text area title for where user puts in term and interest rate selection
radiobutt1.setText("7 years at 5.35% interest"); // sets button text for first radio button
public void actionPerformed(java.awt.event.ActionEvent e) // class for action event
radiobutt2.setText("15 years at 5.5% interest");// sets button text for second radio button
public void actionPerformed(java.awt.event.ActionEvent e) // class for action event
radiobutt3.setText("30 years at 5.75% interest");// sets button text for third and final radio button
public void actionPerformed(java.awt.event.ActionEvent e)// class for action event
calculatebutt1.setText("Submit"); // submit button text
public void actionPerformed(java.awt.event.ActionEvent e)
calculatebutt1ActionPerformed(e);
// sets text area size
textarea1.setColumns(20);
textarea1.setEditable(false);
textarea1.setRows(5);
panescroll.setViewportView(textarea1);
quitbutt1.setText("Quit"); // quit button text
public void actionPerformed(java.awt.event.ActionEvent e)
quitbutt1ActionPerformed(e);
//layout
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.setVerticalGroup(
pack();
} // Ends java components initialization
private void quitbutt1ActionPerformed(java.awt.event.ActionEvent e)
{// starts event_quitbutt1ActionPerformed
System.exit(1);
}// starts event_quitbutt1ActionPerformed
static NumberFormat nf = NumberFormat.getCurrencyInstance(Locale.US);
static NumberFormat np = NumberFormat.getPercentInstance();
static NumberFormat ni = NumberFormat.getIntegerInstance();
private void calculatebutt1ActionPerformed(java.awt.event.ActionEvent e)
{ // starts event_calculatebutt1ActionPerformed
public void actionToBePerformed(ActionEvent e)
if ("Clear". equals(e.getActionCommand())
calculatePayment();
else if
amtofloan.settext("");
intrst.settext("");
loanspan.settext("");
monthlypayments.settext("");
rate.settext("");
term.settext("")
intRate=Integer.parseInt(Rate.showtext());
DecimalFormat money = new DecimalFormat("\$0.00");
amt1.setText(null);
textarea1.setText(null);
double pmntamt;
double intrst;
double amounnt1;
int loanspan;
double interestmonthly, principlemonthly, balanceofloan;
int balanceremainder, amtoflines;
np.setMinimumFractionDigits(2);
amtoflines = 0;
try
amounnt1=Double.parseDouble(text1.getText());
catch (Exception evt)
amt1.setText("Enter total amount due on mortgage");
return;
intrst=0.0535;
loanspan=7;
intrst=0.055;
loanspan=15;
intrst=0.0575;
loanspan=30;
else
amt1.setText("Select term of loan and interest rate");
return;
textarea1.append(" For mortgage amount " + nf.format(amounnt1)+"\n"+" with mortgage term " + ni.format(loanspan) + " years"+"\n"+" and interest rate of " + np.format(intrst)+"\n"+" the monthly payment is " + nf.format(getMortgagePmt(amounnt1, loanspan, intrst))+"\n"+"\n");
balanceofloan = amounnt1 - ((getMortgagePmt(amounnt1, loanspan, intrst)) - (amounnt1*(intrst/12)));
balanceremainder = 0;
do
interestmonthly = balanceofloan * (intrst/12);// monthly interest
principlemonthly = (getMortgagePmt(amounnt1, loanspan, intrst)) - interestmonthly;//*Principal payment each month minus interest
balanceremainder = balanceremainder + 1;
balanceofloan = balanceofloan - principlemonthly;//remaining balance
textarea1.append(" Principal on payment  " + ni.format(balanceremainder) + " is " + nf.format(principlemonthly)+"\n");
textarea1.append(" Interest on payment  " + ni.format(balanceremainder) + " is " + nf.format(interestmonthly)+"\n");
textarea1.append(" Remaining balance on payment  " + ni.format(balanceremainder) + " is " + nf.format(balanceofloan)+"\n"+"\n"+"\n");
while (balanceofloan > 1);
public static double getMortgagePmt(double balance, double term, double rate)
double monthlyRate = rate / 12;
double pmntamt = (balance * monthlyRate)/(1-Math.pow(1+monthlyRate, - term * 12));
return pmntamt;
public static void main(String args[]) //main method start
java.awt.EventQueue.invokeLater(new Runnable()
public void run()
new MortgageCalcv7().setVisible(true);
// declares variables
private javax.swing.JButton calculatebutt1;
private javax.swing.JButton quitbutt1;
private javax.swing.JButton clearbutton;
private javax.swing.JLabel amtofloan;
private javax.swing.JLabel term;
private javax.swing.JLabel amt1;
private javax.swing.JScrollPane panescroll;
private javax.swing.JTextArea textarea1;
private javax.swing.JTextField text1;
} //end MortgageCalcv7.javaEverything was fine until I tried to add the clear button. Now it won't compile and gives me the following errors. Please if you could find it in your kind heart to help a girl out, I would be forever in your debt. Thanks in advance!
MortgageCalcv7.java:211: illegal start of expression
public void actionToBePerformed(ActionEvent e)
^
MortgageCalcv7.java:213: ')' expected
if ("Clear". equals(e.getActionCommand())
^
MortgageCalcv7.java:218: '(' expected
else if
^
MortgageCalcv7.java:219: illegal start of expression
^
MortgageCalcv7.java:225: ';' expected
term.settext("")
^
MortgageCalcv7.java:291: illegal start of expression
public static double getMortgagePmt(double balance, double term, double rate)
^
6 errors
Edited by: cheesegoddess on Oct 12, 2008 7:49 AM

You guys were very helpful, thank you! Thank you so very much!! The others needed braces somewhere and I took else out and that line compiles now. Thank you, thank you, thank you.
I am down to 1 error now. I cannot find where there is a missing bracket, if that is the problem.
The line erring is:
211    public void actionToBePerformed(ActionEvent e)and the error I am still getting is:
MortgageCalcv7.java:211: illegal start of expression
public void actionToBePerformed(ActionEvent e)
^
Any ideas? TIA.

### Similar Messages

Can anyone please help?  I have an unbranded x10 in the UK.  PC companion constantly tells me my phone software is up to date (with android 2.1) so I cannot upgrade to 2.3.  I've tried all the tips on the SE support page like deleting the database content and looking for the setting to update the phone next time it's connected which doesn't exist (very informative SE!).  I'm not keen on this independent software installation through the rapidshare download, it seems full of glitches looking at the forums.  http://www.sonyericsson.com/update/?lc=en&cc=gb&pid=xperiax10  This link clearly tells us the update is available through PC companion, no joy for me though.  Any help is welcome.

Have a look at this and check your version number see if its listed
See this thread it is a stock SE rom not a custom rom and will give you just that a stock SE rom if you want

• I built website with muse on trial and loaded to business catalyst site. I purchased Muse yesterday and trying to transfer the website from business catalyst to my own domain name hosted elsewhere. can anyone please help with instructions?

I built a website on Adobe Muse trial and loaded it onto business catalyst site. I purchased Muse yesterday & trying to transfer the website over to my own domain that is hosted elsewhere. I cant find good on-line instructions. Can anyone please help? I need to get this sit live ASAP for promotion campaign.

Hi
You would need to delete the domain from existing site and then add to your BC site.
Please refer here for more details :
Thanks,
Sanjit

Hi,
I am not so well versed in Oracle analytic functions and am having trouble with a sql.
Oracle Version: 9.2.0.1.0
I have a tree table storing heirarchies upto 4 levels.
create table FAMILY_TREE
TREE_ID NUMBER not null,
PARENT_ID NUMBER,
NAME VARCHAR2(100)
I know that using a CONNECT BY PRIOR, I can find out who the previous ancestar is.
select
f.tree_id TreeId,
f.parent_id ParentId,
f.Name Name
from family_tree f
connect by
prior f.tree_id = f.parent_id
I need to display all the ancestars in a single line (in different columns), which is where I am stumped.
I need the output, in different columns as :
Joe Jack Harry Rick Ned
Bascially, I need to display in a single row, all the ancestars.
I tried to use joins but it was very very slow due to the fact that I had to perform multiple joins.
Can anyone please point me in the right direction?
Data:
insert into FAMILY_TREE (TREE_ID, PARENT_ID, NAME)
values (1, null, 'Joe');
insert into FAMILY_TREE (TREE_ID, PARENT_ID, NAME)
values (2, 1, 'Jack');
insert into FAMILY_TREE (TREE_ID, PARENT_ID, NAME)
values (3, 2, 'Harry');
insert into FAMILY_TREE (TREE_ID, PARENT_ID, NAME)
values (4, 3, 'Rick');
insert into FAMILY_TREE (TREE_ID, PARENT_ID, NAME)
values (5, 4, 'Ned');

This may give you a start
SQL> ed
Wrote file afiedt.buf
1  select f.tree_id TreeId,f.parent_id ParentId,
2          trim(',' from sys_connect_by_path(f.Name,',')) name
3  from family_tree f
4  connect by
5  prior f.tree_id = f.parent_id
SQL> /
TREEID   PARENTID NAME
1            Joe
2          1 Joe,Jack
3          2 Joe,Jack,Harry
4          3 Joe,Jack,Harry,Rick
5          4 Joe,Jack,Harry,Rick,Ned
Message was edited by:
jeneesh
Forgot to refresh..

Hi there
I tried adding my work emails (Company Domain from Sites and Stores) here but its not letting me do that.
I called Telstra they added from there end and is still not working.
They send me service books twice i received nothing and they said i might need to delete existing service books which i cant find on my handset.
Do i need to have Enterprise server? On Bold and Torch it just worked fineeee

Hi,
Check the below article on how to configure email ID in Z10. It's not must requirement that you need enterprise server. However, you must have POP3 or IMAP (for personal) enabled email services. If you want to add enterprise email then it must support active sync.
How to add email, contacts, calendar and social networking accounts on a BlackBerry 10 smartphone
tanzim
If your query is resolved then please click on “Accept as Solution”
Click on the LIKE on the bottom right if the post deserves credit

• Can anyone please help with a review of these files to see if you might recognize a key logger or spyware program?

com.oxsemi.driver.OxsemiDeviceType00 (1.28.13)
at.obdev.nke.LittleSnitch (4052)
com.wdc.WDSmartWareServer
com.wdc.WDDMservice
com.sierrawireless.SwitchTool
com.oracle.java.JavaUpdateHelper
com.oracle.java.Helper-Tool
com.microsoft.office.licensing.helper
com.lacie.desktopmanager.service
at.obdev.littlesnitchd
jp.buffalo.NASPower
com.oracle.java.Java-Updater
com.lacie.eventsactions.launcher.agent
com.hp.messagecenter.launcher
com.hp.devicemonitor
at.obdev.LittleSnitchUIAgent
com.nds.pcshow.uninstall
com.nds.pcshow
AEProfiling.framework
AERegistration.framework
AudioMixEngine.framework
EWSMac.framework
HPDeviceModel.framework
HPPml.framework
HPScan.framework
HPServicesInterface.framework
HPSmartPrint.framework
HPSmartX.framework
NyxAudioAnalysis.framework
PluginManager.framework
Snapfish.framework
iLifeFaceRecognition.framework
iLifeKit.framework
iLifePageLayout.framework
iLifeSQLAccess.framework
iLifeSlideshow.framework
iTunesLibrary.framework
/Library/Input Methods: /Library/Internet Plug-Ins:
Flash Player.plugin
JavaAppletPlugin.plugin
Quartz Composer.webpluginQuickTime Plugin.plugin
SharePointBrowserPlugin.plugin
SharePointWebKitPlugin.webplugin
Silverlight.plugin
flashplayer.xpt
iPhotoPhotocast.plugin
npgtpo3dautoplugin.plugin
nsIQTScriptablePlugin.xpt
o1dbrowserplugin.plugin /Library/Keyboard Layouts: /Library/LaunchAgents:
at.obdev.LittleSnitchUIAgent.plist
com.hp.devicemonitor.plist
com.hp.messagecenter.launcher.plist
com.lacie.eventsactions.launcher.agent.plist
com.oracle.java.Java-Updater.plist
jp.buffalo.NASPower.plist
jp.buffalo.NASPower_pla.plist
/Library/LaunchDaemons:
at.obdev.littlesnitchd.plist
com.apple.remotepairtool.plist
com.lacie.desktopmanager.service.plist
com.microsoft.office.licensing.helper.plist
com.oracle.java.Helper-Tool.plist
com.oracle.java.JavaUpdateHelper.plist
com.sierrawireless.SwitchTool.plist
com.wdc.WDDMservice.plist
com.wdc.WDSmartWareServer.plist
/Library/PreferencePanes:Flash Player.prefPaneHP Scanjet.prefPane
JavaControlPanel.prefPane
/Library/PrivilegedHelperTools:.DS_StoreNasNavigator2.app
com.microsoft.office.licensing.helper
com.oracle.java.JavaUpdateHelper
/Library/QuickLook:
GBQLGenerator.qlgenerator
iWork.qlgenerator
/Library/QuickTime:
AppleIntermediateCodec.component
GBSpotlightImporter.mdimporter
Microsoft Entourage.mdimporterMicrosoft Office.mdimporter
iWeb.mdimporter
iWork.mdimporter
SkypeABDialer.bundle
SkypeABSMS.bundle
Library/Fonts:04b-08.suitArialBrush ScriptTimes New RomanVerdanaWingdingsWingdings 2Wingdings 3
encodings.dir
fonts.dir
fonts.list
fonts.scale
Library/Frameworks:
EWSMac.framework
Library/Internet Plug-Ins:
Move-Media-Player.plugin
PlayerPlugin.bundle
fbplugin_1_0_3.plugin Library/Keyboard Layouts: Library/LaunchAgents:
com.nds.pcshow.plist
com.nds.pcshow.uninstall.plist
Library/PreferencePanes:
Opera Preferences
TomTomHOMERunner, LDMStatusItem, apple-scc-20130209-112927

I want to take this case to the police and need to have the program to do so. I realize that I can re-intsall the OS and take care of any spyware that way however, I would destroy any evidence that would be needed.

These days my IdeaPad G580 has been showing serious problems: 1) I can't shut down the laptop by clicking the desktop button. Sometimes I may succeed by pushing the hardware button, but very often this won't help either. 2) I can't open the Skype app. Everytime I click on the Skype tile it just displays the blue colour for some seconds and then returns to the start menu. I have to uninstall and then install the app again. Yet the next time I try to open the app, the same problem arises. I can't just keep uninstalling and installing the app. What's more, similar problems appear when I try to open a PDF file with the windows reader application. And of course I cannot uninstall and install the reader app, so what should I do? 3) The windows app market cannot do updates. 4) I have accidentally refreshed my laptop and then I tried to restore the system. The system has been restored to a point which is exactly before I did the refreshing. So almost all my programs have been recovered - except my AUTHENTIC MS Office (which was installed with a CD-ROM)!! That's insane. But I have left my whole MS Office pack in my homeland. What can I do with this?? Please give me your feedback asap. I just bought the laptop not even a month ago. It's silly that so many problems arise.

Have you looked under power options to see if it's configured to shut down when the button is pressed?  You can assign different actions in this menu, it may have been accidentally changed somehow.  Either that or a faulty power button?

Interval Since Last Panic Report:  4422 sec
Panics Since Last Report:          3
Anonymous UUID:                    18853568-2DBB-1D40-708D-732F1844D6D2
Sun Oct 20 08:29:53 2013
panic(cpu 0 caller 0xffffff7f9b27af1a): "GPU Panic: [<None>] 5 3 7f 0 0 0 0 3 : NVRM[0/1:0:0]: Read Error 0x00000100: CFG 0xffffffff 0xffffffff 0xffffffff, BAR0 0xd2000000 0xffffff810a155000 0x0a5480a2, D0, P2/4\n"@/SourceCache/AppleGraphicsControl/AppleGraphicsControl-3.4.5/src/AppleM uxControl/kext/GPUPanic.cpp:127
Backtrace (CPU 0), Frame : Return Address
0xffffff8109e5aef0 : 0xffffff801901d636
0xffffff8109e5af60 : 0xffffff7f9b27af1a
0xffffff8109e5b030 : 0xffffff7f9977026c
0xffffff8109e5b0f0 : 0xffffff7f998431f6
0xffffff8109e5b130 : 0xffffff7f99843254
0xffffff8109e5b1a0 : 0xffffff7f99b08278
0xffffff8109e5b2f0 : 0xffffff7f9977703f
0xffffff8109e5b5a0 : 0xffffff7f997763ff
0xffffff8109e5b670 : 0xffffff7f9a73b93e
0xffffff8109e5b730 : 0xffffff7f9a767028
0xffffff8109e5b7b0 : 0xffffff7f9a74e460
0xffffff8109e5b810 : 0xffffff7f9a74ed41
0xffffff8109e5b860 : 0xffffff7f9a74f1f3
0xffffff8109e5b8d0 : 0xffffff7f9a74fa53
0xffffff8109e5b910 : 0xffffff7f9a71aedf
0xffffff8109e5ba90 : 0xffffff7f9a74bf8f
0xffffff8109e5bb50 : 0xffffff7f9a719978
0xffffff8109e5bba0 : 0xffffff801946f789
0xffffff8109e5bbc0 : 0xffffff8019470d30
0xffffff8109e5bc20 : 0xffffff801946e74f
0xffffff8109e5bd70 : 0xffffff8019098c21
0xffffff8109e5be80 : 0xffffff8019020b4d
0xffffff8109e5beb0 : 0xffffff8019010448
0xffffff8109e5bf00 : 0xffffff801901961b
0xffffff8109e5bf70 : 0xffffff80190a6546
0xffffff8109e5bfb0 : 0xffffff80190cf473
Kernel Extensions in backtrace:
com.apple.driver.AppleMuxControl(3.4.5)[49FEF732-D7A3-327B-A7AA-6AC5A6E3DCFF]@0 xffffff7f9b26d000->0xffffff7f9b27ffff
dependency: com.apple.driver.AppleBacklightExpert(1.0.4)[B5B1F368-132E-3509-9ED5-93270E3ABB DD]@0xffffff7f9b268000
dependency: com.apple.iokit.IOPCIFamily(2.8)[6C1D646D-7E5E-3D7F-A557-2CBA398FF878]@0xffffff 7f99675000
dependency: com.apple.driver.AppleGraphicsControl(3.4.5)[4A2C8548-7EF1-38A9-8817-E8CB34B8DC A6]@0xffffff7f9b254000
dependency: com.apple.iokit.IOACPIFamily(1.4)[A35915E8-C1B0-3C0F-81DF-5515BC9002FC]@0xfffff f7f995f3000
dependency: com.apple.iokit.IONDRVSupport(2.3.7)[F16E015E-1ABE-3C40-AC71-BC54F4BE442E]@0xff ffff7f996fb000
dependency: com.apple.iokit.IOGraphicsFamily(2.3.7)[9928306E-3508-3DBC-80A4-D8F1D87650D7]@0 xffffff7f996b8000
com.apple.NVDAResman(8.1.6)[EA4F9902-5AAE-3F1D-A846-3796221C8C91]@0xffffff7f997 0f000->0xffffff7f999b1fff
dependency: com.apple.iokit.IOPCIFamily(2.8)[6C1D646D-7E5E-3D7F-A557-2CBA398FF878]@0xffffff 7f99675000
dependency: com.apple.iokit.IONDRVSupport(2.3.7)[F16E015E-1ABE-3C40-AC71-BC54F4BE442E]@0xff ffff7f996fb000
dependency: com.apple.iokit.IOGraphicsFamily(2.3.7)[9928306E-3508-3DBC-80A4-D8F1D87650D7]@0 xffffff7f996b8000
com.apple.GeForce(8.1.6)[7C67749B-3B6B-38A9-8203-01A139C21895]@0xffffff7f9a7070 00->0xffffff7f9a7d4fff
dependency: com.apple.NVDAResman(8.1.6)[EA4F9902-5AAE-3F1D-A846-3796221C8C91]@0xffffff7f997 0f000
dependency: com.apple.iokit.IONDRVSupport(2.3.7)[F16E015E-1ABE-3C40-AC71-BC54F4BE442E]@0xff ffff7f996fb000
dependency: com.apple.iokit.IOPCIFamily(2.8)[6C1D646D-7E5E-3D7F-A557-2CBA398FF878]@0xffffff 7f99675000
dependency: com.apple.iokit.IOGraphicsFamily(2.3.7)[9928306E-3508-3DBC-80A4-D8F1D87650D7]@0 xffffff7f996b8000
com.apple.nvidia.nv50hal(8.1.6)[3455BCFE-565A-3FE5-9F0B-855BCB6CC9B3]@0xffffff7 f999bd000->0xffffff7f99c90fff
dependency: com.apple.NVDAResman(8.1.6)[EA4F9902-5AAE-3F1D-A846-3796221C8C91]@0xffffff7f997 0f000
dependency: com.apple.iokit.IOPCIFamily(2.8)[6C1D646D-7E5E-3D7F-A557-2CBA398FF878]@0xffffff 7f99675000
BSD process name corresponding to current thread: WebProcess
Mac OS version:
12F45
Kernel version:
Darwin Kernel Version 12.5.0: Sun Sep 29 13:33:47 PDT 2013; root:xnu-2050.48.12~1/RELEASE_X86_64
Kernel UUID: EA38B02E-2B88-309F-BA68-1DE29F605DD8
Kernel slide:     0x0000000018e00000
Kernel text base: 0xffffff8019000000
System model name: MacBookPro6,2 (Mac-F22586C8)
System uptime in nanoseconds: 1093782821772
com.nvidia.CUDA          1.1.0
com.apple.filesystems.msdosfs          1.8.1
com.apple.iokit.IOBluetoothSerialManager          4.1.7f4
com.apple.driver.AppleHWSensor          1.9.5d0
com.apple.driver.AudioAUUC          1.60
com.apple.driver.AppleTyMCEDriver          1.0.2d2
com.apple.driver.AGPM          100.13.12
com.apple.driver.AppleMikeyHIDDriver          124
com.apple.driver.AppleHDAHardwareConfigDriver          2.4.7fc4
com.apple.driver.AppleHDA          2.4.7fc4
com.apple.iokit.IOUserEthernet          1.0.0d1
com.apple.driver.AppleMikeyDriver          2.4.7fc4
com.apple.iokit.IOBluetoothUSBDFU          4.1.7f4
com.apple.driver.AppleUpstreamUserClient          3.5.12
com.apple.driver.AppleLPC          1.6.3
com.apple.Dont_Steal_Mac_OS_X          7.0.0
com.apple.driver.ApplePolicyControl          3.4.5
com.apple.driver.ACPI_SMC_PlatformPlugin          1.0.0
com.apple.driver.AppleSMCLMU          2.0.3d0
com.apple.driver.AppleIntelHDGraphics          8.1.6
com.apple.driver.AppleIntelHDGraphicsFB          8.1.6
com.apple.driver.AppleSMCPDRC          1.0.0
com.apple.GeForce          8.1.6
com.apple.driver.SMCMotionSensor          3.0.3d1
com.apple.driver.AppleSMBusPCI          1.0.11d1
com.apple.filesystems.autofs          3.0
com.apple.nvidia.NVDAStartup          8.1.6
com.apple.driver.AppleMuxControl          3.4.5
com.apple.driver.AppleBacklight          170.3.5
com.apple.driver.AppleMCCSControl          1.1.11
com.apple.driver.AppleUSBTCButtons          237.1
com.apple.driver.AppleUSBTCKeyEventDriver          237.1
com.apple.driver.AppleUSBTCKeyboard          237.1
com.apple.driver.AppleIRController          320.15
com.apple.driver.AppleFileSystemDriver          3.0.1
com.apple.AppleFSCompression.AppleFSCompressionTypeDataless          1.0.0d1
com.apple.AppleFSCompression.AppleFSCompressionTypeZlib          1.0.0d1
com.apple.BootCache          34
com.apple.driver.XsanFilter          404
com.apple.iokit.IOAHCIBlockStorage          2.3.5
com.apple.driver.AppleUSBHub          635.4.0
com.apple.driver.AirPort.Brcm4331          615.20.17
com.apple.driver.AppleFWOHCI          4.9.9
com.apple.driver.AppleUSBUHCI          621.4.0
com.apple.driver.AppleAHCIPort          2.6.6
com.apple.iokit.AppleBCM5701Ethernet          3.6.2b4
com.apple.driver.AppleUSBEHCI          621.4.6
com.apple.driver.AppleSmartBatteryManager          161.0.0
com.apple.driver.AppleRTC          1.5
com.apple.driver.AppleACPIButtons          1.8
com.apple.driver.AppleHPET          1.8
com.apple.driver.AppleSMBIOS          1.9
com.apple.driver.AppleACPIEC          1.8
com.apple.driver.AppleAPIC          1.7
com.apple.driver.AppleIntelCPUPowerManagementClient          214.0.0
com.apple.nke.applicationfirewall          4.0.39
com.apple.security.quarantine          2.1
com.apple.driver.AppleIntelCPUPowerManagement          214.0.0
com.apple.iokit.IOSerialFamily          10.0.6
com.apple.driver.DspFuncLib          2.4.7fc4
com.apple.iokit.IOAudioFamily          1.9.2fc7
com.apple.kext.OSvKernDSPLib          1.12
com.apple.iokit.IOSurface          86.0.4
com.apple.iokit.IOBluetoothFamily          4.1.7f4
com.apple.iokit.IOFireWireIP          2.2.5
com.apple.iokit.IOBluetoothHostControllerUSBTransport          4.1.7f4
com.apple.nvidia.nv50hal          8.1.6
com.apple.driver.IOPlatformPluginLegacy          1.0.0
com.apple.driver.AppleHDAController          2.4.7fc4
com.apple.iokit.IOHDAFamily          2.4.7fc4
com.apple.driver.IOPlatformPluginFamily          5.4.1d13
com.apple.NVDAResman          8.1.6
com.apple.driver.AppleSMC          3.1.5d4
com.apple.kext.triggers          1.0
com.apple.driver.AppleGraphicsControl          3.4.5
com.apple.driver.AppleBacklightExpert          1.0.4
com.apple.iokit.IONDRVSupport          2.3.7
com.apple.driver.AppleSMBusController          1.0.11d1
com.apple.iokit.IOGraphicsFamily          2.3.7
com.apple.driver.AppleUSBMultitouch          237.3
com.apple.iokit.IOSCSIBlockCommandsDevice          3.5.6
com.apple.iokit.IOUSBMassStorageClass          3.5.2
com.apple.iokit.IOUSBHIDDriver          623.4.0
com.apple.driver.AppleUSBMergeNub          621.4.6
com.apple.driver.AppleUSBComposite          621.4.0
com.apple.iokit.IOSCSIMultimediaCommandsDevice          3.5.6
com.apple.iokit.IOBDStorageFamily          1.7
com.apple.iokit.IODVDStorageFamily          1.7.1
com.apple.iokit.IOCDStorageFamily          1.7.1
com.apple.iokit.IOAHCISerialATAPI          2.5.5
com.apple.iokit.IOSCSIArchitectureModelFamily          3.5.6
com.apple.iokit.IOUSBUserClient          630.4.4
com.apple.iokit.IO80211Family          530.5
com.apple.iokit.IOFireWireFamily          4.5.5
com.apple.iokit.IOAHCIFamily          2.5.1
com.apple.iokit.IOEthernetAVBController          1.0.2b1
com.apple.iokit.IONetworkingFamily          3.0
com.apple.iokit.IOUSBFamily          635.4.0
com.apple.driver.AppleEFINVRAM          2.0
com.apple.driver.AppleEFIRuntime          2.0
com.apple.iokit.IOHIDFamily          1.8.1
com.apple.iokit.IOSMBusFamily          1.1
com.apple.security.sandbox          220.3
com.apple.kext.AppleMatch          1.0.0d1
com.apple.security.TMSafetyNet          7
com.apple.driver.DiskImages          345
com.apple.iokit.IOStorageFamily          1.8
com.apple.driver.AppleKeyStore          28.21
com.apple.driver.AppleACPIPlatform          1.8
com.apple.iokit.IOPCIFamily          2.8
com.apple.iokit.IOACPIFamily          1.4
com.apple.kec.corecrypto          1.0
Model: MacBookPro6,2, BootROM MBP61.0057.B0F, 2 processors, Intel Core i7, 2.8 GHz, 8 GB, SMC 1.58f17
Graphics: Intel HD Graphics, Intel HD Graphics, Built-In, 288 MB
Graphics: NVIDIA GeForce GT 330M, NVIDIA GeForce GT 330M, PCIe, 512 MB
Memory Module: BANK 0/DIMM0, 4 GB, DDR3, 1067 MHz, 0x80AD, 0x484D54333531533643465238432D50422020
Memory Module: BANK 1/DIMM0, 4 GB, DDR3, 1067 MHz, 0x80AD, 0x484D54333531533643465238432D50422020
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x93), Broadcom BCM43xx 1.0 (5.106.98.100.17)
Bluetooth: Version 4.1.7f4 12974, 3 service, 13 devices, 3 incoming serial ports
Network Service: Wi-Fi, AirPort, en1
Serial ATA Device: TOSHIBA MK5055GSXF, 500.11 GB
USB Device: hub_device, 0x0424  (SMSC), 0x2514, 0xfa100000 / 2
USB Device: Internal Memory Card Reader, apple_vendor_id, 0x8403, 0xfa130000 / 5
USB Device: Apple Internal Keyboard / Trackpad, apple_vendor_id, 0x0236, 0xfa120000 / 4
USB Device: BRCM2070 Hub, 0x0a5c  (Broadcom Corp.), 0x4500, 0xfa110000 / 3
USB Device: Bluetooth USB Host Controller, apple_vendor_id, 0x8218, 0xfa113000 / 7
USB Device: hub_device, 0x0424  (SMSC), 0x2514, 0xfd100000 / 2
USB Device: Built-in iSight, apple_vendor_id, 0x8507, 0xfd110000 / 4
USB Device: IR Receiver, apple_vendor_id, 0x8242, 0xfd120000 / 3

You have the MacBookPro6,2, the Edsel of Macs. It may be covered by this program:
MacBook Pro (15-inch, Mid 2010): Intermittent black screen or loss of video
Make a "Genius" appointment at an Apple Store, or go to another authorized service provider, to have the machine tested. The routine hardware diagnostics used by service providers may not detect the fault. There is a specific test for this issue.
Print the first page of the panic report, and the support page linked above, and bring them with you.
Note that the replacement program only applies within three years of purchase. If you wait beyond that date, Apple may refuse the service. In that case, you'll be quoted a price of about \$300 (in the U.S.) for a depot repair. The model was discontinued in February 2011, so the replacement program will be ending quite soon.
Back up all data on the internal drive(s) before you hand over your computer to anyone. If privacy is a concern, erase the data partition(s) with the option to write zeros* (do this only if you have at least two complete, independent backups, and you know how to restore to an empty drive from any of them.) Don’t erase the recovery partition, if present.
Sometimes the replacement part is also defective, so be prepared for that possibility.
If it's too late for your unit to be repaired under the program, and you don't want to pay for a new logic board, you may be able to stop the panics by disabling automatic graphics switching.
*An SSD doesn't need to be zeroed.

Hi
Im currently setting a website up in Adobe Muse/BC - Im not a developer at all!..but a designer and really like this software. However ive come across whats probably quite a simple problem - i just need to put some the module output from my web app over an image on template page but i dont know how to do it.
The page is here:
latest
The text and image im moving (this is web app outputt) is inserted into the page coding as:
{tag_pagecontent}
This is a module that Adobe BC is placing on the page from my web app.
Ive done images to explain this far more clearly:
http://www.paulsuttontestsite.co.uk/test.SHOT1.png
http://www.paulsuttontestsite.co.uk/test.SHOT2.png
Many thanks in advance to anyone who is kind enough to offer their time in helping me.
Paul

Have a look at this and check your version number see if its listed
See this thread it is a stock SE rom not a custom rom and will give you just that a stock SE rom if you want

read other articles and here is some data for your to go over.
=====================================================================
SQL*Plus: Release 10.2.0.1.0 - Production on Tue Nov 28 09:37:18 2006
SQL> connect / as sysdba
ERROR:
SQL>
==================
C:\>lsnrctl status
LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 28-NOV-2006 08:19
:39
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Produ
ction
Start Date 27-NOV-2006 16:14:11
Uptime 0 days 16 hr. 5 min. 27 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Default Service XE
Listener Parameter File C:\oraclexe\app\oracle\product\10.2.0\server\network\a
dmin\listener.ora
Listener Log File C:\oraclexe\app\oracle\product\10.2.0\server\network\l
og\listener.log
Listening Endpoints Summary...
21)))
Services Summary...
Service "CLRExtProc" has 1 instance(s).
Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
Also netstat does not show anything running on port 8080.
============================================
C:\Documents and Settings\N0139838>net start
These Windows 2000 services are started:
COM+ Event System
Computer Browser
DHCP Client
Diskeeper
Distributed Transaction Coordinator
DNS Client
EPAService
Event Log
Infrared Monitor
Logical Disk Manager
Machine Debug Manager
Messenger
Net Logon
Network Connections
OracleServiceXE
OracleXETNSListener
Plug and Play
Print Spooler
Protected Storage
Remote Access Connection Manager
Remote Procedure Call (RPC)
Remote Registry Service
Removable Storage
RunAs Service
SafeBoot Configuration Manager
SavRoam
Security Accounts Manager
Server
SMS Agent Host
SMS Remote Control Agent
SU Service
Symantec AntiVirus
Symantec AntiVirus Definition Watcher
Symantec Event Manager
Symantec Settings Manager
TCP/IP NetBIOS Helper Service
Telephony
Windows Management Instrumentation
Windows Management Instrumentation Driver Extensions
Windows Time
WMDM PMSP Service
Workstation
The command completed successfully.
===========================================
Ping 127.0.0.1 or localhost is successfull.
===============================================
C:\Documents and Settings\N0139838>netstat -a
Nothing is running on port 8080.

Hi,
Have you install Oracle XE as an Administrator or member of Administrators group?
Do you have any other Oracle installation?
What kind of OS do you use? I can see Windows 2000.
Those two services OracleServiceXE and OracleXETNSListener are enough to run XE.
You could check by the Task Manager:
- OracleServiceXE should be about 50K
- OracleXETNSListener – 6K
Turn those services to Manual. Restart the computer and Start Oracle database.
You can check the LISTENER.ORA. Host should be your host name. Same into TNSNAMES.ORA. If the HOST = YourComputerName there are OK.
Then you should check for any firewall. For instance, Zone Alarm could prevent to access your database.
I hope that would help.
Konstantin

• Mac Book Crashing Can anyone please help with this error message,  I've run Disk warrior and everthing is coming up fine, so may be a hardware issue, thank you Interval Since Last Panic Report:  22119 sec Panics Since Last Report:          14 Anonymous UU

I've run Disk warrior, it says all the files and harddrive are fine.
thanks for your help.  This crashing was happening before I upgraded to Lion
Interval Since Last Panic Report:  22119 sec
Panics Since Last Report:          14
Anonymous UUID:                    1DA2B715-D1E5-4BF1-A47F-D31CBD8C1E78
Wed Mar  7 13:21:17 2012
panic(cpu 2 caller 0xffffff7f8098c907): NVRM[0/1:0:0]: Read Error 0x00000100: CFG 0x0a2910de 0x00100000 0x00000000, BAR0 0xd2000000 0xffffff80a0354000 0x0a5480a2, D0, P2/4
Backtrace (CPU 2), Frame : Return Address
0xffffff80a398b800 : 0xffffff8000220702
0xffffff80a398b880 : 0xffffff7f8098c907
0xffffff80a398b910 : 0xffffff7f80a7ca64
0xffffff80a398b960 : 0xffffff7f80a7cb24
0xffffff80a398b9c0 : 0xffffff7f80d29749
0xffffff80a398bb30 : 0xffffff7f80996282
0xffffff80a398bbe0 : 0xffffff7f80991b84
0xffffff80a398bdd0 : 0xffffff7f80993639
0xffffff80a398beb0 : 0xffffff7f8092e484
0xffffff80a398bf00 : 0xffffff7f820a47d6
0xffffff80a398bf50 : 0xffffff7f820a4f2a
0xffffff80a398bf70 : 0xffffff800023db2c
0xffffff80a398bfb0 : 0xffffff8000820057
Kernel Extensions in backtrace:
com.apple.NVDAResman(7.1.8)[94BA87BA-B128-3310-9860-98EC67AB7FAF]@0xffffff7f809 2c000->0xffffff7f80c05fff
dependency: com.apple.iokit.IONDRVSupport(2.3.2)[4B3F84DC-18B3-3897-BC56-4E3940878047]@0xff ffff7f8091a000
dependency: com.apple.iokit.IOGraphicsFamily(2.3.2)[FE536983-1897-3D6B-965E-24B5A67080DA]@0 xffffff7f808e2000
com.apple.nvidia.nv50hal(7.1.8)[7596DB8C-AE9D-3C87-B11A-0ED8F940CAF8]@0xffffff7 f80c06000->0xffffff7f80f27fff
dependency: com.apple.NVDAResman(7.1.8)[94BA87BA-B128-3310-9860-98EC67AB7FAF]@0xffffff7f809 2c000
dependency: com.apple.iokit.IOGraphicsFamily(2.3.2)[FE536983-1897-3D6B-965E-24B5A67080DA]@0 xffffff7f808e2000
dependency: com.apple.iokit.IONDRVSupport(2.3.2)[4B3F84DC-18B3-3897-BC56-4E3940878047]@0xff ffff7f8091a000
Mac OS version:
11D50
Kernel version:
Darwin Kernel Version 11.3.0: Thu Jan 12 18:47:41 PST 2012; root:xnu-1699.24.23~1/RELEASE_X86_64
Kernel UUID: 7B6546C7-70E8-3ED8-A6C3-C927E4D3D0D6
System model name: MacBookPro6,2 (Mac-F22586C8)
System uptime in nanoseconds: 5224512131000
com.regularrateandrhythm.driver.RowmoteIREmu    1.0
com.bresink.driver.BRESINKx86Monitoring    8.0
com.AmbrosiaSW.AudioSupport    3.2
com.apple.driver.Oxford_Semi    3.0.1
com.apple.driver.AppleUSBDisplays    317
com.apple.driver.AppleHWSensor    1.9.4d0
com.apple.filesystems.autofs    3.0
com.apple.driver.AudioAUUC    1.59
com.apple.driver.AGPM    100.12.42
com.apple.driver.AppleMikeyHIDDriver    122
com.apple.driver.AppleHDA    2.1.7f9
com.apple.driver.AppleUpstreamUserClient    3.5.9
com.apple.driver.AppleMCCSControl    1.0.26
com.apple.driver.AppleMikeyDriver    2.1.7f9
com.apple.driver.AppleIntelHDGraphics    7.1.8
com.apple.driver.AppleIntelHDGraphicsFB    7.1.8
com.apple.driver.SMCMotionSensor    3.0.1d2
com.apple.iokit.IOUserEthernet    1.0.0d1
com.apple.Dont_Steal_Mac_OS_X    7.0.0
com.apple.driver.AudioIPCDriver    1.2.2
com.apple.driver.AppleSMCLMU    2.0.1d2
com.apple.GeForce    7.1.8
com.apple.driver.ACPI_SMC_PlatformPlugin    4.7.5d4
com.apple.driver.AppleMuxControl    3.0.16
com.apple.driver.AppleLPC    1.5.3
com.apple.driver.AppleUSBTCButtons    225.2
com.apple.driver.AppleIRController    312
com.apple.driver.AppleUSBTCKeyboard    225.2
com.apple.AppleFSCompression.AppleFSCompressionTypeDataless    1.0.0d1
com.apple.AppleFSCompression.AppleFSCompressionTypeZlib    1.0.0d1
com.apple.BootCache    33
com.apple.iokit.IOAHCIBlockStorage    2.0.1
com.apple.driver.AppleUSBHub    4.5.0
com.apple.driver.AppleSmartBatteryManager    161.0.0
com.apple.driver.AppleFWOHCI    4.8.9
com.apple.driver.AirPort.Brcm4331    513.20.19
com.apple.iokit.AppleBCM5701Ethernet    3.0.8b2
com.apple.driver.AppleEFINVRAM    1.5.0
com.apple.driver.AppleAHCIPort    2.2.0
com.apple.driver.AppleUSBEHCI    4.5.8
com.apple.driver.AppleACPIButtons    1.4
com.apple.driver.AppleRTC    1.4
com.apple.driver.AppleHPET    1.6
com.apple.driver.AppleSMBIOS    1.7
com.apple.driver.AppleACPIEC    1.4
com.apple.driver.AppleAPIC    1.5
com.apple.driver.AppleIntelCPUPowerManagementClient    167.3.0
com.apple.nke.applicationfirewall    3.2.30
com.apple.security.quarantine    1.1
com.apple.driver.AppleIntelCPUPowerManagement    167.3.0
com.apple.iokit.IOFireWireSerialBusProtocolTransport    2.1.0
com.apple.iokit.IOFireWireSBP2    4.2.0
com.apple.driver.AppleUSBHIDKeyboard    152.3
com.apple.driver.AppleHIDKeyboard    152.3
com.apple.driver.AppleUSBAudio    2.8.2f5
com.apple.kext.triggers    1.0
com.apple.driver.DspFuncLib    2.1.7f9
com.apple.driver.AppleSMBusController    1.0.10d0
com.apple.iokit.IOSurface    80.0
com.apple.iokit.IOBluetoothSerialManager    4.0.3f12
com.apple.iokit.IOSerialFamily    10.0.5
com.apple.iokit.IOFireWireIP    2.2.4
com.apple.iokit.IOAudioFamily    1.8.6fc6
com.apple.kext.OSvKernDSPLib    1.3
com.apple.driver.AppleHDAController    2.1.7f9
com.apple.iokit.IOHDAFamily    2.1.7f9
com.apple.driver.ApplePolicyControl    3.0.16
com.apple.driver.AppleSMC    3.1.1d8
com.apple.driver.IOPlatformPluginFamily    4.7.5d4
com.apple.driver.AppleSMBusPCI    1.0.10d0
com.apple.driver.AppleGraphicsControl    3.0.16
com.apple.driver.AppleBacklightExpert    1.0.3
com.apple.nvidia.nv50hal    7.1.8
com.apple.NVDAResman    7.1.8
com.apple.iokit.IONDRVSupport    2.3.2
com.apple.iokit.IOGraphicsFamily    2.3.2
com.apple.driver.AppleUSBBluetoothHCIController    4.0.3f12
com.apple.iokit.IOBluetoothFamily    4.0.3f12
com.apple.driver.AppleUSBMultitouch    227.1
com.apple.iokit.IOUSBHIDDriver    4.4.5
com.apple.iokit.IOSCSIBlockCommandsDevice    3.0.3
com.apple.iokit.IOUSBMassStorageClass    3.0.1
com.apple.driver.AppleUSBMergeNub    4.5.3
com.apple.driver.AppleUSBComposite    4.5.8
com.apple.iokit.IOSCSIMultimediaCommandsDevice    3.0.3
com.apple.iokit.IOBDStorageFamily    1.6
com.apple.iokit.IODVDStorageFamily    1.7
com.apple.iokit.IOCDStorageFamily    1.7
com.apple.driver.XsanFilter    403
com.apple.iokit.IOAHCISerialATAPI    2.0.1
com.apple.iokit.IOSCSIArchitectureModelFamily    3.0.3
com.apple.iokit.IOUSBUserClient    4.5.8
com.apple.iokit.IOFireWireFamily    4.4.5
com.apple.iokit.IO80211Family    412.2
com.apple.iokit.IOEthernetAVBController    1.0.0d5
com.apple.iokit.IONetworkingFamily    2.0
com.apple.iokit.IOAHCIFamily    2.0.7
com.apple.iokit.IOUSBFamily    4.5.8
com.apple.driver.AppleEFIRuntime    1.5.0
com.apple.iokit.IOHIDFamily    1.7.1
com.apple.iokit.IOSMBusFamily    1.1
com.apple.security.sandbox    177.3
com.apple.kext.AppleMatch    1.0.0d1
com.apple.security.TMSafetyNet    7
com.apple.driver.DiskImages    331.3
com.apple.iokit.IOStorageFamily    1.7
com.apple.driver.AppleKeyStore    28.18
com.apple.driver.AppleACPIPlatform    1.4
com.apple.iokit.IOPCIFamily    2.6.8
com.apple.iokit.IOACPIFamily    1.4

Computer model & hardware characteristics (especially RAM).
How much free space left on HDD.
Any add-ons you may have added to the system (antivirus, screen eye candy, etc.)
What applications were running when the crash occurred.
What were you doing when the crash occurred.

I use MS Office 2011
After my update on my Mac OS 10.8.4 yesterday I my Microsoft Outlook and Power Point crashes on start up and no one seem to have any idea what I can do.
I have followed every recommendations on the web and cant get it going again. This is very frustrating as I work outstanding in my mail box.
I get "EXC_BAD_ACCESS" each time I launch my Outlook mail.

Thanks clintonfrombirmingham, I posted on MS forum.
However, I managed to resolve the problem eventually.
Had to reinstall and update to latest patch.
Sorted now.
Its amazing that there is no straight solution for this problem. Everyone in the forum pointed me to the same old postings I had read and followed.

Hi,
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.awt.event.ActionListener;
public class project
public static void main(String[] args)
//   Time time = new Time();
//   System.out.println(time.getTime());
right r = new right();
left l = new left();
JPanel p = new JPanel();
JPanel p2 = new JPanel();
JPanel p3 = new JPanel();
JFrame aFrame = new JFrame();
aFrame.setTitle("Swing 3");
aFrame.setBounds(0, 0, 700, 500);
Container contentPane = aFrame.getContentPane();
r.textArea.setText("Red");
aFrame.setVisible(true);
===================================
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.awt.event.ActionListener;
public class left extends JPanel implements ActionListener
public JButton redButton,greenButton,blueButton,yellowButton;
public left()
JPanel pp = new JPanel();
setLayout(new BorderLayout());
redButton = new JButton("Red");
greenButton = new JButton("Green");
blueButton = new JButton("Blue");
yellowButton = new JButton("Yellow");
public void actionPerformed(ActionEvent e)
// e.getSource()  // returns name of the button
if (e.getSource() == redButton){
// r.setT("red");
System.out.println("red button");
if (e.getSource() == greenButton)
//r.textArea.setText("green");
System.out.println("green button");
if (e.getSource() == blueButton)
//r.textArea.setText("blue");
System.out.println("blue button");
if (e.getSource() == yellowButton)
// r.textArea.setText("yellow");
System.out.println("yellow button");
===================================
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.awt.event.ActionListener;
public class right extends JPanel
JButton oneButton,twoButton;
public JTextArea textArea;
public right()
JPanel jp = new JPanel();
setLayout(new BorderLayout());
oneButton = new JButton("one");
twoButton = new JButton("two");
textArea = new JTextArea();
}In the left class I want to be able to click a button and then display a message in the JTextArea. I want main to be global - so the r object can be accessed anywhere.
If anyone could get this to work I'd be really grateful.

import java.awt.*;
import java.awt.event.*;
import java.awt.event.ActionListener;
import javax.swing.*;
public class ProjectRx
public static void main(String[] args)
// For the buttons in left to set text in the textArea
// in right the two classes must communicate in some way.
// Left must have a way to talk to right.
// Option 1:
//     Pass a reference to right to left which left can use
//     to access the textArea in right.
ProjectRightRx r = new ProjectRightRx();
r.textArea.setText("Red");
ProjectLeftRx l = new ProjectLeftRx(r);
// Option 2:
//     You could send a reference to the textArea to left
//     instead of the reference to its enclosing class.
//r.textArea.setText("Red");
//ProjectLeftRx l = new ProjectLeftRx(r.textArea);
JFrame aFrame = new JFrame();
aFrame.setTitle("Swing 3");
aFrame.setSize(400, 400);
aFrame.setLocation(100,100);
Container contentPane = aFrame.getContentPane();
aFrame.setVisible(true);
import java.awt.*;
import java.awt.event.*;
import java.awt.event.ActionListener;
import javax.swing.*;
public class ProjectLeftRx extends JPanel implements ActionListener
ProjectRightRx r;
public JButton redButton,greenButton,blueButton,yellowButton;
public ProjectLeftRx(ProjectRightRx r)
this.r = r;
JPanel pp = new JPanel();
pp.setBorder(BorderFactory.createTitledBorder("Left"));
setLayout(new BorderLayout());
redButton = new JButton("Red");
greenButton = new JButton("Green");
blueButton = new JButton("Blue");
yellowButton = new JButton("Yellow");
public void actionPerformed(ActionEvent e)
// e.getSource()   returns object that generated this event
// To get the name of the button you can try:
JButton button = (JButton)e.getSource();
String name = button.getActionCommand();  // or,
// button.getText();
String ac = e.getActionCommand();
System.out.println("name = " + name + "  ac = " + ac);
if (e.getSource() == redButton){
//            r.setT("red");
System.out.println("red button");
if (e.getSource() == greenButton)
r.textArea.setText("green");
System.out.println("green button");
if (e.getSource() == blueButton)
r.textArea.setText("blue");
System.out.println("blue button");
if (e.getSource() == yellowButton)
r.textArea.setText("yellow");
System.out.println("yellow button");
import java.awt.*;
import java.awt.event.*;
import java.awt.event.ActionListener;
import javax.swing.*;
public class ProjectRightRx extends JPanel
JButton oneButton,twoButton;
public JTextArea textArea;
public ProjectRightRx()
JPanel jp = new JPanel();
setLayout(new BorderLayout());
oneButton = new JButton("one");
twoButton = new JButton("two");
textArea = new JTextArea(10,25);
}

• My Macbook aliminium unibody from late 2008 will not boot. I reach the grey screen with the apple icon and the spinning grey gear. I used disk utility to boot it but it said integrity test failed. I don't know what to do can anyone please help?

My Macbook aliminium unibody from late 2008 will not boot. I reach the grey screen with the apple icon and the spinning grey gear. I used disk utility to boot it but it said integrity test failed. I don't know what to do can anyone please help?

Sounds like you may have a harddrive issue.  You are probably going to need to get that changed out and then install the OS X again to get it going.

• HT2953 i-tunes could not be used because the original file could not be found.could not locate.this error occurs on most of my songs in my library and will not play even though they are in my i-pod and play with no trouble.can  anyone please help?

i-tunes could not be used because the original file could not be found.could not locate.this error occurs on most of my songs in my library and will not play even though they are in my i-pod and play with no trouble.can  anyone please help?

I was not complete clear.
Since you never changed the settings in the advanced section of iTunes preferecnes, you have to chech that your music is really in the location setted in the folders reported in the advanced section.  If not you have 2 ways: reset the position of this folders or in the actual disk organisation or in the pointing on the preferences.
If you press the reset button you just give to itunes its default setting as for the position of the music files: probably this will be a good choice if you have never changed any default preference.
But before I would check the folders and see if the songs are really there
In my iTune I have this, and I believe it is the default.
Users/YOURHOMEFOLDERNAME/Music/iTunes/iTunes Music

### Maybe you are looking for

• Tracking Edit Original in CS4

Hi All, How can we know if an image has been edited with 'Edit Original' option in CS4. In previous Indesign versions (before CS4), the UIDRef of the link used to change if the image is saved after editing. In CS4 it doesn't change. In previous versi

• How to Make the Shatter Effect Travel Outside the Original Comp

Hey guys, So I'm trying to shatter a jpg image that I imported into After Effects 5.5, all is going well with the look, but I'm having a problem.  The shatter has the pieces floating upward as intended, but the pieces are disappearing at the border o

• Labview support for ISO 8859-5

HI, does Labview support ISO 8859-5 character sets? If yes, then how do i change the default character set in Labview from ASCII to ISO 8859-5? If no, then which is the simplest way to display russian characters in Labview 6.1 (Labview 6.1 on SuSE LI

• Execution time of a flat-sequence

Hello there - Is there any way to get a measurement of how long each part of the flat sequence takes to execute?  Anything like matlab's "tic" and "toc" commands in labview?  I have been playing with it for a while now and have yet to discover if Lab

• Process Flow developing/deploying/executing and scheduling through OEM

I have installed OWB92 and Oracle 9i, OEM configured, Oracle workflow 2.6.2 installed. I know OWB and scheduling mapping from OEM. I have created two mappings and a process flow. I want to schedule process flow from OEM. After creation of process flo