I am a newbie,Please help me.

Can anyone give me some samples about c# vb.net by using .net connector?
Actually I need something like manual let me do it step by stey.
Thank you.
Yi Wang

Please look into VS Online Help  -> Contents. You see the "Book" about SAP .NET Connector. You find complete walkthoughs here. Additionally there are some samples installed with NCo, usually in c:\Program Files\SAP\SAP .NET Connector 2.0\Samples.

Similar Messages

  • Just upgraded to SL, Can't get imail to work.? (newbie) Please help!!

    I keep getting this message. Can someone please help me out. I am totally clueless!!
    *ERROR MESSAGE:*
    _"You can't use this version of the application Mail with this version of Mac OS X.You have Mail 3.6."_

    It works now!
    Here is what I did...
    In spotlight I typed "mail", I opened up a "message", and it opened. I looked on my desktop and there was an "iMail" icon that was not there before. I was then able to access the mail normally as i would with Leopard. I deleted the old shortcut on my desktop and placed the new icon in the lower toolbar.
    Worked as good as new..

  • Jsp newbie, please help about @include

    I am new to JSP.
    I have two jsp files, say , jsp1 and jsp2.
    JSP2 is perfectly working. I want to display the result of jsp2 with the result of jsp1.
    But I additionally want to supply a value from jsp1 to a variable in jsp2 before calling jsp2.
    The result of jsp2 depends on the value supplied.
    I couldn't figure out how to do this. A simple @include directive like
    <%@ include file="jsp2.jsp" %> doesn't seem to be suitable here.
    What options are available here? Please help.
    Thank you.

    Thank you friends for the suggestion. I have yet to try your suggestions.
    Before that I came across another problem. Would someone help please?
    Why the jsp fails when I include the same JSP page twice in another jsp page?
    Of the following two jsp files, the upper one is OK, but the lower one complains that it cannot compile (org.apache.jasper.JasperException).
    test1.jsp:
    <html><head><title></title></head>
    <body>
    <table>
    <tr><td><%@ include file="single.jsp" %></td></tr>
    </table>
    </body>
    </html>
    test2.jsp:
    <html><head><title></title></head>
    <body>
    <table>
    <tr>
    <td><%@ include file="single.jsp" %></td>
    <td><%@ include file="single.jsp" %></td>
    </tr>
    </table>
    </body>
    </html>
    I want to populate the cells of an HTML table with the results from the same jsp file, by supplying different values to a variable in the jsp file so that its results will be different for each cell. Am I being to foolish here?
    Thanks.

  • Database Dropdown Population - Newbie, please help

    Hi,
    I am having problems populating a dropdown list in a jsp page with
    mulitple entries from a database. Can anyone please help me with the
    code or point me in the right direction. Im am using the oreily custom
    tags. The page is as follows.
    <%@ page language="java" contentType="text/html" %>
    <%@ page import="java.util.*" %>
    <%@ page import="com.ora.jsp.util.*" %>
    <%@ taglib uri="/orataglib" prefix="ora" %>
    <HTML>
    <BODY>
    <ora:sqlQuery id="sqlAdminDropdown" dataSource="AileenDB"
    scope="session">
    SELECT AdminName From Aministrator
    </ora:sqlQuery>
    <TABLE>
    <TR>
    <TD>
    ** Need to put the dropdown populated with ALL the
    AdminName here **
    </TD>
    </TR>
    </TABLE>
    </BODY>
    </HTML>
    I have tried things like the following but dont have a clue:
    <html:select name="session">
    <html:optionsCollection name="sqlAdminDropdown"
    property="sqlAdminDropdown" labelProperty="AdminName"/>
    </html:select>

    Hi,
    I am having problems populating a dropdown list in a jsp page with
    mulitple entries from a database. Can anyone please help me with the
    code or point me in the right direction. Im am using the oreily custom
    tags. The page is as follows.
    <%@ page language="java" contentType="text/html" %>
    <%@ page import="java.util.*" %>
    <%@ page import="com.ora.jsp.util.*" %>
    <%@ taglib uri="/orataglib" prefix="ora" %>
    <HTML>
    <BODY>
    <ora:sqlQuery id="sqlAdminDropdown" dataSource="AileenDB"
    scope="session">
    SELECT AdminName From Aministrator
    </ora:sqlQuery>
    <TABLE>
    <TR>
    <TD>
    ** Need to put the dropdown populated with ALL the
    AdminName here **
    </TD>
    </TR>
    </TABLE>
    </BODY>
    </HTML>
    I have tried things like the following but dont have a clue:
    <html:select name="session">
    <html:optionsCollection name="sqlAdminDropdown"
    property="sqlAdminDropdown" labelProperty="AdminName"/>
    </html:select>

  • NEWBIE PLEASE HELP..!! Problem Opening a MIDI file

    Hi all.
    Does anyone have any advice on this strange problem..??? On the Logic Pro 8 Manual it says that : +"When you open a MIDI file in Logic Pro 8, software instrument tracks are automatically created for each MIDI track"+
    My problem is that when I open a MIDI file, (Standard MIDI file) some tracks get assigned to external MIDI instruments, others get assigned to Software instruments. I can't figure out how this might happen.
    I really want to use the software instruments for each MIDI track, not the Quicktime Synthesizer...
    PLEASE HELP ME FIX THIS...!!!!
    Thanks

    Well, the thing is that I only want Logic to automatically create the software instruments tracks (EXS, EXS24, Garageband sounds, etc) every time I open a MIDI file
    As a matter of fact I have a Macbook with 10.4 OSX with Logic Pro 8 and this one DOES what it says in the manual (creating the W/W instrument tracks) I just open a MIDI file and the program does all the rest..it assigns a SW instrument for each track... However, I can't do that with my iMac....
    This problem is really driving me insane ....I'm a switcher from Cakewalk SONAR and I really want to use Logic....Please Help..!!

  • SOS .......Newbe Please help........

    Is there a very simple step by step complete instructions out there
    to completely update my Zenworks Imaging Lenux kernel drivers etc...
    to the most currant of system configs these days. My background was
    all Microsoft till now. At the moment I am forced to use ZFD4 and just
    hoping I can find the instructions for the latest drivers and updated kernel to support the new Dell GX series. Not forced but would like to find the solution using only my windows XP workstation. Running Netware 6 and ZFD4 for PXE Imaging Works great with legacy systems. Please help.....

    s23wins wrote:
    >
    > Is there a very simple step by step complete instructions out there
    > to completely update my Zenworks Imaging Lenux kernel drivers etc...
    > to the most currant of system configs these days. My background was
    > all Microsoft till now. At the moment I am forced to use ZFD4 and just
    > hoping I can find the instructions for the latest drivers and updated
    > kernel to support the new Dell GX series. Not forced but would like to
    > find the solution using only my windows XP workstation. Running Netware
    > 6 and ZFD4 for PXE Imaging Works great with legacy systems. Please
    > help.....
    Easiest first step is to apply the latest updates to ZFD4, see if that
    helps.
    then for manually updating drivers, this looks promising,
    http://support.novell.com/docs/Tids/.../10070123.html
    -sk

  • My Aperture 3 library menu shows me that some photos, which are high resolution professional pictures, are less than One Mb file size. Are the full size masters held elsewhere, and if so how do I get to them ? You've guessed I,m a newbie - please help.

    In Aperture 3 and using File>Get Info, I'm told that many photos, which are 7+ Mb's are only One Mb or less. Are the full-sized masters held elsewhere, and if so how can I get to them. You've guessed I'm a newbie - just 2 months with Apple and I'm very confused - any advice would be gratefully received.

    You should probably have this thread moved to the Aperture Discussion group and you’ll find lots of useful tips in the threads there:
    https://discussions.apple.com/community/professional_applications/aperture
    Are you looking at these sizes within Aperture using the metadata view or inspecting them outside using the Finder and Show Package Contents?
    I am wondering how you are importing the pictures from your camera?  When you import from your camera, the right side of your display window will have a lot of options that you can select to grab your images from the camera. 
    Does your camera shoot RAW+JPEG?  If so, you may not be importing them correctly and only picking up the JPEGS.  You can import them so they stay together or separate them.  The master images are all at the Project Level whereas the views you see in Albums for example are aliases that point back to your Project.
    Here’s a good Aperture web site (I have no financial or other interest in this site) to help you using Aperture:
    http://aperture.maccreate.com/
    This article talks about RAW and JPEG images:
    http://aperture.maccreate.com/2011/05/24/matching-raw-files-to-jpeg-pairs-in-ape rture-3/

  • XML Newbe -- Please Help

    Hi,
    In most of the OTN XML samples, the data was entered by SQL scripts.
    In real life, is it possible to maintain enterprise information /data by only using XML/XSQL technology without using Java applets? Is it at all possible ?
    As a newbe I am looking for some simple XML sample application.
    If I can find on the basis of SCOTT schema
    complete XML application through which I can INSERT/UPDATE/DELETE record including the error handling for primary key violation and so on ... would be great!
    I think such kind of application will help many of us to understand the basics!
    Thanks in advance!
    Nadeem
    null

    My Building Oracle XML Applications book contains 800 pages of examples, covering this and many, many more subjects. It would be pretty difficult to post a complete working example here on the discussion forum.

  • Can't sign into iTunes - luddite newbie - please help!

    Hi,
    Just bought an iPod touch refurb, 3G but I haven't upgraded the OS system to 10.5 from the pre-installed 3.1.3 if I'm not misunderstanding things.
    I'm running an iMac (2 Ghz Intel Core 2 Duo) purchased approx Nov 2007 running OS 10.4.11. I've upgraded my iTunes to the 9.2.1 release, set up an Apple ID and when I try to sign in to iTunes I get told the ID hasn't been used on iTunes yet (this much I knew already), I then get asked to review my account details before I'm almost immediately told "Your session has timed out. Try again."
    I've done a search for fixes, but if I'm honest, most of it is beyond me technically. Can anyone help please?
    Many thanks in advance,
    Kev

    Call off the dogs!
    I used my iPod to sign into iTunes, which then allowed me to create the iTunes account properly, then, hey presto, I was able to sign in to the iTunes store on the mac!
    Ace!

  • Apple TV Newbie - Please Help

    Just got Apple TV yesterday.  Was so pleased with the ease of setup.  It all works nicely with my Sony Bravia TV.  But I decided I hated that little ATV remote and saw where I could get Remote App for my iPad.  Trying to get that setup.  I hope I can make my issue clear.  I can get control of my iTunes library from my MBP but what I really want is the main ATV screen so I can get into Netflix.  I setup a Netflix acct and want the ease of browsing thru my iPad on my tv screen using Remote App.  I changed to that in my ATV settings but my ATV remote is still controlling.  When I go into Remote App on my iPad, I don't know how to find the ATV main screen.  Can anyone help.
    ATV 3rd gen

    AppleTv cannot use external drives. The USB port is for diagnostics.
    Dismantling AppleTV will invalidate any warranty, and you can't just swap a larger drive for the existing one. It needs more work/preparation and may cost you money in equipment/tools.
    Yes there are unofficial guides/tutorials out there that describe how to do it but you will require a fair amount of knowledge to get it done using command line software tools.
    Frankly the easiest thing - that's also designed to work - is to stream your media from a USB drive attached to your computer. Many of us do it, and provided your network connection is ok it works fine.
    I have my itunes libray on an external drive, and stream 95% of stuff to several 40GB AppleTVs. Unless you can't run the computer frequently, the 160GB isn't that much more beneficial, and i have one but mainly stream to it.
    AC

  • Questions from a Newbie - Please Help by Responding

    Okay, I just received a new iPod (30GB, black) as a gift and have a few questions.
    I apologize in advance for any repeat in them (with respect to being answered in other posts), but I am confused and have a headache from trying to read all of the links provided in responses, etc. I just want to understand procedures is all. I know the questions may seem trivial, but I am a complete newbie at this iPod thing.
    (1.) Could someone please explain the entire authorization/deauthorization details to me with respect to iTunes and various computers.
    Specifically, if I download a song from the iTunes store on my desktop, how do I get that same file on my laptop and then authorize my laptop to play the song? From what I gathered in reading, I have to authorize my laptop to play the iTunes song downloaded on my desktop, but I do not understand how I transfer the song to the other computer's iTune software?
    Do I burn files to a CD, disk, etc. and then transfer via that method and then authorize the songs in iTunes, so that the songs are in both places (desktop and laptop)? Could someone give me step-by-step instructions on this, or link to somewhere that does?
    (2.) Could I have different songs on my desktop versus laptop, connect my iPod to one or the other, and send the songs to the iPod? From what I read, I believe the answer to this is yes (I believe I am permitted to connect my iPod to up to 5 different computers to load music from iTunes?).
    Should I do this, do I need to authorize anything or just connect my iPod to the computer?
    Thank you in advance for any response(s) offered.
    Again, I apologize for reposting these questions, but I am having a hard time pulling everything together into a succinct answer I can follow.
    Sincerely,
    wkkunkle
      Windows XP Pro  

    Welcome to Apple Discussions!
    1) There are many options. Here are some of them...
    iTunes: How to copy music between authorized computers
    Once the file is on your laptop, just play it in iTunes. iTunes will ask you for your iTunes Music Store account information and then authorize your computer.
    2) This is what you have to do...
    Using iPod with multiple computers
    Authorizing is really only for the music store and purchased songs, not for iPods and which computers they connect to.
    btabz

  • Newbie, Please help, How do I add CDATA to exsting xml flash asset

    Hi, I am a front end web designer/developer and
    analyst...struggling with putting an accordian flash xml menu
    together. I have it done except I need to add a simple trademark
    symbol circle with r. I am struggling with how to do this since I
    am not savvy in actioncript. I assume the best way is to add it is
    with a CDATA child node, but do not know how or whatever is the
    best way to get this done since am on a tight deadline. I need
    someone to explain step by step what I have to do to get this
    simple addition resolved. Attached are the links to home page and
    code for the xml file. The left navigation is the asset that I need
    to add the trademark symbol under about, about ADHERE. Thanks so
    much in advance!!!!!!
    [URL=http://www.nodcreative.com/natrecor_sliced/natrecor_index.html]index
    page with flash xml menu asset[/URL]
    xml code:
    <?xml version="1.0" encoding="UTF-8"?>
    <accodion>
    <item name="HOME">
    </item>
    <item name="ABOUT">
    <item name= "ABOUT
    ADHERE<![CDATA[write]]>"></item>
    <item name="Medical Information" url="
    http://www.jnj.com?ref=Random">
    </item>
    <item name="About SCIOS" url="
    http://www.jnj.com?ref=Random">
    </item>
    </item>
    <item name="INTERACTIVE DOSING INFORMATION">
    <item name="Indications and Usage" url="
    http://www.jnj.com?ref=Random"></item>
    <item name="Contraindications" url="
    http://www.jnj.com?ref=Random"></item>
    <item name="Warnings" url="
    http://www.jnj.com?ref=Random"></item>
    <item name="Dosage and Administration" url="
    http://www.jnj.com?ref=Random"></item>
    </item>
    <item name="RESOURCES AND TOOLS">
    <item name="NATRECOR PI" url="
    http://www.jnj.com?ref=Random"></item>
    <item name="About Heart Failure" url="
    http://www.jnj.com?ref=Random"></item>
    <item name="Stages of Heart Failure" url="
    http://www.jnj.com?ref=Random"></item>
    <item name="NATRECOR Dosing Information" url="
    http://www.jnj.com?ref=Random"></item>
    <item name="Patient Management Resources" url="
    http://www.jnj.com?ref=Random"></item>
    </item>
    <item name="US PRESCRIBING INFORMATION">
    </item>
    <item name="IMPORTANT SAFETY INFORMATION
    ref=http://www.jnj.com">
    </item>
    <item name="REGISTRATION ref=http://www.jnj.com">
    </item>
    </accodion>
    FLASH actionscript is as follows:
    // The accordion
    var accordion = this
    // The item list
    var itemList = []
    // SETTINGS
    //-------------PROPERTIES----------------
    // Separation between the buttons
    var separation = 1.5
    // Tabulation between the buttons and the margin
    var tabulation = 10
    // if true, it cant be more than one items opened at the same
    time (only for the first buttons, POWERFUL, MENU ,ACCORDION, ets).
    var autoClose = true
    // if true, it cant be more than one subItems opened at the
    same time.
    var subItemAutoClose = true
    // if true, open and close all the subItems at the same time.
    var openAll = false
    // The height of the button
    var itemHeight = 21
    // The width of the button
    var itemWidth = 230
    // If true, show the light over the button
    var light = true
    // The ease of the menu opening
    var openEase = 2.5
    // The ease of the menu closing
    var closeEase = 2.5
    // The rollOut color fade speed
    var rollOutFade = 8
    //-------------COLORS----------------
    // The color of the button
    var buttonColor = 0xa
    // The roll over color
    var rollOverColor = 0xCCCCCC
    // The arrow color
    var arrowColor = 0xCCCCCC
    // The arrow color on roll over
    var rollOverArrowColor = 0x000000
    // The text color
    var TextColor = 0xFFFFFF
    // The text color on roll over
    var rollOverText = 0x000000
    // LOADING XML
    // The xml data
    var xmlSource:XML = new XML
    // Loading the xml
    xmlSource.onLoad = function(success:Boolean):Void {
    // When the load finishs...
    if (success) {
    // The first node of the xml
    xmlRoot = xmlSource.firstChild
    // The item nodes
    xmlItems = xmlRoot.childNodes
    // The total of items
    total = xmlItems.length
    // Creating the buttons
    for (i=0; i<total; i++){
    // Attaching the buttons
    accordion.attachMovie("item", "item" + i, i)
    // The button reference
    itemList
    = accordion["item"+i]
    // The first node of the item node
    itemList.xmlRoot = xmlItems
    // The separation between subitems
    itemList.separation = separation
    // Tabulation between the subitems and the margin
    itemList
    .tabulation = tabulation
    // subItems auto close
    itemList.subItemAutoClose = subItemAutoClose
    // The subitems height
    itemList
    .itemHeight = itemHeight
    // The subitems width
    itemList.itemWidth = itemWidth
    // shows/hides the subitems light
    itemList
    .light = light
    // The subitems color
    itemList.buttonColor = buttonColor
    // The roll over color
    itemList
    .rollOverColor = rollOverColor
    // The arrow color
    itemList.arrowColor = arrowColor
    // the arrow color on roll over
    itemList
    .rollOverArrowColor = rollOverArrowColor
    // The text color
    itemList.TextColor = TextColor
    // The roll over text color
    itemList
    .rollOverText = rollOverText
    // the opening easing
    itemList.openEase = openEase
    // The closing easing
    itemList
    .closeEase = closeEase
    // The roll over fade speed
    itemList.rollOutFade = rollOutFade
    // open all
    itemList
    .openAll = openAll
    // ignore white
    xmlSource.ignoreWhite = true;
    // Loads the .xml file
    xmlSource.load("accordion.xml");
    // Aligning the items each one below the other
    this.onEnterFrame=function(){
    // Does the align to ALL the items
    for (i=1; i<total; i++){
    // Aligning the items
    itemList._y = itemList[i-1]._y +
    itemList[i-1].mask._height + itemList[i-1].button._height +
    separation
    // The cursor position
    cursor._x = _xmouse
    cursor._y = _ymouse
    // Opens the items
    onMouseDown = function (){
    // Does this to all the buttons
    for (i=0; i<total; i++){
    // If is clicked
    if (itemList
    .button.hitTest(cursor)){
    // Shows the current item
    showCurrent(itemList)
    // Shows the button clicked
    showCurrent=function(current){
    // Does this to all the buttons
    for (i=0; i<total; i++){
    // Does this to all the buttons exept the clicked
    if (itemList
    !=current){
    // Close the other items if autoclose = true
    if (autoClose){
    // Close the other items
    itemList.openBox=false
    // fades the roll over effect of the other items
    itemList
    .over = false
    //Does this to the clcked item only
    } else {
    // If it has sub items
    if (total>0){
    //Hides them if its open
    if (itemList.openBox){
    itemList
    .openBox=false
    //Shows them if its closed
    } else {
    itemList.openBox=true
    // If it has no subitems goes to the link
    } else {
    getURL(xmlRoot.attributes.url, _self)

    Please don't cross-post in multiple forums. I have answered
    this in your other thread.

  • Newbie, please help--swf files work fine separately, don't work when on same page

    Hello all,
    I am new to flash, and piecing together different templates to try and  learn things.
    I have run across a strange problem. When I load products2.swf by  itself, I can call the two "copy" files and everything works. When I  open 0342.swf (the index page), I can switch between the home and  products2 pages, but I can't view the "copy" pages.
    I'm guessing there may be some sort of conflict with variable names,  but I have been messing with it for most of today.
    I have uploaded all of the FLA files to here:
    http://littlebuddymedia.com/flashhelp.zip
    If you make an swf file out of each of the attached items, and open  the 0342 file, you will see what is supposed to be happening.
    Any help anyone can offer is greatly appreciated.
    Below is the code from each relevant button in case that is easier for  some of you.
    Thank you in advance!
    From the 0342 page (the index page)
    My "Home" button
    on (release) {
    if (_root.currMovie == undefined) {
    _root.currMovie = "home";
    _root.container.loadMovie("home.swf");
    } else if (_root.currMovie != "home") {
    if (_root.container._currentframe >= container.midframe) {
    _root.currMovie = "home";
    _root.container.play();
    My "Products" button
    on (release) {
    if (_root.currMovie == undefined) {
    _root.currMovie = "products";
    _root.container.loadMovie("products.swf");
    } else if (_root.currMovie != "products") {
    if (_root.container._currentframe >= container.midframe) {
    _root.currMovie = "products";
    _root.container.play();
    FROM THE PRODUCTS2 page
    My "copywebdev" button
    on (release) {
    if (_root.currMovie == undefined) {
    _root.currMovie = "copywebdev";
    _root.copycontainer.loadMovie("copywebdev.swf");
    } else if (_root.currMovie != "copywebdev") {
    if (_root.copycontainer._currentframe >= container.midframe) {
    _root.currMovie = "copywebdev";
    _root.copycontainer.play();
    My "officetech" button
    on (release) {
    if (_root.currMovie == undefined) {
    _root.currMovie = "copyworktech";
    _root.copycontainer.loadMovie("copyworktech.swf");
    } else if (_root.currMovie != "copyworktech") {
    if (_root.copycontainer._currentframe >= copycontainer.midframe) {
    _root.currMovie = "copyworktech";
    _root.copycontainer.play();
    }

    Not in the example I linked to.
    I added the code and uploaded an example of what it does.
    When I put "this._lockroot=true" into the first frame of the products.swf file, this occurs:
    http://littlebuddymedia.com/flashhelp/withlockroot/0342.html
    i.e. you can click over to the products page, but you can not navigate back clicking the "Home" button does not bring up the home page, it refreshes the product page. You are also not able to switch between the two text boxes (copywebdev and officetech) on the products page (though one of them will load--whichever one you click first).
    I guess this was "two steps forward and one step back"?
    Thank you for continuing to take a look at this.

  • Newbie Please Help!

    Is there a way in which I can run the following program from within an HTML web site.
    The code is from
    /* From http://java.sun.com/docs/books/tutorial/index.html */
    However I have changed some of it and wish to run it from within a web-site I am building.
    Is there a way to do this?
    Thanks for any input. Remember I am new to java so forgive me in advance if this is the wrong forum.
    import java.awt.*;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.*;
    import java.applet.*;
    public class troubleShooter extends JPanel {
    JLabel label;
    JFrame frame;
    String simpleDialogDesc = "Options";
    public troubleShooter(JFrame frame) {
    this.frame = frame;
    JLabel title;
    // Create the components.
    JPanel choicePanel = createSimpleDialogBox();
    System.out.println("passed createSimpleDialogBox");
    title = new JLabel("Click \"Submit\" When"
    + " you have selected a option.", JLabel.CENTER);
    label = new JLabel("Messages will appear here!", JLabel.CENTER);
    label.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));
    choicePanel.setBorder(BorderFactory.createEmptyBorder(20, 20, 5, 20));
    // Set the layout.
    setLayout(new BorderLayout());
    add(title, BorderLayout.NORTH);
    add(label, BorderLayout.SOUTH);
    add(choicePanel, BorderLayout.CENTER);
    void setLabel(String newText) {
    label.setText(newText);
    private JPanel createSimpleDialogBox() {
    final int numButtons = 4;
    JRadioButton[] radioButtons = new JRadioButton[numButtons];
    final ButtonGroup group = new ButtonGroup();
    JButton submitButton = null;
    final String defaultMessageCommand = "default";
    final String yesNoCommand = "yesno";
    final String yeahNahCommand = "yeahnah";
    final String yncCommand = "ync";
    radioButtons[0] = new JRadioButton( "<html>Software :</html>");
    radioButtons[0].setActionCommand(defaultMessageCommand);
    radioButtons[1] = new JRadioButton(
    "<html>My printout quality is poor: </html>");
    radioButtons[1].setActionCommand(yesNoCommand);
    radioButtons[2] = new JRadioButton(
    "<html>Candidate 3: <font color=blue>R.I.P. McDaniels</font></html>");
    radioButtons[2].setActionCommand(yeahNahCommand);
    radioButtons[3] = new JRadioButton(
    "<html>Candidate 4: <font color=maroon>Duke the Java<font size=-2><sup>TM</sup></font size> Platform Mascot</font></html>");
    radioButtons[3].setActionCommand(yncCommand);
    for (int i = 0; i < numButtons; i++) {
    group.add(radioButtons);
    // Select the first button by default.
    radioButtons[0].setSelected(true);
    submitButton = new JButton("Submit");
    submitButton.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e) {
    String command = group.getSelection().getActionCommand();
    // ok dialog
    if (command == defaultMessageCommand) {
    JOptionPane.showMessageDialog(frame,
    "This candidate is a dog. Invalid vote.");
    // yes/no dialog
    else if (command == yesNoCommand) {
    int a = JOptionPane
    .showConfirmDialog(frame,"Are you using the correct type of paper? \nTo specify paper type:\n1. Click Start-Control Panel-Printers & Hardware.\n2. Right-click the printer icon and then click Printing Preferences.\n3. Click the Paper/Quality tab.\n4. Select Paper type (ie Photo paper for photos)\n\nDoes this solve the problem?","Follow-up Question",JOptionPane.YES_NO_OPTION);
    if (a == JOptionPane.YES_OPTION) {
    setLabel("Happy printing!");
    else if (a == JOptionPane.NO_OPTION) {
    int b = JOptionPane.showConfirmDialog(frame,"Is your printer working correctly?\n1.Refer to printer documetation for maintenance procedures.\n2. Clean the print heads.\n3. Re-align the print heads.\n4. Check the colour range.\n5. Install new ink cartridges.\n\nDoes this solve the problem?","Follow-up Question",JOptionPane.YES_NO_OPTION);
    if (b == JOptionPane.YES_OPTION) {
    setLabel("Happy printing!");
    if (b == JOptionPane.NO_OPTION) {
    int c = JOptionPane.showConfirmDialog(frame,"Is your printer fucked?","Follow-up Question",JOptionPane.YES_NO_OPTION);
    else {
    setLabel("Please try another option.");
    // yes/no (with customized wording)
    else if (command == yeahNahCommand) {
    Object[] options = { "Yes, please", "No, thanks" };
    int n = JOptionPane
    .showOptionDialog(
    frame,
    "This candidate is deceased. \nDo you still want to vote for him?",
    "A Follow-up Question",
    JOptionPane.YES_NO_OPTION,
    JOptionPane.QUESTION_MESSAGE, null,
    options, options[0]);
    if (n == JOptionPane.YES_OPTION) {
    setLabel("I hope you don't expect much from your candidate.");
    } else if (n == JOptionPane.NO_OPTION) {
    setLabel("Whew! Good choice.");
    } else {
    setLabel("Please try another option.");
    // yes/no/cancel (with customized wording)
    } else if (command == yncCommand) {
    Object[] options = { "Yes!", "No, I'll pass",
    "Well, if I must" };
    int n = JOptionPane.showOptionDialog(frame,
    "Duke is a cartoon mascot. \nDo you "
    + "still want to cast your vote?",
    "A Follow-up Question",
    JOptionPane.YES_NO_CANCEL_OPTION,
    JOptionPane.QUESTION_MESSAGE, null, options,
    options[2]);
    if (n == JOptionPane.YES_OPTION) {
    setLabel("Excellent choice.");
    } else if (n == JOptionPane.NO_OPTION) {
    setLabel("Whatever you say. It's your vote.");
    } else if (n == JOptionPane.CANCEL_OPTION) {
    setLabel("Well, I'm certainly not going to make you vote.");
    } else {
    setLabel("Please try another option.");
    return;
    System.out.println("calling createPane");
    return createPane(simpleDialogDesc + ":", radioButtons, submitButton);
    private JPanel createPane(String description, JRadioButton[] radioButtons,
    JButton showButton) {
    int numChoices = radioButtons.length;
    JPanel box = new JPanel();
    JLabel label = new JLabel(description);
    box.setLayout(new BoxLayout(box, BoxLayout.Y_AXIS));
    box.add(label);
    for (int i = 0; i < numChoices; i++) {
    box.add(radioButtons[i]);
    JPanel pane = new JPanel();
    pane.setLayout(new BorderLayout());
    pane.add(box, BorderLayout.NORTH);
    pane.add(showButton, BorderLayout.SOUTH);
    System.out.println("returning pane");
    return pane;
    public static void main(String[] args) {
    JFrame frame = new JFrame("Printer Troubleshooter");
    Container contentPane = frame.getContentPane();
    contentPane.setLayout(new GridLayout(1, 1));
    contentPane.add(new troubleShooter(frame));
    // Exit when the window is closed.
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.pack();
    frame.setVisible(true);

    Make it an applet.

  • Running OEM on a UNIX Box and more (Newbie, Please Help)

    Hello,
    This may be quite very simple for many of you. I am used to a windows environment and now have been dropped in to a Unix/Linux world. I am looking for some help in regard to:
    1.) How can I start up Oracle Enterprise Manager for 10g through Unix?
    2.) Can I use the something like the DB Homepage (Oracle 10g Personal Edition)?
    3.) What tools are recommended, I started up SQL Developer, it seems to work, but are there any better that do similar functions?
    I appreciate any help that can be offered. Thanks.

    Thank you so much for your help.
    I was able to get the Enterprise Manager to load up
    on a browser. But I got an error:
    Error
    Io exception: Got minus one from a read call
    As I tried to log in. Not sure what that mean, could
    it be a privalege issue?
    When I tired to emctl start dbconsole, i got a
    Permission Denied error... could that also be a
    privilege issue on the DB server or the Box its on?You need to do all the above while logged in as the Oracle software owner. i.e, the user that installed Oracle Server and the Enterprise Manager. This user is usually oracle if you used the default standards.
    And my last question to sum up my day of
    frustration.. I am trying to Link the Oracle Tables
    in Microsoft Access 2003. No luck using the ODBC
    provided by Mircosoft, I get an error saying:
    ODBC-call failed. ORA-12514: TNS: listener does not
    currently know of service reuested in connect
    descriptor. You define a TNS entry in $ORACLE_HOME/network/admin/tnsnames.ora of your Oracle Client (this case Windows), then the SERVICE_NAME parameter must match the dbname.db_domain of your database. Then the TNS Servece Name you enter in the ODBC Driver Configuration must match the Net Service name in the tnsnames.ora.
    Here is my example tnsnams.ora entry:
    My Database Name (and SID) is TESTDB. My servername is TESTSERVER. I connect to TESTDOMAIN.COM.NG My Listener is on port 1521 (the default). Assuming I have not changed my db_domain after a default install, it will be TESTSERVER.TESTDOMAIN.COM.NG (you can find this in initTESTDB.ora or spfileTESTDB.ora of your database)
    TESTDB
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = TESTSERVER.TESTDOMAIN.COM.NG)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = TESTDB.TESTSERVER.TESTDOMAIN.COM.NG)
    In the above example, TESTDB should be entered or selected in TNS Service Name in ODBC Driver Configuration.
    I am sorry for asking so many question, i tried my
    best to refrain from it, but after a day of trying to
    figure it out and downloading all kinds of things to
    "fix" it, i give up. Any help would be greatly
    appreciated. Thanks.My advice? Read the Enterprise Manager Documentation of your Operating System. You will find or download every Oracle Product Documentation at http://www.oracle.com/technology/documentation/index.html including that of Enterprise Manager http://download-uk.oracle.com/docs/cd/B16240_01/doc/nav/portal_booklist.htm. Once you have familiarised yourself with the basics (at least), there will be no need to hack around the problems. you will fix it :-)

Maybe you are looking for

  • Server 2012 Clustered Hosts - How can I place a Hyper-V Guest in the DMZ?

    I have 3 server 2012 hyper v clustered hosts. I've been recently asked to create a VM where external parties will have local admin rights. I've been resisting things for a variety of IMO valid security reasons. What I'm trying to understand is if it

  • Getting the XPath from a Node

    Hey Folks, have a scenario where i need to link my data, i.e one node points to another node, e.g <data> <liability id="1"> <value> 10000 </value> </liability> <asset id = "2"> <value> 20000 </value> </asset> </data> so take the case above, i have a

  • Video playback - sound but no image

    Hi, I'm running elements 11 (on windows 8 pro), and I noticed when I click on a video, (the thumbnail is there in organiser), and hit "play" all I get is grey screen, the timeline runs fine, theres sound, just no image.   Can anyone suggest a fix ple

  • [Solved] Prelink compilation error

    gcc -Wall -Wno-pointer-sign -march=native -O2 -pipe -fomit-frame-pointer -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z -Wl,relro -o execstack execstack.o checksum.o data.o dso.o dwarf2.o fptr.o hashtab.o mdebug.o stabs.o crc32.o arch-i386.o arch-a

  • Tuning the BOM of a new material

    Hi experts, When a new material will be launched,  what is the best way to tune its BOM 1) Can we create a BOM with a USAGE different to 1 = Production? 2) Does this new BOM can be used in a routing? 3) Can we create a planned order without a previou