Please help "pull videos from Video library & play in my app"
Hi ,
Q1:I put videos in my ipad video library using itunes.I have it so the videos are pulled from the video library, once I click on the video it opens just not in my app but in the video library.
How do I get the videos to play on my app? not open and play in the video library?
Q2: When I place the videos in the ipads photo library it works but then I have a problem, The videos can be shared/emailed..I don't want the videos to be taken when the ipad is passed around to others. I could go this route if somehow I can encrypt the videos or keep them from being taken... any suggestions?
Note:
We are using NSURL class refrence...everything has to be local.. also this is for private use not going on app store
This has been stomping everyone, any suggestions are greatly appriciated
This may or may not work, but is worth a try.
Select the clip in the trash. Then click on the Gear box in the top area of the trash. See if it gives you the option to "Put Back". If so, that should do it.
If not, you still may be able to drag the clip back to the Event that it came from. Then restart iMovie.
Similar Messages
-
Please help if you can: I accidentally deleted the IPOD app for my IPAD 3. I need it to enable HOME SHARING. How can I restore or reinstall it? It is not an app I bought, it came on the IPAD from Apple
See These Support Articles for Home Sharing
Understanding > http://support.apple.com/kb/HT3819
How to > http://support.apple.com/kb/HT2688
Troubleshooting > http://support.apple.com/kb/TS2972 -
please help me... im having troubles using itunes, When i start listening music or play video, it pauses music/video for few seconds (2-7sec).
kindly help what i need to do... will appreciate much...thank u
my MBP specs:
13 inch early 2011
2.3 ghz intel core i5
4 gb 1333 mhz ddr3
mac os x lion 10.7.5 (11g63)
itunes 10.7 (21)1. A 13" screen is awfully small to do any efficient editing. The 15" gives you significantly more on-screen real estate.
2. All of the MacBook Pros can run FCE. However the graphics processor in the 13" model will limit some functionality with effects. See Tom's earlier comment.
3. Not much difference. All these cpu's are fast. There will be more overall system performance gain from the quad core at the slower speed.
4. FCE cannot use more than 4GB RAM anyway, so the 4GB that comes with every MBP is more than adequate. If you expect to use Aperture or CS5 then go for more RAM, otherwise there's not much reason to add RAM. You will be better off spending your money upgrading to the 7200rpm hard drive.
5. Everything will be smaller on the high res screen; there are just more pixels (1680x1050) on the same 15.4" screen area. (I have a 15" MBP with the standard 1440x900 screen and it is beautiful.) -
Please Help this video will not play in firefox
Hi every one I really need some help i can not get this video
to play in firefox but it will play in internet explorer any help
or insite would be great.
http://expressadservices.com/altlogo3.html
ThanksWhat kind of video is this and which plugin is used in IE to play this file?
-
PLEASE HELP! video card trouble
Hi,
I'm a noob to computers, so, I had a game called Knights of the Old republic that was very glitchy. I thought installing some kind of driver for my video card would work, so I found this http://osx86.co/f36/intel-gma-x3100-fix-10-5-6-t2527/ and installed it. Once installed, nothing changed for the good, but no videos would play. So, I booted using apple S and wrote (as the driver person told me to) "./RemoveGMA" . This made videos play, but now my GAMES didnt work. UGH. Now I do not know what to do and would appreciate help. Here is some information to help you.
An error code given from one of my games:
Video hardware acceleration is currently disabled due to safe mode operation or a driver error.
Please ensure you have a working OpenGL Hardware Renderer and try again.Neither iTunes nor QuickTime can convert MPEG-1/2 files to MPEG-4 format with audio. MPEG-1/2 files are "muxed," or multiplexed. This means both the audio and video are on one track. iTunes (and QT) fail to see the audio, and only convert the video.
Check out either one of the following third party MPEG-4 video converters...
Videora iPod Converter
MPEG Streamclip -
Urgent Help Required - Video Not playing on IE11 and Firefox
Hi,
I need Urgent Help , I am trying to Play this Presentation on IE 11 and Firefox and it doesn't play the Video part which is FLV and f4v formats.
I have been googeling it but couldn't find a solution so far ,Can anyone please help , its really urgent as I am done with the Project ,and this is the last bit which I have been struggling with for a while now.
Here is the HTML Code I am using :
<----------------------------------------------------------------------------------------- ----------------------------------------------------------------->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>index</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css" media="screen">
html, body { height:100%; background-color: #ffffff;}
body { margin:0; padding:0; overflow:hidden; }
#flashContent { width:100%; height:100%; }
</style>
</head>
<body>
<div id="flashContent">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="800" height="600" id="index" align="middle">
<param name="movie" value="index.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<param name="play" value="true" />
<param name="loop" value="true" />
<param name="wmode" value="window" />
<param name="scale" value="showall" />
<param name="menu" value="true" />
<param name="devicefont" value="false" />
<param name="salign" value="" />
<param name="allowScriptAccess" value="sameDomain" />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="index.swf" width="800" height="600">
<param name="movie" value="index.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<param name="play" value="true" />
<param name="loop" value="true" />
<param name="wmode" value="window" />
<param name="scale" value="showall" />
<param name="menu" value="true" />
<param name="devicefont" value="false" />
<param name="salign" value="" />
<param name="allowScriptAccess" value="sameDomain" />
<!--<![endif]-->
<a href="http://www.adobe.com/go/getflash">
<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
</a>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
</div>
</body>
</html>
<----------------------------------------------------------------------------------------- ----------------------------------------------------------------->Any Help in this Regards will be highly appreciated
-
Please help, constant video hardware error !
Please help, I can't find the problem. Am on windows 8 for a while now and I check my event viewer from time to time and I found several error massages that exists in my event viewer and the latest was while watching a movie on windows media player here the details. (I didn't have any problem while gaming even the GPU temp are idle due too every game requirements)
Source
Windows
Summary
Video hardware error
Date
27/06/2013 07:10
Status
Not reported
Description
A problem with your video hardware caused Windows to stop working correctly.
Problem signature
Problem Event Name: LiveKernelEvent
OS Version: 6.2.9200.2.0.0.256.48
Locale ID: 2057
Files that help describe the problem
WD-20130627-0710-01.dmp
sysdata.xml
WERInternalMetadata.xml
Extra information about the problem
BCCode: 141
BCP1: FFFFFA800FF394D0
BCP2: FFFFF880077772B0
BCP3: 0000000000000000
BCP4: 00000000000015C0
OS Version: 6_2_9200
Service Pack: 0_0
Product: 256_1
I want to know what happened to my card?!! did the 320.18 driver damage my GPU??!!! I cant specify what is the problem is it the card or a conflict or what I am getting nuts here please help.
This is the error from Windows Media Player.
Description
Faulting Application Path: C:\Program Files (x86)\Windows Media Player\wmplayer.exe
Problem signature
Problem Event Name: APPCRASH
Application Name: wmplayer.exe
Application Version: 12.0.9200.16420
Application Timestamp: 505aa40e
Fault Module Name: nvd3dum.dll
Fault Module Version: 9.18.13.1422
Fault Module Timestamp: 51427c76
Exception Code: c0000005
Exception Offset: 00773806
OS Version: 6.2.9200.2.0.0.256.48
Locale ID: 2057
Additional Information 1: 5861
Additional Information 2: 5861822e1919d7c014bbb064c64908b2
Additional Information 3: f3d5
Additional Information 4: f3d5be0cad2787556264647dc02181c3
My sys:
i3-3220 CPU 3.30GHz, Cooler Master Hyper TX3
CORSAIR Vengeance 8GB 2 x 4GB DDR3 1600
WD Caviar Blue 1TB SATA 6Gb/s WD10EZEX
MSI N560GTX-Ti Hawk (driver 314.22)
Monitor ViewSonic VX2240w 22" 1680x1050
ASUS P8B75-V Intel B75 SATA 6Gb/s USB 3.0 (latest bios update)
HEC Cougar Evolution, 3 fans
PSU XFX Core Edition PRO550WAnother thing I do get this error randomly with other apps like Firefox 22 and Skype too which is strange. my S/N : 602-V260-050B1201119526.
This error is from Skype
Description
A problem caused this program to stop interacting with Windows.
Faulting Application Path: C:\Windows\SysWOW64\WWAHost.exe
Problem signature
Problem Event Name: MoAppHang
Package Full Name: Microsoft.SkypeApp_1.8.0.111_x86__kzf8q xf38zg5c
Application Name: praid:App
Application Version: 6.2.9200.16420
Application Timestamp: 505a90d6
Hang Signature: d908
Hang Type: 2097152
OS Version: 6.2.9200.2.0.0.256.48
Locale ID: 2057
Additional Hang Signature 1: d908164defd45e704df38cec71cdb6e9
Additional Hang Signature 2: db7a
Additional Hang Signature 3: db7a68a61e111f839b8a39fd0e33855c
Additional Hang Signature 4: d908
Additional Hang Signature 5: d908164defd45e704df38cec71cdb6e9
Additional Hang Signature 6: db7a
Additional Hang Signature 7: db7a68a61e111f839b8a39fd0e33855c
Description
A problem with your video hardware caused Windows to stop working correctly.
Problem signature
Problem Event Name: LiveKernelEvent
OS Version: 6.2.9200.2.0.0.256.48
Locale ID: 2057
Files that help describe the problem
WD-20130626-0316-01.dmp
sysdata.xml
WERInternalMetadata.xml
View a temporary copy of these files
Warning: If a virus or other security threat caused the problem, opening a copy of the files could harm your computer.
Extra information about the problem
BCCode: 141
BCP1: FFFFFA8007997010
BCP2: FFFFF880069D42B0
BCP3: 0000000000000000
BCP4: 0000000000000150
OS Version: 6_2_9200
Service Pack: 0_0
Product: 256_1 -
Please help with video importing
I just got my iBook G4 so that I could make an iMovie for an event that we are having in a few weeks.
I own a Sony DCR trv330 Digital8 Handycam. I have tried everything that I have read to try to get iMovie to import my video and it still say that there is no camera attached.
Is this camera even compatable? Please help quickly.
iBook G4 Mac OS X (10.4.5)Are there any other devices connected to the Firewire port? Sometimes this can cause a conflict.
According to the manual for the Sony TRV340, you need to go into the menu system and set the AV/DV to "On".
After that, try a different cable. After that, have you used any device on the Firewire port? It is rare but the port may be fried.
Mike -
Need help pulling data from an outside file into my array. Please help =)
Hi,
I need help adapting my array to read the interest rates from an outside file. Here is my code and the outside file I wrote. Please help. Oh, the array in question is on line 259, inside of my calculation() method.
Thanks...
import javax.swing.*;
import javax.swing.event.*;
import java.awt.*;
import java.awt.event.*;
import java.text.NumberFormat;
import java.text.DecimalFormat;
import java.io.*;
import javax.swing.JOptionPane;
public class Workshop5 extends JFrame implements ActionListener
//declare gui components
//declare labels
JPanel contentPane = new JPanel();
JPanel graphPane = new JPanel();
JLabel instructionLabel = new JLabel();
JLabel amountLabel = new JLabel();
JLabel orLabel = new JLabel();
JLabel comboBoxLabel = new JLabel();
JLabel termLabel = new JLabel();
JLabel rateLabel = new JLabel();
JLabel calcLabel = new JLabel();
JLabel paymentLabel = new JLabel();
JLabel tableLabel = new JLabel();
//declare font object
Font labelFont = new Font("Tahoma", Font.PLAIN, 16);
//declare text fields
JTextField amountField = new JTextField(20);
JTextField termField = new JTextField(20);
JTextField rateField = new JTextField(20);
JTextField paymentField= new JTextField(20);
//declare combo box for loan selection
JComboBox comboBox = new JComboBox();
//declare button group and radio buttons
ButtonGroup buttonGroup = new ButtonGroup();
JRadioButton enterRadioButton = new JRadioButton("Enter amount, term, & rate", true);
JRadioButton selectRadioButton = new JRadioButton("Select a preset term/rate loan", false);
//declare button objects
JButton clearButton = new JButton();
JButton calcButton = new JButton();
JButton quitButton = new JButton();
//declare text area for amortization
JTextArea amortTextArea = new JTextArea();
JTextArea testTextArea = new JTextArea();
//declare scroll bar for amortization table
JScrollPane scrollPane = new JScrollPane(amortTextArea,ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS,ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED);
public Workshop5()
instructionLabel.setText("Choose one of the following payment calculation options:");
instructionLabel.setFont(new Font("Tahoma",Font.PLAIN,16));
//adds both buttons to button group
buttonGroup.add(enterRadioButton);
buttonGroup.add(selectRadioButton);
enterRadioButton.setFont(labelFont);
enterRadioButton.setBackground(Color.WHITE);
enterRadioButton.setContentAreaFilled(false);
enterRadioButton.addActionListener(this); //adds action listener to enter radio button
orLabel.setText("OR");
orLabel.setFont(new Font("Tahoma",Font.BOLD,18));
selectRadioButton.setFont(labelFont);
selectRadioButton.setBackground(Color.WHITE);
selectRadioButton.setContentAreaFilled(false);
selectRadioButton.addActionListener(this); //adds action listener to select radio button
amountLabel.setText("Enter mortgage amount");
amountLabel.setFont(new Font("Tahoma", Font.PLAIN,16));
amountField.requestFocusInWindow();
termLabel.setText("Enter term length in years:");
termLabel.setFont(new Font("Tahoma", Font.PLAIN,14));
rateLabel.setText("Enter interest rate:");
rateLabel.setFont(new Font("Tahoma", Font.PLAIN,14));
comboBoxLabel.setText("Select a loan:");
comboBoxLabel.setFont(new Font("Tahoma", Font.PLAIN,14));
comboBox.setBackground(new Color(255,255,255));
comboBox.setFont(new Font("Tahoma", Font.PLAIN, 14));
comboBox.setEnabled(false);
ComboBox();
calcLabel.setText("Press Calculate button to determine monthly payment.");
calcLabel.setFont(new Font("Tahoma", Font.PLAIN, 16));
calcButton.setText("Calculate");
calcButton.setFont(new Font("Tahoma", Font.BOLD, 14));
calcButton.addActionListener(this);
//define monthly payment label
paymentLabel.setText("Monthly payment:");
paymentLabel.setFont(new Font("Tahoma", Font.PLAIN, 16));
//define monthly payment text field
paymentField.setFont(new Font("Tahoma", Font.BOLD,16));
paymentField.setBackground(new Color(255,255,255));
paymentField.setEditable(false);
//define clear button
clearButton.setText("Clear");
clearButton.setFont(new Font("Tahoma", Font.BOLD,14));
clearButton.addActionListener(this);
//define quit button
quitButton.setText("Quit");
quitButton.setFont(new Font("Tahoma", Font.BOLD,14));
quitButton.addActionListener(this);
tableLabel.setText("Amoritization Table");
tableLabel.setFont(new Font("Tahoma", Font.BOLD, 16));
graphPane.setBackground(Color.WHITE);
//add components to content
getContentPane().add(contentPane);
contentPane.setLayout(null);
addComponent(contentPane, instructionLabel, 80,10,450,26);
addComponent(contentPane, enterRadioButton, 30,40,220,30);
addComponent(contentPane, orLabel, 280,40,100,30);
addComponent(contentPane, selectRadioButton, 335,40,350,30);
addComponent(contentPane, amountLabel, 100,80,220,26);
addComponent(contentPane, amountField, 300,80,150,26);
addComponent(contentPane, termLabel, 15,125,200,30);
addComponent(contentPane, termField, 195,125,125,30);
addComponent(contentPane, rateLabel, 62,160,200,30);
addComponent(contentPane, rateField, 195,165,125,30);
addComponent(contentPane, comboBoxLabel, 400,125,200,26);
addComponent(contentPane, comboBox, 400,155,150,30);
addComponent(contentPane, calcLabel, 100,200,400,30);
addComponent(contentPane, calcButton, 250,240,100,30);
addComponent(contentPane, paymentLabel, 150,285,200,30);
addComponent(contentPane, paymentField, 300,285,100,30);
addComponent(contentPane, clearButton, 100,330,100,30);
addComponent(contentPane, quitButton, 400,330,100,30);
addComponent(contentPane, tableLabel, 200,370,300,26);
addComponent(contentPane, scrollPane, 10,400,450,360);
addComponent(contentPane, graphPane, 475,400,305,360);
//add window listener to close window when user presses X
addWindowListener(new WindowAdapter()
public void windowClosing(WindowEvent e)
System.exit(0);
pack();
//method to add components
private void addComponent(Container container, Component c, int x, int y, int width, int height)
c.setBounds(x, y, width, height);
container.add(c);
//action performed method
public void actionPerformed(ActionEvent event)
Object source = event.getSource();
if (source == calcButton)
Calculate();
if (source == clearButton)
Clear();
if (source == quitButton)
Exit();
//defines active area based on user selection of mortgage calculation method
//if user chooses to enter the mortgage manually, combo box fields are inactive
if (source == enterRadioButton)
comboBox.setEnabled(false);
termField.setEnabled(true);
termField.setEditable(true);
rateField.setEnabled(true);
rateField.setEditable(true);
amountField.setText("");
amountField.requestFocusInWindow();
termField.setText("");
rateField.setText("");
paymentField.setText("");
amortTextArea.setText("");
//if user chooses to select from a preset mortgage, rate and term fields are inactive
if (source == selectRadioButton)
comboBox.setEnabled(true);
termField.setEnabled(false);
termField.setEditable(false);
rateField.setEnabled(false);
rateField.setEditable(false);
amountField.setText("");
amountField.requestFocusInWindow();
termField.setText("");
rateField.setText("");
paymentField.setText("");
amortTextArea.setText("");
}//end of action performed method
//combo box method
public void ComboBox()
String[] LoanArray = {" 7 years at 5.35 %", " 15 years at 5.50 %", " 30 years at 5.75 %"};
for (int i = 0; i < LoanArray.length; i++)
comboBox.addItem(LoanArray);
}//end combo box method
//calculation method
void Calculate()
//resets fields
paymentField.setText("");
amortTextArea.setText("");
//calculation variables
NumberFormat currency = NumberFormat.getCurrencyInstance();
int [] termArray = {7, 15, 30}; //array of years
double [] yearlyInterestArray = {5.35, 5.5, 5.75}; //array of interest
int totalMonths = 0; //total months
double Loan = 0.0; //amount of loan
double MonthlyInterest = 0.0; //monthly interest rate
double Payment = 0.0; //calculate payment
double monthlyPayment = 0.0; //calculate monthly payment
double Interest = 0.0; //variable for Interest Array input
int Term = 0; //variable for Term Array input
double NewMonthlyInterest = 0.0; //new interest amount
double NewLoan = 0.0; //new loan amount
double Reduction = 0.0; //principle reduction
//validate input
try
Loan = Double.parseDouble(amountField.getText());
catch (NumberFormatException e)
JOptionPane.showMessageDialog(null,"Invalid Entry. Please enter valid loan amount.", "Error", JOptionPane.WARNING_MESSAGE);
//resets input fields after error message
amountField.setText("");
amountField.requestFocusInWindow();
//if select button is chosen
if (selectRadioButton.isSelected())
int index = comboBox.getSelectedIndex();
Term = termArray[index];
Interest = yearlyInterestArray[index];
//if user chooses to enter mortgage information
else
if (enterRadioButton.isSelected())
//validates input
try
Term = Integer.parseInt(termField.getText());
catch (NumberFormatException e)
JOptionPane.showMessageDialog(null,"Invalid entry. Please enter valid term length in years.", "Error",JOptionPane.WARNING_MESSAGE);
//clears fields after error message
termField.setText("");
termField.requestFocusInWindow();
try
Interest = Double.parseDouble(rateField.getText());
catch (NumberFormatException e)
JOptionPane.showMessageDialog(null,"Invalid entry. Please enter valid rate (without percent symbol).","Error",JOptionPane.WARNING_MESSAGE);
//clears fields after error message
rateField.setText("");
rateField.requestFocusInWindow();
//perform calculations
if (Loan > 0)
Loan = Double.parseDouble(amountField.getText());
MonthlyInterest = (Interest / 12)/100;
totalMonths = Term * 12;
monthlyPayment = Loan * MonthlyInterest *(Math.pow((1 + MonthlyInterest), totalMonths)/(Math.pow((1 + MonthlyInterest), totalMonths)-1));
paymentField.setText("" + currency.format(monthlyPayment));
//send information to amortization text area
amortTextArea.append("Number\t");
amortTextArea.append(" Amount\t");
amortTextArea.append("Interest\t");
amortTextArea.append("Principle\t");
amortTextArea.append("Balance\n");
NewLoan = Loan;
for (int i = 1; i <= totalMonths; i++)
NewMonthlyInterest = MonthlyInterest * NewLoan;
Reduction = monthlyPayment - NewMonthlyInterest;
NewLoan = NewLoan - Reduction;
amortTextArea.append(" " + i +"\t");
amortTextArea.append(" " + currency.format(monthlyPayment) + "\t");
amortTextArea.append(" " + currency.format(NewMonthlyInterest)+ "\t");
amortTextArea.append(" " + currency.format(Reduction) + "\t");
amortTextArea.append(" " + currency.format(NewLoan) + "\n");
//resets fields if loan amount is less than zero
if((Loan <= 0 || Term <= 0 || Interest <= 0))
paymentField.setText("");
amortTextArea.setText("");
}//end calcualtion method
//clear method
void Clear()
amountField.setText("");
amountField.requestFocusInWindow();
termField.setText("");
rateField.setText("");
paymentField.setText("");
amortTextArea.setText("");
}//end of clear method
//main method
public static void main(String args[])
Workshop5 f = new Workshop5();
f.setTitle("Carol's Mortgage Calculator");
f.setBounds(200,100,800,800);
f.setResizable(false);
f.setVisible(true);
}//end of main method
//exit method
void Exit()
System.exit(0);
}//end of exit method
}//program end
My data file is called: "InterestData.dat" and only contains the following text:
5.35, 5.5, 5.75Ok, now I am getting this error message:
cannot resolve symbol method lenght()
Please help me out here, this is due tomorrow and I've been killing myself on it...
attaching program with revised code included, see beginning of calculation method line 250:
import javax.swing.*;
import javax.swing.event.*;
import java.awt.*;
import java.awt.event.* ;
import java.text.NumberFormat;
import java.text.DecimalFormat;
import java.io.*;
import javax.swing.JOptionPane;
public class Workshop5 extends JFrame implements ActionListener
//declare gui components
//declare labels
JPanel contentPane = new JPanel();
JPanel graphPane = new JPanel();
JLabel instructionLabel = new JLabel();
JLabel amountLabel = new JLabel();
JLabel orLabel = new JLabel();
JLabel comboBoxLabel = new JLabel();
JLabel termLabel = new JLabel();
JLabel rateLabel = new JLabel();
JLabel calcLabel = new JLabel();
JLabel paymentLabel = new JLabel();
JLabel tableLabel = new JLabel();
//declare font object
Font labelFont = new Font("Tahoma", Font.PLAIN, 16);
//declare text fields
JTextField amountField = new JTextField(20);
JTextField termField = new JTextField(20);
JTextField rateField = new JTextField(20);
JTextField paymentField= new JTextField(20);
//declare combo box for loan selection
JComboBox comboBox = new JComboBox();
//declare button group and radio buttons
ButtonGroup buttonGroup = new ButtonGroup();
JRadioButton enterRadioButton = new JRadioButton("Enter amount, term, & rate", true);
JRadioButton selectRadioButton = new JRadioButton("Select a preset term/rate loan", false);
//declare button objects
JButton clearButton = new JButton();
JButton calcButton = new JButton();
JButton quitButton = new JButton();
//declare text area for amortization
JTextArea amortTextArea = new JTextArea();
JTextArea testTextArea = new JTextArea();
//declare scroll bar for amortization table
JScrollPane scrollPane = new JScrollPane(amortTextArea, ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS,ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED);
public Workshop5()
instructionLabel.setText("Choose one of the following payment calculation options:");
instructionLabel.setFont(new Font("Tahoma",Font.PLAIN,16));
//adds both buttons to button group
buttonGroup.add(enterRadioButton);
buttonGroup.add (selectRadioButton);
enterRadioButton.setFont(labelFont);
enterRadioButton.setBackground(Color.WHITE);
enterRadioButton.setContentAreaFilled(false);
enterRadioButton.addActionListener(this); //adds action listener to enter radio button
orLabel.setText("OR");
orLabel.setFont(new Font("Tahoma",Font.BOLD,18));
selectRadioButton.setFont(labelFont);
selectRadioButton.setBackground(Color.WHITE);
selectRadioButton.setContentAreaFilled(false);
selectRadioButton.addActionListener (this); //adds action listener to select radio button
amountLabel.setText("Enter mortgage amount");
amountLabel.setFont(new Font("Tahoma", Font.PLAIN,16));
amountField.requestFocusInWindow();
termLabel.setText("Enter term length in years:");
termLabel.setFont(new Font("Tahoma", Font.PLAIN,14));
rateLabel.setText("Enter interest rate:");
rateLabel.setFont(new Font("Tahoma", Font.PLAIN,14));
comboBoxLabel.setText("Select a loan:");
comboBoxLabel.setFont(new Font("Tahoma", Font.PLAIN,14));
comboBox.setBackground(new Color(255,255,255));
comboBox.setFont(new Font("Tahoma", Font.PLAIN, 14));
comboBox.setEnabled(false);
ComboBox();
calcLabel.setText("Press Calculate button to determine monthly payment.");
calcLabel.setFont(new Font("Tahoma", Font.PLAIN, 16));
calcButton.setText("Calculate");
calcButton.setFont(new Font("Tahoma", Font.BOLD, 14));
calcButton.setBackground(new Color(202,255,112));
calcButton.addActionListener(this);
//define monthly payment label
paymentLabel.setText("Monthly payment:");
paymentLabel.setFont(new Font("Tahoma", Font.PLAIN, 16));
//define monthly payment text field
paymentField.setFont (new Font("Tahoma", Font.BOLD,16));
paymentField.setBackground(new Color(255,255,255));
paymentField.setEditable(false);
//define clear button
clearButton.setText("Clear");
clearButton.setFont(new Font("Tahoma", Font.BOLD,14));
clearButton.setBackground(new Color(202,255,112));
clearButton.addActionListener(this);
//define quit button
quitButton.setText("Quit");
quitButton.setFont(new Font("Tahoma", Font.BOLD,14));
quitButton.setBackground(new Color(202,255,112));
quitButton.addActionListener(this);
//define label for amortization table
tableLabel.setText ("Amoritization Table");
tableLabel.setFont(new Font("Tahoma", Font.BOLD, 16));
graphPane.setBackground(Color.WHITE);
//add components to content
getContentPane().add(contentPane);
contentPane.setLayout(null);
addComponent(contentPane, instructionLabel, 80,10,450,26);
addComponent(contentPane, enterRadioButton, 30,40,220,30);
addComponent(contentPane, orLabel, 280,40,100,30);
addComponent(contentPane, selectRadioButton, 335,40,350,30);
addComponent(contentPane, amountLabel, 100,80,220,26);
addComponent(contentPane, amountField, 300,80,150,26);
addComponent(contentPane, termLabel, 15,125,200,30);
addComponent(contentPane, termField, 195,125,125,30);
addComponent(contentPane, rateLabel, 62,160,200,30);
addComponent(contentPane, rateField, 195,165,125,30);
addComponent(contentPane, comboBoxLabel, 400,125,200,26);
addComponent(contentPane, comboBox, 400,155,150,30);
addComponent(contentPane, calcLabel, 100,200,400,30);
addComponent(contentPane, calcButton, 250,240,100,30);
addComponent(contentPane, paymentLabel, 150,285,200,30);
addComponent(contentPane, paymentField, 300,285,100,30);
addComponent(contentPane, clearButton, 100,330,100,30);
addComponent(contentPane, quitButton, 400,330,100,30);
addComponent(contentPane, tableLabel, 200,370,300,26);
addComponent(contentPane, scrollPane, 10,400,450,360);
addComponent(contentPane, graphPane, 475,400,305,360);
//add window listener to close window when user presses X
addWindowListener(new WindowAdapter()
public void windowClosing(WindowEvent e)
System.exit(0);
pack();
//method to add components
private void addComponent(Container container, Component c, int x, int y, int width, int height)
c.setBounds(x, y, width, height);
container.add(c);
//action performed method
public void actionPerformed(ActionEvent event)
Object source = event.getSource();
if (source == calcButton)
Calculate();
if (source == clearButton)
Clear();
if (source == quitButton)
Exit();
//defines active area based on user selection of mortgage calculation method
//if user chooses to enter the mortgage manually, combo box fields are inactive
if (source == enterRadioButton)
comboBox.setEnabled(false);
termField.setEnabled(true);
termField.setEditable(true);
rateField.setEnabled(true);
rateField.setEditable(true);
amountField.setText ("");
amountField.requestFocusInWindow();
termField.setText("");
rateField.setText("");
paymentField.setText ("");
amortTextArea.setText("");
//if user chooses to select from a preset mortgage, rate and term fields are inactive
if (source == selectRadioButton)
comboBox.setEnabled(true);
termField.setEnabled(false);
termField.setEditable(false);
rateField.setEnabled (false);
rateField.setEditable(false);
amountField.setText("");
amountField.requestFocusInWindow();
termField.setText ("");
rateField.setText("");
paymentField.setText("");
amortTextArea.setText("");
}//end of action performed method
//combo box method
public void ComboBox()
String[] LoanArray = {" 7 years at 5.35 %", " 15 years at 5.50 %", " 30 years at 5.75 %"};
for (int i = 0; i < LoanArray.length; i++)
comboBox.addItem(LoanArray);
}//end combo box method
//calculation method
void Calculate()
//resets fields
paymentField.setText("");
amortTextArea.setText("");
//calculation variables
NumberFormat currency = NumberFormat.getCurrencyInstance();
//declare input stream object
InputStream istream;
//create a file object to refer to the outside file
File interestData = new File("InterestFile.dat");
//assign instream to the new file object
istream = new FileInputStream(interestData);
try
StringBuffer sb = new StringBuffer();
BufferedReader in = new BufferedReader(new FileReader(interestData));
String line = "";
while((line = in.readLine()) != null)
sb.append(line);
in.close();
String fileData = sb.toString();
String[] splitData = fileData.split(", ");
double [] yearlyInterestArray = new double[splitData.length()];
for(int j = 0; j < splitData.length(); j++)
yearlyInterestArray[j] = new Double(splitData[j]).doubleValue();
catch (IOException e)
JOptionPane.showMessageDialog(null, "File does not exist." + e.getMessage());
int [] termArray = {7, 15, 30}; //array of years
double [] yearlyInterestArray = { 5.35, 5.5, 5.75}; //array of interest
int totalMonths = 0; //total months
double Loan = 0.0; //amount of loan
double MonthlyInterest = 0.0; //monthly interest rate
double Payment = 0.0; //calculate payment
double monthlyPayment = 0.0; //calculate monthly payment
double Interest = 0.0; //variable for Interest Array input
int Term = 0; //variable for Term Array input
double NewMonthlyInterest = 0.0; //new interest amount
double NewLoan = 0.0; //new loan amount
double Reduction = 0.0; //principle reduction
//validate input
try
Loan = Double.parseDouble(amountField.getText());
catch (NumberFormatException e)
JOptionPane.showMessageDialog(null,"Invalid Entry. Please enter valid loan amount.", "Error", JOptionPane.WARNING_MESSAGE);
//resets input fields after error message
amountField.setText("");
amountField.requestFocusInWindow ();
//if select button is chosen
if (selectRadioButton.isSelected())
int index = comboBox.getSelectedIndex ();
Term = termArray[index];
Interest = yearlyInterestArray[index];
//if user chooses to enter mortgage information
else
if (enterRadioButton.isSelected())
//validates input
try
Term = Integer.parseInt(termField.getText());
catch (NumberFormatException e)
JOptionPane.showMessageDialog(null,"Invalid entry. Please enter valid term length in years.", "Error",JOptionPane.WARNING_MESSAGE);
//clears fields after error message
termField.setText("");
termField.requestFocusInWindow();
try
Interest = Double.parseDouble(rateField.getText());
catch (NumberFormatException e)
JOptionPane.showMessageDialog(null,"Invalid entry. Please enter valid rate (without percent symbol).","Error",JOptionPane.WARNING_MESSAGE);
//clears fields after error message
rateField.setText("");
rateField.requestFocusInWindow();
//perform calculations
if (Loan > 0)
Loan = Double.parseDouble(amountField.getText ());
MonthlyInterest = (Interest / 12)/100;
totalMonths = Term * 12;
monthlyPayment = Loan * MonthlyInterest *(Math.pow ((1 + MonthlyInterest), totalMonths)/(Math.pow((1 + MonthlyInterest), totalMonths)-1));
paymentField.setText("" + currency.format(monthlyPayment));
//send information to amortization text area
amortTextArea.append("Number\t");
amortTextArea.append(" Amount\t");
amortTextArea.append("Interest\t");
amortTextArea.append("Principle\t");
amortTextArea.append("Balance\n");
NewLoan = Loan;
for (int i = 1; i <= totalMonths; i++)
NewMonthlyInterest = MonthlyInterest * NewLoan;
Reduction = monthlyPayment - NewMonthlyInterest;
NewLoan = NewLoan - Reduction;
amortTextArea.append(" " + i +"\t");
amortTextArea.append (" " + currency.format(monthlyPayment) + "\t");
amortTextArea.append(" " + currency.format(NewMonthlyInterest)+ "\t");
amortTextArea.append(" " + currency.format(Reduction) + "\t");
amortTextArea.append(" " + currency.format(NewLoan) + "\n");
//resets fields if loan amount is less than zero
if((Loan <= 0 || Term <= 0 || Interest <= 0))
paymentField.setText("");
amortTextArea.setText("");
}//end calcualtion method
//clear method
void Clear()
amountField.setText("");
amountField.requestFocusInWindow();
termField.setText("");
rateField.setText("");
paymentField.setText("");
amortTextArea.setText("");
}//end of clear method
//main method
public static void main(String args[])
Workshop5 f = new Workshop5();
f.setTitle("Carol's Mortgage Calculator");
f.setBounds(200,100,800,800);
f.setResizable(false);
f.setVisible(true);
}//end of main method
//exit method
void Exit()
System.exit(0);
}//end of exit method
}//program end -
Please help with video transfer
I just got a Canon HF200 camcorder but can't figure out how to transfer to my iMac. It came with transfer software for the PC, but nothing for Mac...ugh!. I can transfer *.mts files to my desktop, but nothing opens them.
Can someone please help!!???
Thanks!You need to plug in your camera to wall power, not batteries. Connect via USB. Turn camera on to the correct mode for transfer to computer according to owners manual. Then start iMovie and the import screen should come up.
-
Please Help Ipod video wont Copy all songs
My Ipod will not copy all of my songs on I tunes it will only copy 350mg out of 23gb of media. It is not my computer I have tried this on other computers with different songs and media with the same outcome. I already had it serviced and they did not help, they send me the same ipod back with the same problem. They told me all I had to do is the 5 rs or something. I have tried everything on the site. Please help. Does anybody know a number i can call to talk to an actual person for ipod support?
Did you see these?
Some songs in iTunes won't copy to iPod.
The Five Rs.
Here is a number, but be aware there may be a charge.
http://www.apple.com/contact/ -
PLEASE HELP LOCATE SONGS FROM EXTERNAL HD (Cloud)
First off, I would like to thank ANYONE who can help me out please! I am desperate now for some advice to help me through this, I have spent the last 10 Hours (Not Exaggerating) trying to find a solution to my problem online and reading through countless things I HAVE NOT been able to get an answer to resolve the issue that I am having. Please I beg you to help me! I just wanna call Apple Support so that someone can walk me through this but I am using a Windows and they won't take calls from Windows users (which is kind of lame since I am an Iphone/Ipad/Itunes customer just not on an Apple Computer) and honestly I would even pay money to have this issue fixed already I just don't wanna waste any more time on it!!!
SO, that being said. Here is the most concise explanation I can give you of my troubles!
1. I have both a Laptop and a Desktop. My Laptop has been my primary source for Itunes for the passed 8 years, however, it is old and I want to start using my Desktop for Itunes from now on..also, I NEED to free up space on my Laptop so that I can back up my Iphone 5 which has a broken screen, but that's another story!
2. I Purchased something called a "WD MY CLOUD" Which is basically a personal ICloud that has 2TB of external HD Space on it. I hooked up my WDMyCloud and configured it, got it working perfectly, and I began the multiple hour long process to transfer my ITUNES Folder from my Laptop over to the WDMyCloud.
3. All of the files and songs were successfully transferred from my Laptop to the WDMyCloud.
4. I Installed Itunes onto my Desktop.
5. I shift+clicked Itunes and chose the Itunes Library from my WDMyCloud. I believe the file is found in: \\WDMYCLOUD\Oliver\iTunes\iTunes Library. (And that is the .itl)
6. When I have Itunes open, I go to preferences, and I change the MEDIA Folder to the iTunes Music Folder located on my WDMyCloud. I believe the file is found as: \\WDMYCLOUD\Oliver\Itunes\iTunes Music. (It does have all of my songs in there on the WDMyCloud in Folders by Album or however itunes had it organized)
7. Now I am staring at my Itunes Playlists and All of my Songs are there, however, whenever I try to Play ANY Song on there I receive this error: "The song "xx" could not be used because the original file could not be found. Would you like to Locate it?" (And no, I would not like to manually locate over 3,000 songs)
Also, every single Song has an "!" Exclamation mark next to it.
8. If I use "Get Info" about the track to see where Itunes is looking for the track, I will show you an example now here to what it says:
"file://localhost/C:/Users/Oliver/Downloads/Firebeatz - Gangster (Original Mix).mp3"
(Now I do realize that this is incorrect, it should be looking for the songs in my WDMyCloud, that path above is from my Laptop's Downloads Folder and I have no idea how to fix this.)
9. I have also tried using the "FindTracks.vbs" on my \\WDMYCLOUD\Oliver\Itunes\iTunes Music Folder and this did nothing, at all.
10. I have opened the Itunes Library XML that is saved onto my WDMyCloud from my Laptop, and it shows the script as:
<plist version="1.0"><dict><key>Major Version</key><integer>1</integer><key>Minor Version</key><integer>1</integer><key>Date</key><date>2014-05-24T16:40:35Z</date><key>Application Version</key><string>11.2</string><key>Features</key><integer>5</integer><key>Show Content Ratings</key><true/><key>Music Folder</key><string>file://localhost//WDMYCLOUD/Oliver/Itunes/iTunes%20Music</string><key>Library Persistent ID</key><string>5C3728163E81BB1D</string><key>Tracks</key>
<p
^^ Now I'm not really sure how clumped up that is going to look once I post cuz when I tried copy/pasting it from the XML on to here it came out looking super weird, but as you can see the key thing there is that the file it says it's looking in is the Itunes Music file in my WDMyCloud. So I don't know what could be wrong with the XML script path if there is anything wrong with it at all. The rest of the XML is super super long list of all my tracks and albums an such which is obviously unimportant to this matter. But maybe this can help figure out my problem.
Anyway, that's about as far as I was able to get after 10 hours of research, and like I said, still no solution. I'm stuck! Please please please help me figure this out! One of the biggest reasons I purchased this WDMyCloud was to use it as a consistent Itunes mediator between my devices and I absolutely MUST free up space on my Laptop ASAP and this is the only way! Thank you so much for your help in advance!!See Make a split library portable for some general advice on making a working library portable. It should be less hassle than fixing a broken one.
Since the library works perfectly on the laptop I would suggest you start over and do it like this;
1. Create a new iTunes folder in the root of the external as \\WDMYCLOUD\iTunes (capitalised as shown please, just to appease my OCD)
2. Copy into it the following items from C:\Users\Oliver\Music\iTunes
Album Artwork
iTunes Library.itl
iTunes Library Extras.itdb
iTunes Library Genius.itdb
sentinel
3. Shift-start iTunes and open the library at \\WDMYCLOUD\iTunes\iTunes Library.itl
4. Under Edit > Preferences > Advanced change the media folder to \\WDMYCLOUD\iTunes\iTunes Media (again capitalised as shown please)
5. Use File > Library > Organize Library. Tick both boxes, or the one that isn't greyed out, then click OK.
iTunes will gather in copies of all your media files, putting them into the correct locations so that the library is in the modern layout, and able to be moved from one machine to another.
I'd recommend you clone the entire iTunes folder to another drive (see this backup tip) before you think about cleaning the originals.
If your library is large then having the library files on a network share will slow things down as the database has to be written out almost any time you do anything with your library. Once you've connected the library to the new computer and had it opened and working you can copy the library files and Album Artwork folder into the local C:\Users\Oliver\Music\iTunes folder (deleteing what is already there first) then shift-start-iTunes and connect to C:\Users\Oliver\Music\iTunes\iTunes Library.itl. If/when you want to move the library to a different drive/computer copy the files back out to the drive and access the library there at lease once before the move.
tt2 -
Please help. Setting up a Library on external HD and reconfigure Apple TV
Please help. I have a macbook air and recently purchased the apple tv. I am looking for help on 2 things.
1- how do I create a new iTunes library on my external HD so that the movies I have purchased from iTunes can be stored there instead of on the hd of my MBA and I can free up the space on the MBA?
2- I have read on a few of the posts that there is a way to reconfigure the Apple TV to sync with that new library (on the external HD) instead of being linked with the MBA hd. But none of them gives steps needed to get this done. Can someone please help??
Thank you!!1. On the external HD create a new empty folder call it what you will (itunes new folder), then in itunes preferences/advanced change your 'itunes music folder location' by locating and selecting the new folder. Ensure that 'keep itunes...organised' and 'copy itunes....' check boxes are checked. Close preferences and then select file/library/consolidate library from your menu bar.
This will then copy your entire media collection to the new folder, once complete you can then trash the old itunes folder which by default should be at user/music/itunes/itunes music.
2. If you follow the steps above there should be no need to reconfigure the tv, it should continue to see the library in the same way as before.
Note.
You will no longer be able to play any media on the MBA or stream any content to the tv unless your ext HDD is attached.
It is possible to keep some content on the MBA so that you can access it and play it while on the go, this is fairly easy but not quite as easy as keeping your library in one place, let us know if you want to do this. -
Help - sound stream from one clip playing over stream from another.
I have a layout with narration and a nav bar. When I click a nav button for section 2, the audio from section 1 (set to stream) continues to play over the audio for section 2. This cumulates so if I click buttons for sections 3, 4 and 5, I get five audio files playing on top of each other. Please HELP! Sections are individual movie clips with embedded audio streaming on a Sounds layer in each movie clip.
Thanks, yeah, I'm not great on Actionscript, but I can work my way through it (AS3). Currently the sounds are just in a sound layer on the timeline and aren't controlled by actionscript. So if I put SoundMixer.stopAll(); in the first frame of each section, I need sound play() to start the new audio? Each section has several narrations that are timed to the animations on the timeline, so rather thatn having the sound in the timeline, I need to trigger them with the actions script? How would I code this - say my sound file is named sound22.aif would this be correct?
snd22 = new Sound();
snd22.attachSound("sound22.aif");
snd22.start(); -
Please help to (re)organize my library!
My iTunes library is a mess and I don't know how to (re)organize it.
First problem: my iTunes library (.xml and related files) are on my laptop data disk D:, i want to migrate it to my external harddisk I (Itunes).
Second problem: my music files should ALL be stored on the external hard disk I:, but when I consolidate the library it starts copying the files to D:, till that is full. How to get it ALL on external drive I: and to get rid of the unnecessary copies on D:?
Third problem: some time ago I have chosen the option File > Library > Organize Library > upgrade to iTunes Media Organization. As a confusing result PART of my files have been moved to a specific iTunes/MUSIC folder with subfolders-per-artist, but the rest of the artists have folders directly in the root iTunes/ folder. Some artists have folders in both sections - and the result is that in the iTunes grid they appear as two separate artists (with the same name). How to end this mess and put ALL music files in the iTunes/MUSIC subfolder?
Maybe the disorganized library is (partly) responsible for iTunes' very slow performance. Is there, by the way, a limit to the library's capacity? How many files/songs are the maximum? And what if you want/need more?
Thanks for helping!Hi,
Copy the following library files & folder from their existing location to I:iTunes
*iTunes Library.itl*
*iTunes Library Extras.itdb*
*iTunes Library Genius.itdb*
sentinel
*Album Artwork* (and all subfolders)
+Ignore *iTunes (Music) Library.xml* as iTunes will rebuild this later.+
Create a folder called *I:\iTunes\iTunes Media* to hold the media.
Launch iTunes and *immediately press and continue to hold down the SHIFT key* until asked to create or choose a library. Naviagte to and open the library file at *I:\iTunes\iTunes Library.itl*.
Select *Edit > Preferences > Advanced* and change the iTunes Media folder location to *I:\iTunes\iTunes Media*. Consolidate if propmted, otherwise use *File > Library > Organise Library > Consolidate Files*. If *File > Library > Organise Libary > Upgrade to iTunes Media organisation* is not greyed out, then tick the box to "repair" this option. (iTunes 9.2 "forgot" I'd already upgraded)
Clear up all the old copies of your files on C: & D:.
You want to end up with something like the right side of the image below with the library files at *<some path>\iTunes* and the media files (inside the red box) at *<some path>\iTunes\iTunes Media*. When organised like this you can connect the drive to a different machine, which might assign a different drive letter, and use the SHIFT-start iTunes method to open the library without it "breaking", i.e. it will still be able to play your files even though they may now be on a new path because the relative path from the library files to the media remains unchanged.
tt2
Maybe you are looking for
-
Prodlem with dragging and dropping of cust:showDetailFrame
Hi, I am having a dashboard in which i am having various cust:showDetailFrame inside multiple cust:panelCustomizable. Now the problem is when ever i drag drop cust:showDetailFrame from one cust:panelCustomizable into another the region inside cust:sh
-
I'm trying to get a handle to an object using CVI_ActiveApp. It works, but it opens a new CVI application when it is run using the command line. Is it possible to get a handle to an object without a new CVI application opening up?
-
Default debug mode of tcode in transaction iview
Hi experts, I create a transaction iview for tcode se38 and everything is ok except that iView does not show se38 in normal way but in debug mode. Does anyone encounter this problem, please give me the solution? I guess that the some settings concern
-
Urgent :Posting Payroll results from Legacy system to FI/co
Hi Experts, A client requirment is such that they have to post payroll results to FI/Co They are not using SAP HR- Payroll module . They use their own payroll processing system . Please tell what would be the best way of doing so Help is urgently req
-
Problems importing PCM .wav into Captivate CS4
This is an FYI post, not asking for solutions - unless you've any particular insights/experience with it... We're building some Captivate lessons (under Windows XP). We had external narrators send in their .wav files, recorded at: PCM, 44khz, 16bit,