Can't Produce CorrectOutput - CheckBox Output?

My program "should"
1. Ask for totally number in party
2. Ask if this partyNumber is correct
3. Get Name
3. Get Entree Order
4. Get Side Order
5. If diner number < number in party
6. Go to Step 3.
I've been working in this for forever and I'm at the point where I'm completely confused with what I'm doing. I need a walk away from it from an hour.
The main thing I can't figure out is I continue get Diners names and there orders and present the output.
If I choose only one diner if will produce output but if I choose 2 or more people in Party I don't even get any output and I can't understand why? Also if I do say that there is only one person in the party it will produce input but for some reason it outputs the dinner entree of the Diner 3 times?? No side order gets output in my JOptionPane.
Hoping someone could help me a bit with my problems. I've reached a point where I getting completey lost. Any guidance or suggestions would be greatly appreciated.
The output which is resulting from the code is confusing me the most.
P.S. My GUI is pretty wacked but thats another issue in itself and I'll worry about that later. Thanks again.
My code again ******
package finalproject;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class Menu extends JFrame {
private JTextField partyNumField, dinerName;
private JComboBox orderComboBox;
private int partyNum;
private JButton getParty, continueOrder, nextDiner;
private JLabel party, companyLogo, dinerLabel, entreeOrder;
private String dinnerEntree[] = {"Filet Mignon", "Chicken Cheese Steak", "Tacos", "Ribs"};
private JCheckBox mashed, cole, baked, french;
private String output = "";
private String diners[] = new String[100]; //set maximum Diner amounts allowed to 100
public Menu() {
// setting up GUI
super("O'Brien Caterer - Where we make good Eats!");
Container container = getContentPane();
JPanel northPanel = new JPanel();
northPanel.setLayout(new FlowLayout(FlowLayout.CENTER, 120, 15));
companyLogo = new JLabel("Welcome to O'Brien's Caterer's");
northPanel.add(companyLogo);
party = new JLabel("Enter the Total Number in Party Please");
partyNumField = new JTextField(5);
northPanel.add(party);
northPanel.add(partyNumField);
getParty = new JButton("GO - Continue with Order");
getParty.addActionListener(
new ActionListener(){
public void actionPerformed(ActionEvent actionEvent)
partyNum = Integer.parseInt(partyNumField.getText());
String ans=JOptionPane.showInputDialog(null, "Total Number is party is: "
+ partyNum + " is this correct?\n\n" + "Enter 1 to continue\n"
+ "Enter 2 to cancel\n");
if (ans.equals("1")) {
continueOrder.setEnabled(true);
dinerLabel.setEnabled(true);
dinerName.setEnabled(true);
// handle continue
} else { // assume to be 2 for cancel
System.exit(0); // handle cancel
); // end Listener
northPanel.add(getParty);
northPanel.setPreferredSize(new Dimension(700,150));
JPanel middlePanel = new JPanel();
middlePanel.setLayout(new FlowLayout(FlowLayout.CENTER));
dinerLabel = new JLabel("Please enter Diner's name");
dinerLabel.setEnabled(false);
dinerName = new JTextField(30);
dinerName.setEnabled(false);
continueOrder = new JButton("continue");
continueOrder.setEnabled(false);
continueOrder.addActionListener(
new ActionListener() {
public void actionPerformed(ActionEvent actionEvent){
output += "Diner Name\t" + "Entree\t" + "Side Dishes\n";
output += dinerName.getText();
entreeOrder.setEnabled(true);
orderComboBox.setEnabled(true);
middlePanel.add(dinerLabel);
middlePanel.add(continueOrder);
middlePanel.add(dinerName);
entreeOrder = new JLabel("Please choose an entree");
entreeOrder.setEnabled(false);
orderComboBox = new JComboBox(dinnerEntree);
orderComboBox.setMaximumRowCount(5);
orderComboBox.setEnabled(false);
orderComboBox.addItemListener(
new ItemListener(){
public void itemStateChanged(ItemEvent event)
if (event.getStateChange() == ItemEvent.SELECTED)
output += (String)orderComboBox.getSelectedItem();
mashed.setEnabled(true);
cole.setEnabled(true);
french.setEnabled(true);
baked.setEnabled(true);
mashed = new JCheckBox("Mashed Potatoes");
middlePanel.add(mashed);
mashed.setEnabled(false);
cole = new JCheckBox("Cole Slaw");
middlePanel.add(cole);
cole.setEnabled(false);
baked = new JCheckBox("Baked Beans");
middlePanel.add(baked);
baked.setEnabled(false);
french = new JCheckBox("FrenchFries");
middlePanel.add(french);
french.setEnabled(false);
CheckBoxHandler handler = new CheckBoxHandler();
mashed.addItemListener(handler);
cole.addItemListener(handler);
baked.addItemListener(handler);
french.addItemListener(handler);
middlePanel.add(entreeOrder);
middlePanel.add(orderComboBox);
JPanel southPanel = new JPanel();
southPanel.setLayout(new FlowLayout(FlowLayout.CENTER));
nextDiner = new JButton("NEXT DINER");
southPanel.add(nextDiner);
nextDiner.setEnabled(false);
nextDiner.addActionListener(
new ActionListener(){
public void actionPerformed(ActionEvent actionEvent)
int dinerCounter = 1;
if (dinerCounter == partyNum)
displayResults();
else
++dinerCounter;
dinerName.setText("");
); // end of nextDiner actionListener button
container.add(northPanel, java.awt.BorderLayout.NORTH);
container.add(middlePanel, java.awt.BorderLayout.CENTER);
container.add(southPanel, java.awt.BorderLayout.SOUTH);
setSize(600, 500);
show();
// private class to handle event of choosing CheckBoxItem
private class CheckBoxHandler implements ItemListener{
private int counter = 0; // counter to enable nextDiner Button when
// two choices are selected to enable button
public void itemStateChanged(ItemEvent event){
if (event.getSource() == mashed)
if (event.getStateChange() == ItemEvent.SELECTED)
output+= (String)orderComboBox.getSelectedItem();
counter++;
if (event.getSource() == cole)
if (event.getStateChange() == ItemEvent.SELECTED)
output+= (String)orderComboBox.getSelectedItem();
counter++;
if (event.getSource() == baked)
if (event.getStateChange() == ItemEvent.SELECTED)
output+= (String)orderComboBox.getSelectedItem();
counter++;
if (event.getSource() == french)
if (event.getStateChange() == ItemEvent.SELECTED)
output+= (String)orderComboBox.getSelectedItem();
counter++;
if (counter >= 2)
nextDiner.setEnabled(true);
public void displayResults()
JTextArea outputArea = new JTextArea();
outputArea.setText(output);
JOptionPane.showMessageDialog(null, output, "Final Order of Party",
JOptionPane.INFORMATION_MESSAGE);
System.exit(0);
public static void main(String args[])
Menu application = new Menu();
application.addWindowListener(
new WindowAdapter(){
public void windowClosing(WindowEvent windowEvent)
System.exit(0);
package finalproject;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class Menu extends JFrame {
private JTextField partyNumField, dinerName;
private JComboBox orderComboBox;
private int partyNum;
private JButton getParty, continueOrder, nextDiner;
private JLabel party, companyLogo, dinerLabel, entreeOrder;
private String dinnerEntree[] = {"Filet Mignon", "Chicken Cheese Steak", "Tacos", "Ribs"};
private JCheckBox mashed, cole, baked, french;
private String output = "";
private String diners[] = new String[100]; //set maximum Diner amounts allowed to 100
public Menu() {
// setting up GUI
super("O'Brien Caterer - Where we make good Eats!");
Container container = getContentPane();
JPanel northPanel = new JPanel();
northPanel.setLayout(new FlowLayout(FlowLayout.CENTER, 120, 15));
companyLogo = new JLabel("Welcome to O'Brien's Caterer's");
northPanel.add(companyLogo);
party = new JLabel("Enter the Total Number in Party Please");
partyNumField = new JTextField(5);
northPanel.add(party);
northPanel.add(partyNumField);
getParty = new JButton("GO - Continue with Order");
getParty.addActionListener(
new ActionListener(){
public void actionPerformed(ActionEvent actionEvent)
partyNum = Integer.parseInt(partyNumField.getText());
String ans=JOptionPane.showInputDialog(null, "Total Number is party is: "
+ partyNum + " is this correct?\n\n" + "Enter 1 to continue\n"
+ "Enter 2 to cancel\n");
if (ans.equals("1")) {
continueOrder.setEnabled(true);
dinerLabel.setEnabled(true);
dinerName.setEnabled(true);
// handle continue
} else { // assume to be 2 for cancel
System.exit(0); // handle cancel
); // end Listener
northPanel.add(getParty);
northPanel.setPreferredSize(new Dimension(700,150));
JPanel middlePanel = new JPanel();
middlePanel.setLayout(new FlowLayout(FlowLayout.CENTER));
dinerLabel = new JLabel("Please enter Diner's name");
dinerLabel.setEnabled(false);
dinerName = new JTextField(30);
dinerName.setEnabled(false);
continueOrder = new JButton("continue");
continueOrder.setEnabled(false);
continueOrder.addActionListener(
new ActionListener() {
public void actionPerformed(ActionEvent actionEvent){
output += "Diner Name\t" + "Entree\t" + "Side Dishes\n";
output += dinerName.getText();
entreeOrder.setEnabled(true);
orderComboBox.setEnabled(true);
middlePanel.add(dinerLabel);
middlePanel.add(continueOrder);
middlePanel.add(dinerName);
entreeOrder = new JLabel("Please choose an entree");
entreeOrder.setEnabled(false);
orderComboBox = new JComboBox(dinnerEntree);
orderComboBox.setMaximumRowCount(5);
orderComboBox.setEnabled(false);
orderComboBox.addItemListener(
new ItemListener(){
public void itemStateChanged(ItemEvent event)
if (event.getStateChange() == ItemEvent.SELECTED)
output += (String)orderComboBox.getSelectedItem();
mashed.setEnabled(true);
cole.setEnabled(true);
french.setEnabled(true);
baked.setEnabled(true);
mashed = new JCheckBox("Mashed Potatoes");
middlePanel.add(mashed);
mashed.setEnabled(false);
cole = new JCheckBox("Cole Slaw");
middlePanel.add(cole);
cole.setEnabled(false);
baked = new JCheckBox("Baked Beans");
middlePanel.add(baked);
baked.setEnabled(false);
french = new JCheckBox("FrenchFries");
middlePanel.add(french);
french.setEnabled(false);
CheckBoxHandler handler = new CheckBoxHandler();
mashed.addItemListener(handler);
cole.addItemListener(handler);
baked.addItemListener(handler);
french.addItemListener(handler);
middlePanel.add(entreeOrder);
middlePanel.add(orderComboBox);
JPanel southPanel = new JPanel();
southPanel.setLayout(new FlowLayout(FlowLayout.CENTER));
nextDiner = new JButton("NEXT DINER");
southPanel.add(nextDiner);
nextDiner.setEnabled(false);
nextDiner.addActionListener(
new ActionListener(){
public void actionPerformed(ActionEvent actionEvent)
int dinerCounter = 1;
if (dinerCounter == partyNum)
displayResults();
else
++dinerCounter;
dinerName.setText("");
); // end of nextDiner actionListener button
container.add(northPanel, java.awt.BorderLayout.NORTH);
container.add(middlePanel, java.awt.BorderLayout.CENTER);
container.add(southPanel, java.awt.BorderLayout.SOUTH);
setSize(600, 500);
show();
// private class to handle event of choosing CheckBoxItem
private class CheckBoxHandler implements ItemListener{
private int counter = 0; // counter to enable nextDiner Button when
// two choices are selected to enable button
public void itemStateChanged(ItemEvent event){
if (event.getSource() == mashed)
if (event.getStateChange() == ItemEvent.SELECTED)
output+= (String)orderComboBox.getSelectedItem();
counter++;
if (event.getSource() == cole)
if (event.getStateChange() == ItemEvent.SELECTED)
output+= (String)orderComboBox.getSelectedItem();
counter++;
if (event.getSource() == baked)
if (event.getStateChange() == ItemEvent.SELECTED)
output+= (String)orderComboBox.getSelectedItem();
counter++;
if (event.getSource() == french)
if (event.getStateChange() == ItemEvent.SELECTED)
output+= (String)orderComboBox.getSelectedItem();
counter++;
if (counter >= 2)
nextDiner.setEnabled(true);
public void displayResults()
JTextArea outputArea = new JTextArea();
outputArea.setText(output);
JOptionPane.showMessageDialog(null, output, "Final Order of Party",
JOptionPane.INFORMATION_MESSAGE);
System.exit(0);
public static void main(String args[])
Menu application = new Menu();
application.addWindowListener(
new WindowAdapter(){
public void windowClosing(WindowEvent windowEvent)
System.exit(0);
}

Hey bud, I will look at your code and see if I can find the problem. In the mean time, I took the liberty of developing your getParty button action performed method a little. You are figuring out the main logic in your own program, I thought I would turn you on to a few validation tricks to enhance your experience.
I know I'll get flamed for this, but I have also watched you build most of this alone. I'm just coming along behind and adding a few details. This is also how we learn. Just replace your current code with this.
It dis-allows any thing but integer entries between 1 & 50, and offers nice dialogs so the user is not confused. Try entering junk in the partysize box and you will see. My intention was not to do your assignment for you, but to introduce you to some dialog objects and some validation technique. Don't let me down here, look at the code and try to understand how I have used those dialogs. You weren't really using them correctly before.
;-}~
    getParty.addActionListener(
     new ActionListener(){
      public void actionPerformed(ActionEvent actionEvent) {
        // @@@@@@@@@@@@@@@@ You will want to ensure partyNum was a number.
        final java.text.NumberFormat intFormatter =
          java.text.NumberFormat.getNumberInstance(java.util.Locale.getDefault());
        intFormatter.setParseIntegerOnly( true );
        try {
         partyNum = intFormatter.parse( partyNumField.getText() ).intValue();
        } catch (java.text.ParseException e) {
          partyNum = 0;  // party size was not a number, flag error dialog !
        // @@@@@@@@@@@@@@@@ I changed this from an input to a confirm dialog.
        // @@@@@@@@@@@@@@@@ A little more like the real thing, don't you think?
        // @@@@@@@@@@@@@@@@ This is also a good time to limit irrational values.
        if ( partyNum > 0 && partyNum < 50 ) {  // the > is a greater than operator
          int ans =
            JOptionPane.showConfirmDialog( getContentPane(),
              "Total Number in party is: " + partyNum +
              "\nIs this correct?",
              "Confirm Party Size",
              JOptionPane.YES_NO_OPTION
          if ( ans == JOptionPane.YES_OPTION ) {   // user accepted party size
            // @@@@@@@@@@@@@@@@  Set these to false, users are silly sometimes.
            getParty.setEnabled(false);
            partyNumField.setEnabled(false);
            continueOrder.setEnabled(true);
            dinerLabel.setEnabled(true);
            dinerName.setEnabled(true);
          } else { // ans == JOptionPane.NO_OPTION // user rejected party size
            // System.exit(0);   // handle rejection
            // @@@@@@@@@@@@@@@@  I suggest clearing the invalid answer
            // @@@@@@@@@@@@@@@@  and allowing them to try again.
            partyNumField.setText("");
            partyNum = 0;
        } else { // party size was less than 1 or over 50
          JOptionPane.showMessageDialog( getContentPane(),
            "Illegal Party Size !\nPlease try again.\n"+ // Say what went wrong...
            "Enter a number between 1 and 50.",   // ...and give them some advice.
            "Illegal Party Size",
            JOptionPane.OK_OPTION
          // System.exit(0);   // handle rejection
          // @@@@@@@@@@@@@@@@  I suggest clearing the invalid answer
          // @@@@@@@@@@@@@@@@  and allowing them to try again.
          partyNumField.setText("");
    }); // end Listener

Similar Messages

  • Can XDODTEXE produce BI Publisher output?

    Greetings,
    I have used BI Publisher to produce a report in Excel that outputs to multiple tabs in Excel xls when executed on the desktop. When I move the rtf Template file and xml Data Definition file to the server and use the XML Publisher Data Template Executable (XDODTEXE) produce to report it appears to produce Excel xlsx format and all tabs are lost.
    I would like to know if I convert my rtf template to an Excel template, can I execute it using the XML Publisher Data Template Executable to achieve a report with multiple tabs. Please advise.
    Thank for your advice.
    Tom

    Based on your reply, "true excel template based on ebs and publisher version and also publisher patches", if we have applied the Publisher patches, then XDODTEXE should be able to handle the report correctly?as i said
    based on ebs and publisher version and also publisher patchesand logic in your template
    it may be "correctly" or may be not. you can check it only then you create report
    i tested true excel template on ebs r12.1.2 and it works only for one group and for two group the result awful it duplicate and mix data
    IMHO true excel template very limited yet
    for
    The template tabs are generated dynamically. There may be 1 to 3 tabs.look at xsl-xml template
    it works on 11 and 12.1.x as well

  • Can we produce a newsletter in one CS4 application and output it to both print and the web?

    Can we produce a newsletter in one CS4 application and output it to both print and the web?
    If so what do you suggest that we use?
    Message was edited by: [email protected]

    A very cautious "yes". It mainly depends on what you expect.
    It has always been possible to just export to PDF and post that on your site. You can also export your ID file as one comprehensive SWF file and immediately put that onto the site -- it comes with a few handy browse functions, snazzy page flipping (when required); and it looks exactly like your ID document.
    Hard-core techies can use the Export To XHTML/DreamWeaver function, but that will only export the very bare bones -- plain text, with just the commands for text formatting in place. You have to re-do layout and styling in HTML code. Bear in mind ID is designed, top to bottom, as a document layout program, and this export is "extra", not really a basic feature.

  • I am trying to make a Phase Locked Loop and I have to produce a continuous output with the incom

    ing data; so I should not use a buffer which is refreshed in every 3 seconds (by this way I am not able to get a continuous output). How am I going to obtain a continuous output signal which uses a continuous buffer (or no buffer maybe), from my DAQ board?When I try to produce a continuous output (a sine wave) according to a continuously changing input data, I see that the sine wave I can get from the DAQ board output has straight horizontal lines between waves. This means the buffer creates a wave, then stops until it fills, and then creates another output sine wave again; so I can't get a continuous sine wave output from the DAQ board. How am I going to deal with it when im
    plementing a PLL in labview.

    ing data; so I should not use a buffer which is refreshed in every 3 seconds (by this way I am not able to get a continuous output). How am I going to obtain a continuous output signal which uses a continuous buffer (or no buffer maybe), from my DAQ board?Greetings:
    It looks like you need to increase your number of samples by quite a bit. Can you supply any more information, such as your sample rate, which DAQ vi you're using, etc?
    Eric
    Eric P. Nichols
    P.O. Box 56235
    North Pole, AK 99705

  • How can I retrieve selected checkboxes by user into a JPA application?

    Hello, I'm developing an app in JPA, still learning this, I'm displaying some checkboxes which I save into a List, then I separate the selections and put them into an Array, which I convert into String and that's what I store into MySQL table, this is what I have on the index.xhtml file:
    <h:selectManyCheckbox value="#{employee.selectedItems}">
    <f:selectItems var="checkList" value="#{employee.checkboxList()}" itemValue="#{checkList.idTechnology}" itemLabel="#{checkList.name}"></f:selectItems>
    </h:selectManyCheckbox>
    The method checkboxList is in charge of generating the checkboxes and assign a value and name, and the method "selectedItems" is the List<String> that stores the selected checkboxes values, so what I save into the table is something like this: "1,4,6,7" but I don't know how to retrieve the selections and check the checxkboxes according the what the user have on the table:
    This is the method that I use to select all the records from the selected user, this fills all the textfields so I can edit the user, but not the checkboxes, and that's what I need to do:
    public void seleccionarEmpleado(int id_empleado){
    Query q = em.createNamedQuery("Employee.findByIdEmployee");
    q.setParameter("IdEmployee", IdEmployee);
    List<Empleado> listaEmple = q.getResultList();
    for(IdEmployee emple1 : listaEmple){
    emp.setIdEmployee(emple1 .getIdEmployeeo());
    emp.setName(emple1 .getName());
    emp.setLname(emple1 .getLname());
    emp.setTel(emple1 .getTel());
    emp.setAddress(emple1 .getDir());
    emp.setTech(emple1 .getTecha());
    Variable Tech is the one who gets the numbers like "2,3,4" etc, but how can I make the checkboxes to be checked according to these numbers? my english is not so good, thanks in advanced, have a nice day!

    Hello, I'm developing an app in JPA, still learning this, I'm displaying some checkboxes which I save into a List, then I separate the selections and put them into an Array, which I convert into String and that's what I store into MySQL table, this is what I have on the index.xhtml file:
    <h:selectManyCheckbox value="#{employee.selectedItems}">
    <f:selectItems var="checkList" value="#{employee.checkboxList()}" itemValue="#{checkList.idTechnology}" itemLabel="#{checkList.name}"></f:selectItems>
    </h:selectManyCheckbox>
    The method checkboxList is in charge of generating the checkboxes and assign a value and name, and the method "selectedItems" is the List<String> that stores the selected checkboxes values, so what I save into the table is something like this: "1,4,6,7" but I don't know how to retrieve the selections and check the checxkboxes according the what the user have on the table:
    This is the method that I use to select all the records from the selected user, this fills all the textfields so I can edit the user, but not the checkboxes, and that's what I need to do:
    public void seleccionarEmpleado(int id_empleado){
    Query q = em.createNamedQuery("Employee.findByIdEmployee");
    q.setParameter("IdEmployee", IdEmployee);
    List<Empleado> listaEmple = q.getResultList();
    for(IdEmployee emple1 : listaEmple){
    emp.setIdEmployee(emple1 .getIdEmployeeo());
    emp.setName(emple1 .getName());
    emp.setLname(emple1 .getLname());
    emp.setTel(emple1 .getTel());
    emp.setAddress(emple1 .getDir());
    emp.setTech(emple1 .getTecha());
    Variable Tech is the one who gets the numbers like "2,3,4" etc, but how can I make the checkboxes to be checked according to these numbers? my english is not so good, thanks in advanced, have a nice day!

  • How can i produce this type of line chart (yield curve) by using flex2 charting?

    help! I am a flex newcomer, how can i produce this type of
    line chart (yield curve) by using flex2 charting? Anybody can teach
    me how can i customize the width of each scales as below of line
    chart? anybody know this?
    Click
    Here To See

    I need to show the X and Y Co-ordinate in a message when I click on the graphic's point.
    thanks for the tips, I´ll try to understand the sample program.
    Noguti

  • How can i uncheck a checkbox in table component on clicking a button

    In my application I have a table component that display data from the database and a submit button outside the table component, the first column in the table component is a checkbox, How can i uncheck the checkbox in the table component when the submit button is clicked?
    Thanks in advance.

    Something like this ... I THINK it will uncheck all checkboxes in table, but I'm not positive ... you can test!
    if checkbox id is checkbox1...
    <script type="text/javascript"><![CDATA[                                         
    function disableCheckbox()
    document.getElementById('form1:checkbox1').selected = false;
    }]]></script>Put above code inside of head tag in JSP View
    NEXT...
    go to Design View and select your button and go to properties section and select onClick property and insert this javascript in dialog...
    setTimeout('disableCheckbox()', 1)Now run the project when you click the button does the checkbox become unselected?
    Anyway this is where I would start...as far as selecting just the first checkbox if there is more than 1 record...I'm not sure...but I'm curious if this works.
    Jason

  • Can I produce a new sequence in Premiere Elements 7

    I bought Premiere Elements 7 with 15 class licences for my students.
    I really admire the Elements 7 and very happy to be able to present this affordable and yet so efficient program to my students.
    There's only one thing I really miss: how can I produce a second timeline? (sequence)
    I normaly have my raw material in one timeline (sequence), there I sight it and chose pieces I need for my film, I cut them out, copy and paste in another timeline (sequence), which I sometimes rename to: master
    I hope I just can't find it.
    Please help me to find it.
    Thank you

    Welcome to the forum.
    Unfortunately, PrE, unlike PrPro, does not have Sequences. As I normally use PrPro, I feel that this is a big loss, but considering the differences in the two programs, I can see why Adobe chose to not include Sequences.
    Now, there are at least two ways to do similar:
    1.) Edit your Project, exactly as you want, and then Export/Share that Project as a DV-AVI Type II file. Import that AV file into a new Project.*
    2.) Many have used ClipMate, a Clipboard "extender," to Copy/Paste between two Projects. I have not used it, so I do not know the power, or the limitations.
    Good luck,
    Hunt
    * One workflow is to do a very tight edit, with all cuts and Transitions, as changing things like a simple Transition can be a bit more work, and require extra Trimming, just to swap out a Cross-Dissolve for another Transition. The other is to do a very loose edit, leaving the Clips with plenty of additional footage, so you will have the necessary Handles. For this, I would go so far as to place 02 sec. of Black Video between each Clip, so I could easily find where I will want to Trim later. It's either a tight, final edit, or a very loose one.

  • Can I connect the digital output of flat screen to digital stereo output?

    can I connect the digital output of flat screen to digital stereo output? 

    Hello JRefugio,
    Welcome to the Sony Community.
    Are you referring to a Sony flat screen TV? What is the model number of the device to which you wish to connect the digital output from the flat screen? It is required to know the exact model number of the Sony product so that the appropriate information can be provided.
    Thank you for your post.

  • How can i produce xml like this ?

    <mms>
    <subject>message subject</subject>
    <url_image>http://image_url</url_image>
    <url_sound>http://sound_url</url_sound>
    <url_video>http://video_url</url_video>
    <text>message text</text>
    <msisdn_sender>6281XYYYYYY</msisdn_sender>
    <msisdn_receipient>6281XYYYYYY</msisdn_receipient>
    <sid>to be define later</sid>
    <trx_id>Unique number</trx_id>
    <trx_date>yyyyMMddHHmmss</trx_date>
    <contentid>see note</contentid>
    </mms>
    How can i produce that xml?
    Can i produce it with this?
    public Element getXML(Document document) {
            // create sentContent Element
            Element sentContent = document.createElement( "mms" );
            // create subject Element
            Element temp = document.createElement( "subject" );
            temp.appendChild( document.createTextNode(
            String.valueOf( getJudulFilm() ) ) );
            sentContent.appendChild( temp );
            // create url_image Element
            temp = document.createElement( "url_image" );
            temp.appendChild( document.createTextNode("") );
            sentContent.appendChild( temp );
            // create url_sound Element
            temp = document.createElement( "url_sound" );
            temp.appendChild( document.createTextNode("") );
            sentContent.appendChild( temp );
            // create url_video Element
            temp = document.createElement( "url_video" );
            temp.appendChild( document.createTextNode(
            String.valueOf( getUrl_video() ) ) );
            sentContent.appendChild( temp );
            // create text Element
            temp = document.createElement( "text" );
            temp.appendChild( document.createTextNode("") );
            sentContent.appendChild( temp );
            // create msisdn_sender Element
            temp = document.createElement( "msisdn_sender" );
            temp.appendChild( document.createTextNode(
            String.valueOf( getMsisdn() ) ) );
            sentContent.appendChild( temp );
            // create msisdn_recipient Element
            temp = document.createElement( "msisdn_recipient" );
            temp.appendChild( document.createTextNode(
            String.valueOf( getMsisdn() ) ) );
            sentContent.appendChild( temp );
            // create sid Element
            temp = document.createElement( "sid" );
            temp.appendChild( document.createTextNode(
            String.valueOf( getSid() ) ) );
            sentContent.appendChild( temp );
            // create trx_id Element
            temp = document.createElement( "trx_id" );
            temp.appendChild( document.createTextNode(
            String.valueOf( getTrx_id() ) ) );
            sentContent.appendChild( temp );
            // create trx_date Element
            temp = document.createElement( "trx_date" );
            temp.appendChild( document.createTextNode(
            String.valueOf( getTrx_date() ) ) );
            sentContent.appendChild( temp );
            // create contentid Element
            temp = document.createElement( "contentid" );
            temp.appendChild( document.createTextNode(
            String.valueOf( getContentid() ) ) );
            sentContent.appendChild( temp );
            return sentContent;
        }& how can i send it to the server using HTTP request post method?

    <mms>
    <subject>message subject</subject>
    <url_image>http://image_url</url_image>
    <url_sound>http://sound_url</url_sound>
    <url_video>http://video_url</url_video>
    <text>message text</text>
    <msisdn_sender>6281XYYYYYY</msisdn_sender>
    <msisdn_receipient>6281XYYYYYY</msisdn_receipient>
    <sid>to be define later</sid>
    <trx_id>Unique number</trx_id>
    <trx_date>yyyyMMddHHmmss</trx_date>
    <contentid>see note</contentid>
    </mms>
    How can i produce that xml?
    Can i produce it with this?
    public Element getXML(Document document) {
            // create sentContent Element
            Element sentContent = document.createElement( "mms" );
            // create subject Element
            Element temp = document.createElement( "subject" );
            temp.appendChild( document.createTextNode(
            String.valueOf( getJudulFilm() ) ) );
            sentContent.appendChild( temp );
            // create url_image Element
            temp = document.createElement( "url_image" );
            temp.appendChild( document.createTextNode("") );
            sentContent.appendChild( temp );
            // create url_sound Element
            temp = document.createElement( "url_sound" );
            temp.appendChild( document.createTextNode("") );
            sentContent.appendChild( temp );
            // create url_video Element
            temp = document.createElement( "url_video" );
            temp.appendChild( document.createTextNode(
            String.valueOf( getUrl_video() ) ) );
            sentContent.appendChild( temp );
            // create text Element
            temp = document.createElement( "text" );
            temp.appendChild( document.createTextNode("") );
            sentContent.appendChild( temp );
            // create msisdn_sender Element
            temp = document.createElement( "msisdn_sender" );
            temp.appendChild( document.createTextNode(
            String.valueOf( getMsisdn() ) ) );
            sentContent.appendChild( temp );
            // create msisdn_recipient Element
            temp = document.createElement( "msisdn_recipient" );
            temp.appendChild( document.createTextNode(
            String.valueOf( getMsisdn() ) ) );
            sentContent.appendChild( temp );
            // create sid Element
            temp = document.createElement( "sid" );
            temp.appendChild( document.createTextNode(
            String.valueOf( getSid() ) ) );
            sentContent.appendChild( temp );
            // create trx_id Element
            temp = document.createElement( "trx_id" );
            temp.appendChild( document.createTextNode(
            String.valueOf( getTrx_id() ) ) );
            sentContent.appendChild( temp );
            // create trx_date Element
            temp = document.createElement( "trx_date" );
            temp.appendChild( document.createTextNode(
            String.valueOf( getTrx_date() ) ) );
            sentContent.appendChild( temp );
            // create contentid Element
            temp = document.createElement( "contentid" );
            temp.appendChild( document.createTextNode(
            String.valueOf( getContentid() ) ) );
            sentContent.appendChild( temp );
            return sentContent;
        }& how can i send it to the server using HTTP request post method?

  • Can I convert the optical output to analog for a zone 2 audio? I would continue using the HDMI for the main zone. Can I use both of these simultaneously? Zone 2 only supports analog on this receiver.

    Can I convert the optical output to analog via a converter for  zone 2 audio? I would continue using the HDMI for the main zone. Can I use both of these simultaneously? Zone 2 only supports analog on this receiver.

    These will probably help.
    [http://www.jsresources.org/examples/audio_conversion.html]

  • How can we edit alv report output.

    hi all,
    how can we edit alv report output

    \[removed by moderator as it was just a copy and paste answer of someone else's work without giving a source\]
    Edited by: Jan Stallkamp on Aug 25, 2008 4:35 PM

  • Pairing Garmin with BT: Can't create connection: Input/output error

    I'm learning how to use BT in linux.  I have a Garmin and a CE device that has bluetooth capability.  Both are in discovery mode.
    Running "hcitool cc [macaddr]" to pair the Garmin looks promising, the Garmin receives the, well, transaction (what's this called?), and says the passkey is 1234.  However, I press OK on the Garmin, and it shows a second message that the connection failed.  Looking at my PC, I see this in the terminal:
    Can't create connection: Input/output error
    What am I doing wrong?

    Check here. Also have you done a TimeMachine back up?
    http://support.apple.com/kb/TS2570

  • Is there any tec support i can call?, all my output is in Question Marks "?"

    is there any tec support i can call?, all my output is in Question Marks "?"

    Frequently asked questions about Apple ID - http://support.apple.com/kb/HE37 --> Can I change the answers to the security questions for my Apple ID?  --> Yes. You can change the answers to the security questions provided when you originally signed up for your Apple ID. Go to My Apple ID (http://appleid.apple.com/) and click Manage your account.
    Forgotten security questions - https://discussions.apple.com/message/18402551  and https://discussions.apple.com/message/18625296
    More involved forgotten question issues - https://discussions.apple.com/thread/3961813
    Kappy 09/2012 post about security questions - https://discussions.apple.com/message/19569468
    John Galt's tips (09/2012) - https://discussions.apple.com/message/19809294
    If none of the above work, contact iTunes Support at http://www.apple.com/support/itunes/contact/ and follow the instructions to report the issue to the iTunes Store.

  • Is it possible to disable the trackpad when a wireless or usb mouse is present? With Lion 10.7.2, I can not find the checkbox that was there before I installed Lion. Is the option gone on Lion?

    Is it possible to disable the trackpad when a wireless or usb mouse is present? With Lion 10.7.2, I can not find the checkbox that was there before I installed Lion. Is the option gone on Lion?

    There is no BIOS in OS X. There is only the EFI stored in ROM that is not user modifiable. OS X is probably checking Bay 0 for the boot drive since that is where it should be. It won't check the Tempo drive since it is treated like an external drive. I suggest you open Startup Disk preferences to see if the Tempo device is selected as the boot device. If it isn't, then select it. That will probably shave off a few seconds in the startup time.

Maybe you are looking for