Help in adding smilley icon in swings

Hi I'm making a simple chat server. Can any plz help me that how can I add smilley icon to JTextArea as I'm using JTextArea as message display in chat client.

Hi I'm making a simple chat server. Can any plz help
me that how can I add smilley icon to JTextArea as I'm
using JTextArea as message display in chat client. you have a unicode character 263a for the smiley, but
i am not sure that you can display an icon or render this
unicode character as smiley in JTextArea. May you have
to try using JTextPane.

Similar Messages

  • Help with adding an icon in a JTextPane

    Hy guys,
    i have the following code:
    Document doc = DisplayArea.getDocument();
    String temp = s.substring(0, s.indexOf("Smile"));
             doc.insertString(doc.getLength(), temp , st);
             Style regular = chatArea.addStyle("regular", def);
             Style stl = chatArea.addStyle("icon", regular);
             StyleConstants.setIcon(stl, new ImageIcon("smile.gif"));
             doc.insertString(doc.getLength(), s , stl);
             temp = s.substring(s.indexOf("Smile")+1+"Smile".length(), s.length()) + "\n";
             doc.insertString(doc.getLength(), temp , st);The problme is that after it displays the image the second part of the text on the next line.
    Is there any way to make it be all in one line with the image in the middle ?
    Thx in advance

    Sorry for this guys but i managed to solve it by looking in the forum
    thx anyway for wanting to help

  • Need urgent help in adding border to a Box

    Hi folks,
    i need help in adding a border to the box which i am using in my java code.
    i have somthing like.. I am not using BorderLayout as my layout Manager. Its all Flow Layout.
    Box name;
    Box rules;
    Box combine;
    name = Box.createVerticalBox();
    // i need to add a border to this name box which i am unable to do. Please help
    rules = Box.createVerticalBox();
    // again here too i want to add a border like etched border. Cant do it
    name.add(....);
    name.add(...);
    rules.add(...);
    rules.add(..);
    combine = Box.createVerticalBox();
    //here too i want to add a border
    Please help...
    thking u.
    regds. divya

    You can use setBorder() method which Box inherits from JComponent...
    check the API for Box for further information, namely the "Methods inherited from class javax.swing.JComponent" part...
    - MaxxDmg...
    - ' He who never sleeps... '

  • GUI Builder: Where to get Icons for Swing components

    Hi,
    I am creating a GUI Builder for Swing GUIs and I am searching for icons representing Swing Components as seen in many GUI Builders like JBuilder.
    So I want to have ToggleButtons with icons in a toolbar, to let the user choose what Swing Component to create (e.g. JTextField, JList, etc.).
    Are there any free icons for Swing Components?
    Thank you very much for your help.
    Regards,
    Alex

    Hi ipooley,
    thanks for this reply but I know that page already.
    What I am searching for are icons of JComponents like JButton or JTextField etc. . You can see them for example in some GUI builders like JBuilder-Designer and they are looking as if they are Java native.
    Regards,
    Alex

  • Help with adding image onclick

    Hey everyone,
    I am making a simple game in AS3 and need help with adding an image once they have click on something.
    On the left of the screen are sentences and on the right an image of a form. When they click each sentence on the left, writing appears on the form. Its very simple. With this said, what I would like to do is once the user click one of the sentences on the left, I would like a checkmark image to appear over the sentence so they know they have already clicked on it.
    How would I go about adding this to my code?
    var fields:Array = new Array();
    one_btn.addEventListener(MouseEvent.CLICK, onClick1a);
    one_btn.buttonMode = true;
    function onClick1a(event:MouseEvent):void
        fields.push(new one_form());
        fields[fields.length-1].x = 141;
        fields[fields.length-1].y = -85;
        this.addChild(fields[fields.length-1]);   
        one_btn.removeEventListener(MouseEvent.CLICK, onClick1a);
        one_btn.buttonMode = false;
        //gotoAndStop("one")
    two_btn.addEventListener(MouseEvent.CLICK, onClick2a);
    two_btn.buttonMode = true;
    function onClick2a(event:MouseEvent):void
        fields.push(new two_form());
        fields[fields.length-1].x = 343.25;
        fields[fields.length-1].y = -85;
        this.addChild(fields[fields.length-1]);
        two_btn.removeEventListener(MouseEvent.CLICK, onClick2a);
        two_btn.buttonMode = false;
        //gotoAndStop("two")

    I don't know where you're positioning the button that should enable/disable the checkbox but for "one_btn" let's just say it's at position: x=100, y=200. Say you'd want the checkbox to be to the left of it, so the checkbox would be displayed at: x=50, y=200. Also say you have a checkbox graphic in your library, exported for actionscript with the name "CheckBoxGraphic".
    Using your code with some sprinkles:
    // I'd turn this into a sprite but we'll use the default, MovieClip
    var _checkBox:MovieClip = new CheckBoxGraphic();
    // add to display list but hide
    _checkBox.visible = false;
    // just for optimization
    _checkBox.mouseEnabled = false;
    _checkBox.cacheAsBitmap = true;
    // adding it early so make sure the forms loaded don't overlap the
    // checkbox or it will cover it, otherwise swapping of depths is needed
    addChild(_checkBox);
    // I'll use a flag (a reference for this) to know what button is currently pushed
    var _currentButton:Object;
    one_btn.addEventListener(MouseEvent.CLICK, onClick1a);
    one_btn.buttonMode = true;
    function onClick1a(event:MouseEvent):void
         // Check if this button is currently the pressed button
         if (_currentButton == one_btn)
              // disable checkbox, remove form
              _checkBox.visible = false;
              // form should be last added to fields array, remove
              removeChild(fields[fields.length - 1]);
              fields.pop();
              // clear any reference to this button
              _currentButton = null;
         else
              // enable checkbox
              _checkBox.visible = true;
              _checkBox.x = 50;
              _checkBox.y = 200;
              // add form
              fields.push(new one_form());
              fields[fields.length-1].x = 141;
              fields[fields.length-1].y = -85;
              this.addChild(fields[fields.length-1]);
              // save this button as last clicked
              _currentButton = one_btn;
         // not sure what this is
        //gotoAndStop("one")
    I'd also centralize all the click handlers into a single handler and use the buttons name to branch on what to do, but that's a different discussion. Just see if this makes sense to you.
    The jist is a graphic of a checkbox that is a MovieClip symbol in your library exported to actionscript with the class name CheckBoxGraphic() is created and added to the display list.
    I made a variable that points itself to the last clicked button, when the "on" state is desired. If I detect the last clicked button was this button, I remove the form I added and the checkbox. If the last clicked button is not this button, I enable and position the checkbox as well as add the form.
    What is left to do is handle the sitation where multiple buttons are on the screen. When a new button is pushed it should remove anything the previous button added. This code simply demonstrates clicking the same button multiple times to toggle it "on and off".

  • I have lost the File Edit View History Bookmarys Yahoo Tools Help and the Home Icon how do I get them back I cant find anywhere to click to get them back can anyone help please.

    I have lost the bar that has my file Edit View History Bookmarks Yahoo tools and help also the Home Icon with back and refresh Icon I cant find anywhere to click to get them back can anyone please help me.
    Thanks ([email protected])

    Make sure that you do not run Firefox in full screen mode (press F11 or Fn + F11 to toggle; Mac: command+Shift+F).<br />
    If you are in full screen mode then hover the mouse to the top to make the Navigation Toolbar and Tab bar appear.<br />
    You can click the Maximize button at the top right to leave full screen mode or right click empty space on a toolbar and use "Exit Full Screen Mode" or press F11.<br />

  • Help with adding a hyperlink to a button?

    We have a simple little site we built in Catalyst and everything works great. The only problem is that we cannot figure out how to add a hyperlink to one of the buttons in the animation. We simply want to be able to click on the button and go to another site (the client's Facebook page specifically). Can anyone provide some insight? Thanks!

    The message you sent requires that you verify that you
    are a real live human being and not a spam source.
    To complete this verification, simply reply to this message and leave
    the subject line intact.
    The headers of the message sent from your address are shown below:
    From [email protected] Tue Nov 03 19:08:07 2009
    Received: from mail.sgaur.hosted.jivesoftware.com (209.46.39.252:45105)
    by host.pdgcreative.com with esmtp (Exim 4.69)
    (envelope-from <[email protected]>)
    id 1N5TPy-0001Sp-J1
    for [email protected]; Tue, 03 Nov 2009 19:08:07 -0500
    Received: from sgaurwa43p (unknown 10.137.24.44)
         by mail.sgaur.hosted.jivesoftware.com (Postfix) with ESMTP id 946C5E3018D
         for <[email protected]>; Tue,  3 Nov 2009 17:08:03 -0700 (MST)
    Date: Tue, 03 Nov 2009 17:07:49 -0700
    From: Tvoliter <[email protected]>
    Reply-To: [email protected]
    To: Matthew Pendergraff <[email protected]>
    Message-ID: <299830586.358941257293283616.JavaMail.jive@sgaurwa43p>
    Subject: Help with adding a hyperlink to a button?
    MIME-Version: 1.0
    Content-Type: multipart/mixed;
         boundary="----=_Part_36702_1132901390.1257293269030"
    Content-Disposition: inline
    X-Spam-Status: No, score=-3.4
    X-Spam-Score: -33
    X-Spam-Bar: ---
    X-Spam-Flag: NO

  • HT5622 I lost all my pictures! Please help:( I added all my photo to a new album from the camera roll and i delete the picture that already move to new album, at last all my picture was gone !:'( Please, anyway to recover back all my photo? please help :'

    I lost all my pictures! Please help:( I added all my photo to a new album from the camera roll and i delete the picture that already move to new album, at last all my picture was gone !:'( Please, anyway to recover back all my photo? please help :'( Apple Service Center or Branch can help?

    Albums is a way or sorting photos. Photos aren't moved from the Camera roll. The Camera Roll consists of all the photos on the phone. If you delete from Camera Roll they are deleted everywhere but Photo Stream.
    Are you using Photo Stream? Your photos, providing they wer recent should still be in Photo Stream. If you have Photo Stream set up on your computer they should all be there.

  • Need help with adding emoji to my hubby's phone don't see it when I click on the keyboard tab

    I need help with adding emoji to my hubby's iPhone when I go to settings then the keyboard tab it's not there

    I did that bad it's not there and doesn't give me to option to click on it

  • Adding customized Icons

    I was wondering if anyone knows how to add customized icons. I downloaded the Logicconizer, and I added the icons to the empty slots, and opened logic, but I didn't see the new icons, when I clicked on the channel strip where the icon selection is....
    TIA (Thx in advance)

    I don't know about Logicconizer but here's a thread which has the locations for icons.
    http://discussions.apple.com/thread.jspa?messageID=4307778&#4307778

  • Custom Window Decorations: Adding qmark icon for online help

    Hi, All -
    Is it possible to customize a window's decoration (terminology?) to add a Help icon to a dialog's frame, so that it sits beside the Close (X) button in the upper right corner? Can't find any doc on how to do this in the SDK manuals or tutorials.
    Sample dialog at http://users.rcn.com/jcadow/images/helpiconsample.jpg.
    Thanks.
    --Jeff

    Can't find any designed support for what you're asking. Please turn in a bug/rfe for this and let us know the number to vote for -- as part of the request, maybe you can add that we should not only be able to add icons but selectively remove any of the existings ones (min, max, close) since even VB supported this.
    One area perhaps worth exploring is BasicInternalFrameTitlePane which may have some methods to do what you want with icons. Then undecorate your JFrame and add your subclass of BasicInternalFrameTitlePane to the North location of your JFrame. No guarantees, just worth exploring and I hope if you find something that works you post your solution back here. Good Luck.

  • Adding an Icon to a JButton Component - Not working

    Hi all,
    Please help me by saying, why the below gevon SSCE doesnt work.
    import java.awt.Color;
    import java.awt.Component;
    import java.awt.Container;
    import java.awt.Dimension;
    import java.awt.event.ActionEvent;
    import javax.swing.AbstractAction;
    import javax.swing.AbstractButton;
    import javax.swing.Action;
    import javax.swing.BorderFactory;
    import javax.swing.Icon;
    import javax.swing.ImageIcon;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.UIManager;
    public class CreateWindow {
        public CreateWindow(String module, String id){
             if(module.equals("mail")){
                  JPanel mail = new JPanel(null);
                  mail.setPreferredSize(new Dimension(500, 350));
                  //Color colr = new Color(222, 236, 255);
                  mail.setBackground(Color.WHITE);
                  JLabel file = new JLabel("File Name:");
                  file.setBounds(18,25,75,50);
                  // Retrieve the icon
                 Icon icon = new ImageIcon("ei0021-48.gif");
                 // Create an action with an icon
                 Action action = new AbstractAction("Button Label", icon) {
                     // This method is called when the button is pressed
                     public void actionPerformed(ActionEvent evt) {
                         // Perform action
                 // Create the button; the icon will appear to the left of the label
                 JButton button = new JButton(action);
                  mail.add(button);
                  buildGUI(mail,500, 350);
        public void buildGUI(JPanel panel, int width, int height)
            JFrame.setDefaultLookAndFeelDecorated(true);
            UIManager.put("activeCaption", new javax.swing.plaf.ColorUIResource(Color.LIGHT_GRAY));
            JFrame f = new JFrame("Propri�t�s:");
            f.setIconImage(new ImageIcon("save.gif").getImage());//need an image file with black background
            changeButtonColor(f.getComponents());
            f.getContentPane().setBackground(Color.WHITE);
            f.getContentPane().add(panel);
            f.getRootPane().setBorder(BorderFactory.createLineBorder(Color.PINK,2));
            f.setSize(width,height);
            f.setLocationRelativeTo(null);
            f.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
            f.setVisible(true);
          public void changeButtonColor(Component[] comps)
            for(int x = 0, y = comps.length; x < y; x++)
              if(comps[x] instanceof AbstractButton)
                ((AbstractButton)comps[x]).setBackground(Color.LIGHT_GRAY);
                ((AbstractButton)comps[x]).setBorder(BorderFactory.createLineBorder(Color.LIGHT_GRAY));
              else if (comps[x] instanceof Container)
                changeButtonColor(((Container)comps[x]).getComponents());
    }I call the above given class constructor as given
    public class Test {
         public static void main(String args[]){
              CreateWindow cw = new CreateWindow("mail","Test.doc");
    }Rony

    RonyFederer wrote:
    I have the images and class files inside
    F:\Testing3\Application\src\booodrive
    Do you have the class files or java files here?
    You should put the gif where the .class files are located, and use getResource as Encephalopathic wrote, or:
    Icon icon = new ImageIcon(ClassLoader.getSystemResource("ei0021-48.gif"));
    When I did as you said using System.out.println(new File("ei0021-48.gif").getAbsolutePath());, I got the following output.
    F:\Testing3\Application\ei0021-48.gif
    That's the current running directory.

  • Help needed: Adding 2nd widget makes 1st widget stop working

    Dear all,
    I use 1 widget, jQuery Cycle, and it was working fine, until i added a 2nd one, FlexSlider.
    How can i make both working on the same page?
    My website is : VINDSTERS - Wij Vinden wat u zoekt!  and please see my coding below.
    Thanks a lot!
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
    <script type="text/javascript" src=
    "main slide js/smoothscroll.js"></script>
    </style>
    <script type="text/xml">
    <!--
    <oa:widgets>
      <oa:widget wid="2559022" binding="#slideshow_header" />
      <oa:widget wid="2559022" binding="#slideshow_1" />
      <oa:widget wid="2827522" binding="#OAWidget" />
    </oa:widgets>
    -->
    </script>
    <script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
    <script src="main slide js/jquery-1.6.min.js" type="text/javascript"></script>
    <script src="main slide js/jquery.cycle.all.js" type="text/javascript"></script>
    <script src="gevonden door js/modernizr-2.5.2-respond-1.1.0.min.js" type="text/javascript"></script>
    <script src="gevonden door js/jquery-1.7.2.min.js" type="text/javascript"></script>
    <script src="gevonden door js/jquery.flexslider-min.js" type="text/javascript"></script>
    <script src="gevonden door js/jquery.mousewheel.js" type="text/javascript"></script>
    <script src="gevonden door js/jquery.easing.1.3.js" type="text/javascript"></script>
    <script>
    $(document).ready(function() {
        $("#cont2").hide();
    $('#showMenu').click(function()
    $("#cont2").slideToggle('slow');     
    $(document).ready(function() {
    $('.closeMenu').click(function()
    $("#cont2").slideUp('slow');     
    </script>
    <style type="text/css">
    /* BeginOAWidget_Instance_2559022: #slideshow_header */
      #slideshow_header {
        padding: 0px;
      margin:0;
      #slideshow_header-caption{
      padding:0;
      margin:0;
      #slideshow_header img, #slideshow_header div {
        padding: 0px;
        background-color: #ffffff;
      -webkit-border-radius: 5px;
      -moz-border-radius: 5px;
      border-radius: 5px;
        margin: 0;
    /* EndOAWidget_Instance_2559022 */
    </style>
    <link href="css/style.css" rel="stylesheet" type="text/css" />
    <link href="css/flexslider.css" rel="stylesheet" type="text/css" />
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <b><title>VINDSTERS - Wij Vinden wat u zoekt!</title></b>
    <meta name="Description" content="Vindsters.nl Wij vinden wat u zoekt" />
    <meta name="keywords" content="vindsters,vindsters.nl,tweedehands, zoeken, design, vintage, vinden, service, meubels, kleding, schoenen" />
    <link href="icons/logo-vindsters-square.gif" rel="shortcut icon " />
    <link href="style.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <div id="#"><h1><a href="#" id="showMenu">MENU
      </a> </div>
    <div id="cont2" class="hidden">
        <ul>
      <li>s
        <h1><a href="#fadein" class="closeMenu">HOME</a></h1>
      </li>
      <li>
        <h1><a href="#info" class="closeMenu">HOE WERKT HET?</a></h1>
      </li>
      <li>
        <h1><a href="#mainbox2" class="closeMenu">PRIJZEN</a></h1>
      </li>
      <li>
        <h1><a href="#leftcollum2" class="closeMenu">GEVONDEN DOOR...</a></h1>
      </li>
      <li>
        <h1><a href="#mainbox" class="closeMenu">OVER VINDSTERS</a></h1>
      </li>
      <li>
        <h1><a href="#footer" class="closeMenu">CONTACT & VOORWAARDEN </a></h1>
      </li>
      </ul>
      <p> </p>
      </div>
    <script type="text/javascript">
    // BeginOAWidget_Instance_2559022: #slideshow_header
           slideshow_headerAddCaption=true;
    $(document).ready(function() {
      $('#slideshow_header').cycle({
      after: slideshow_headerOnCycleAfter, //the function that is triggered after each transition
      autostop: false,     // true to end slideshow after X transitions (where X == slide count)
      fx: 'scrollLeft,',// name of transition effect
      pause: true,     // true to enable pause on hover
      randomizeEffects: true,  // valid when multiple effects are used; true to make the effect sequence random
      speed: 1000,  // speed of the transition (any valid fx speed value)
      sync: true,     // true if in/out transitions should occur simultaneously
      timeout: 7000,  // milliseconds between slide transitions (0 to disable auto advance)
      fit: true,
      height:   '570px',
      width:         '100%'   // container width (if the 'fit' option is true, the slides will be set to this width as well)
    function slideshow_headerOnCycleAfter() {
      if (slideshow_headerAddCaption==true){
      $('#slideshow_header-caption').html(this.title);
    // EndOAWidget_Instance_2559022
    </script>
    <div id="slideshow_header">
       <!--All elements inside this will become slides-->
    <img src="images/front-1.jpg" width="100%" height="500" title="" /><img src="images/front2.jpg" width="100%" height="500" title="" /></div>
    <!--It is safe to delete this if captions are disabled-->
    <div id="slideshow_header-caption"></div>
    <div id="tab">
      <h4><img src="icons/start2.png" width="310" height="128" alt="button" onclick="window.open('http://vindsters.nl/vindditnu%20php%20version.php','Websonic','width=960,height=600,scroll bars=no,toolbar=no,location=no'); return false" /></h4>
    </div>
      <div id="part2">
        <div id="fadein">
          <h4> Hallo! </h4>
      <h4> Wij zijn VINDSTERS.NL    </h4>
          <h2>Vinden word vanaf nu heel eenvoudig!</h2>
          <h2>Ben je al tijden opzoek naar iets, maar heb je geen idee waar je het moet vinden? </h2>
          <h2>Geen zin of tijd om de duizende advertenties op makrtplaats/ebay of speurders af te gaan?</h2>
          <h2>Vindsters vind alle 2de hands spullen die jij zo graag wil hebben! </h2>
          <div id='button'>
            <p><img src="icons/start2.png" width="310" height="128" alt="button" onclick="window.open('http://vindsters.nl/vindditnu%20php%20version.php','Websonic','width=960,height=600,scroll bars=no,toolbar=no,location=no'); return false" /></p></div>
        </div>
        <div id="info">
          <h4>AANVRAGEN! </h4>
          <h2>Laat ons in je aanvraag met een korte omschrijving weten wat je zoekt. </h2>
          <h2>Naar aanleiding van je aanvraag stellen onze vindsters een korte vragenlijst samen die je per email ontvangt. </h2>
          <h2>Hierin kan je heel gemakkelijk je verdere wensen aangeven. </h2>
          <h2>Alles compleet? Stuur de <br />
            vragenlijst dan naar ons terug en betaal gemakkelijk via de IDeal link in de mail.    </h2>
        </div>
            <div id="info3">
              <p><img src="images/info2.gif" width="748" height="213" /></p>
        </div>
        <div id="tab2">
          <h1>v Lees meer v</h1>
        </div>
        <div id="info2">
          <p> </p>
          <h4> </h4>
          <h4>GEVONDEN! </h4>
      <h2>Zodra je vragenlijst &amp; betaling binnen is, gaan wij voor je aan de slag! </h2>
          <h2>Binnen het afgesproken
            termijn, ontvang je per mail 3 tot 5 passende
            advertenties. </h2>
          <h2>Deze prducten worden persoonlijk door ons geselecteerd, dus je ontvangt altijd een passend aanbod! </h2>
          <h2>&amp; mochten we onverhoopt helemaal niks kunnen vinden, dan krijg je natuurlijk je geld terug. </h2>
          <h2>Alles compleet? Stuur de vragenlijst dan naar ons terug en betaal gemakkelijk via de IDeal link in de mail.</h2>
          <p> </p>
          <h1> </h1>
        </div>
        <div id="mainbox2">
          <div id="insideright2">
            <h4>PRIJZEN</h4>
      <h2>Bij VINDSTERS.NL betaal je altijd maar €5.95 per zoekopracht!      </h2>
            <h2>En succes gegarandeerd, want kunnen wij onverhoopt niet vinden wat jij zoekt?</h2>
            <h2> Dan krijg je de betaalde kosten gewoon terug!</h2>
            <p></p>
          </div>
      </div>
        <div id="gevondendoor">
      <h1>GEVONDEN DOOR VINDSTERS.NL</h1>
      <script type="text/javascript">
    // BeginOAWidget_Instance_2827522: #OAWidget
    $(window).load(function() {
          $('#slider').flexslider({
         namespace: "flex-",             //{NEW} String: Prefix string attached to the class of every element generated by the plugin
        selector: ".slides > li",       //{NEW} Selector: Must match a simple pattern. '{container} > {slide}' -- Ignore pattern at your own peril
          animation: "slide",
        easing: "swing",               //{NEW} String: Determines the easing method used in jQuery transitions. jQuery easing plugin is supported!
          direction: "horizontal",   //String: Select the sliding direction, 'horizontal' or 'vertical'
        reverse: false,                 //{NEW} Boolean: Reverse the animation direction
        animationLoop: false,             //Boolean: Should the animation loop? If false, directionNav will received "disable" classes at either end
        smoothHeight: true,            //{NEW} Boolean: Allow height of the slider to animate smoothly in horizontal mode
          slideshow: true,                //Boolean: Animate slider automatically
          slideshowSpeed: 5000,           //Integer: Set the speed of the slideshow cycling, in milliseconds
          animationSpeed: 600,         //Integer: Set the speed of animations, in milliseconds
          initDelay: 0,                   //{NEW} Integer: Set an initialization delay, in milliseconds
          randomize: false,               //Boolean: Randomize slide order
        useCSS: true,                   //{NEW} Boolean: Slider will use CSS3 transitions if available
          touch: true,                    //{NEW} Boolean: Allow touch swipe navigation of the slider on touch-enabled devices
           video: false,                   //{NEW} Boolean: If using video in the slider, will prevent CSS3 3D Transforms to avoid graphical glitches
          directionNav: true,             //Boolean: Create navigation for previous/next navigation? (true/false)
          controlNav: true,               //Boolean: Create navigation for paging control of each clide? Note: Leave true for manualControls usage
          keyboard: true,              //Boolean: Allow slider navigating via keyboard left/right keys
          mousewheel: false,              //Boolean: Allow slider navigating via mousewheel
          prevText: "Previous",           //String: Set the text for the "previous" directionNav item
          nextText: "Next",               //String: Set the text for the "next" directionNav item
          pausePlay: false,               //Boolean: Create pause/play dynamic element
          pauseText: "Pause",             //String: Set the text for the "pause" pausePlay item
          playText: "Play",               //String: Set the text for the "play" pausePlay item
          startAt: 0,                //Integer: The slide that the slider should start on. Array notation (0 = first slide)
          pauseOnAction: true,            //Boolean: Pause the slideshow when interacting with control elements, highly recommended.
          pauseOnHover: true,            //Boolean: Pause the slideshow when hovering over slider, then resume when no longer hovering 
          start: function(){},            //Callback: function(slider) - Fires when the slider loads the first slide
       controlsContainer: "",          //Selector: Declare which container the navigation elements should be appended too. Default container is the flexSlider element. Example use would be ".flexslider-container", "#container", etc. If the given element is                                        not found, the default action will be taken.
           manualControls: "",             //Selector: Declare custom control navigation. Example would be ".flex-control-nav li" or "#tabs-nav li img", etc. The number of elements in your controlNav should match the number of slides/tabs.
           // Carousel Options
        itemWidth: 0,                   //{NEW} Integer: Box-model width of individual carousel items, including horizontal borders and padding.
        itemMargin: 10,                  //{NEW} Integer: Margin between carousel items.
        minItems: 0,                    //{NEW} Integer: Minimum number of carousel items that should be visible. Items will resize fluidly when below this.
        maxItems: 0,                    //{NEW} Integer: Maxmimum number of carousel items that should be visible. Items will resize fluidly when above this limit.
        move: 0,                        //{NEW} Integer: Number of carousel items that should move on animation. If 0, slider will move all visible items.
       before: function(){},           //Callback: function(slider) - Fires asynchronously with each slider animation
          after: function(){},            //Callback: function(slider) - Fires after each slider animation completes
          end: function(){}               //Callback: function(slider) - Fires when the slider reaches the last slide (asynchronous)
    // EndOAWidget_Instance_2827522
      </script>
      <div id="main-container">
        <p><a href="http://www.woothemes.com/flexslider/">Flexslider Demo and Documentation</a></p>
        <div id="main" class="wrapper clearfix">
          <!-- FlexSlider -->
          <div id="container">
            <div id="slider" class="flexslider">
              <ul class="slides">
                <li> <img src="images/kitchen_adventurer_cheesecake_brownie.jpg" /> </li>
                <li> <img src="images/kitchen_adventurer_lemon.jpg" /> </li>
                <li> <img src="images/kitchen_adventurer_donut.jpg" /> </li>
                <li> <img src="images/kitchen_adventurer_caramel.jpg" /> </li>
                <li> <img src="images/kitchen_adventurer_cheesecake_brownie.jpg" /> </li>
                <li> <img src="images/kitchen_adventurer_lemon.jpg" /> </li>
                <li> <img src="images/kitchen_adventurer_donut.jpg" /> </li>
                <li> <img src="images/kitchen_adventurer_caramel.jpg" /> </li>
              </ul>
            </div>
            <div id="carousel" class="flexslider" style="display:none;">
              <ul class="slides">
                <li> <img src="images/kitchen_adventurer_cheesecake_brownie.jpg" /> </li>
                <li> <img src="images/kitchen_adventurer_lemon.jpg" /> </li>
                <li> <img src="images/kitchen_adventurer_donut.jpg" /> </li>
                <li> <img src="images/kitchen_adventurer_caramel.jpg" /> </li>
                <li> <img src="images/kitchen_adventurer_cheesecake_brownie.jpg" /> </li>
                <li> <img src="images/kitchen_adventurer_lemon.jpg" /> </li>
                <li> <img src="images/kitchen_adventurer_donut.jpg" /> </li>
                <li> <img src="images/kitchen_adventurer_caramel.jpg" /> </li>
              </ul>
            </div>
          </div>
        </div>
        <!-- #main -->
      </div>
      <!-- #main-container -->
        </div>
        <div id="leftcollum2">
          <h1>VOORWAARDEN!</h1>
      <h2>Wij houden het graag zo simpel  mogelijk! </h2>
      <h2><a href="voorwaarden.html">lees hier de voorwaarden</a></h2>
          <p> </p>
      </div>
        <div id="rightcollum2">
          <h1>VRAAG &amp; ANTWOORD</h1>
      <h2>Heeft u vragen of suggesties. Laat het ons weten! </h2>
          <h2><a href="contact.html">Contact</a></h2>
          <h2> </h2>
        </div>
        <div id="mainbox">
          <div id="insideright">
            <h1>Over VINDSTERS.NL </h1>
            <h2>Vindsters.nl is opgericht  door Anne &amp; Lisa van Steenbergen. Twee zussen met een passie voor mooie spulletjes.</h2>
            <h2>Het speuren naar tweedehands zit ze in het bloed. Talloze meubels, vintage laarzen, oud speelgoed of designer item is in de loop der jaren aangeschaft.      En in begin 2014 werd het tijd dit deze goede neus voor het speuren te delen met andere. Het resultaat, Vindsters.nl </h2>
            <h2>Vindsters.nl is een service die het mogelijk maakt om alles te vinden wat je zoekt op het gebied van tweedehands artikelen. </h2>
            <h2>Van  die ene favorite spijkerbroek die je terug wilt of die dure merkbank die je voor een prikje hoopt te scoren tot dat kastje van ikea die niet meer word gemaakt of de speelgoedbeer die je vroeger had, Vindsters.nl bied je de mogelijkheid dit eenvoudig te vinden. </h2>
            <h2>Vindsters.nl selecteerd voor jouw persoonlijk 3 tot 5 advertenties die je zoekt uit alle duizenden advertenties die er online zijn.    </h2>
          </div>
        </div>
        <div class="button2">
      <img src="icons/start2.png"  width="412" height="149" alt="button" onclick="window.open('http://vindsters.nl/vindditnu%20php%20version.php','Websonic','width=960,height=600,scroll bars=no,toolbar=no,location=no'); return false" /></div>
      </div>
        <div id="footer">
          <h2> <a href="voorwaarden.html" target="_new" class="smoothScroll">VOORWAARDEN</a>   |  <a href="contact.html" target="_new" >CONTACT</a>   |    <a href="http://www.pinterest.com/vinddit/" target="_new"><img src="icons/pinterest.png" width="20" height="20" align="absbottom" /></a>    <a href="https://www.facebook.com/" target="_new"><img src="icons/fb_1.png" width="20" height="20" align="absbottom" /></a></h2>
          <p><img src="images/iDEAL_120x30_dubbel.jpg" alt="IDEAL" name="ideal" width="120" height="30" id="ideal" /></p>
        </div>
    </body>
    </html>

    Adding to osgood's reply, you are calling four different jquery libraries as in
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
    <script type="text/javascript" src=
    "main slide js/smoothscroll.js"></script>
    </style>
    <script type="text/xml">
    <!--
    <oa:widgets>
      <oa:widget wid="2559022" binding="#slideshow_header" />
      <oa:widget wid="2559022" binding="#slideshow_1" />
      <oa:widget wid="2827522" binding="#OAWidget" />
    </oa:widgets>
    -->
    </script>
    <script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
    <script src="http://vindsters.nl/main slide js/jquery-1.6.min.js" type="text/javascript"></script>
    <script src="http://vindsters.nl/main slide js/jquery.cycle.all.js" type="text/javascript"></script>
    <script src="http://vindsters.nl/gevonden door js/modernizr-2.5.2-respond-1.1.0.min.js" type="text/javascript"></script>
    <script src="http://vindsters.nl/gevonden door js/jquery-1.7.2.min.js" type="text/javascript"></script>
    This will confuse the browser no end!
    My advice is to remove the last three highlighted lines to see what happens.

  • Need help with adding buttons.

    I thought I could do this without help but I was wrong. I had to add buttons to my program and before it ran fine with the first four buttons I added but know there are many errors and I believe I messed up the whole thing now. Any advice would be greatly appreciated. Here is my code:
    import java.util.*;
    import java.text.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.JFrame.*;
    import java.io.*;
    import java.awt.font.*;
    import java.awt.geom.*;
    import javax.imageio.*;
    import java.awt.image.*;
    public class DVDInventory6
    public static void main(String[] args)
           Scanner input = new Scanner( System.in );
           int j;
          DVD_Genre [] inventory = new DVD_Genre[5]; // Size of the array
          // create DVD object
          inventory [ 0 ] = new DVD_Genre( "Rocky", "Action/Drama", 01, 15, 9.95 );
          inventory [ 1 ] = new DVD_Genre( "RockyII", "Action/Drama", 02, 13, 14.95 );
          inventory [ 2 ] = new DVD_Genre( "Matrix", "Action/Sci-Fi", 03, 23, 14.95 );
          inventory [ 3 ] = new DVD_Genre( "MatrixII", "Action/Sci-Fi", 04, 17, 19.95 );
          inventory [ 4 ] = new DVD_Genre( "Bambi", "Family", 05, 33, 12.95 );
          // Print out a screen title
          System.out.println();
          System.out.printf("Welcome to DVD Inventory:\n\n");
       GUI gui = new GUI();
          for(j=0; j<5; ++j)
               gui.add(inventory[j]);   
         double total = 0;
         for ( j=0; j<inventory.length; j++ )
             total += inventory[j].getvalueofdvds ();
    } // end for
             gui.setTotal(total);
       gui.display();
    public static void sortDVD(DVD[] inventory)
         //DVD_Genre temp[] =  new DVD_Genre[1];
          int i, j;
          for (i=1; i <inventory.length; i++)
             for (j=0; j < inventory.length-i; j++)
                if (inventory[j].getdvdName().compareTo(inventory[j+1].getdvdName())>0)
                   // exchange elements
                   DVD  temp = inventory[j]; //new DVD_Genre [1];
                   inventory[j] = inventory[j+1];
                   inventory[j+1] = temp; //temp [0];
       }//end method main
    }//end DVDInventory6
          class DVD
          protected String dvdName; //  DVD title
          protected String dvdGenre; // DVD genre
          protected int productnumber;  // DVD product number
          protected int numberofproducts; // the number of products in stock
          protected double price; // the price of the products in stock
            public DVD (String name, String genre, int productnumber, int numberofproducts,
    double price ) // class dvd constructor
            this.dvdName = name;
            this.productnumber = productnumber;
            this.numberofproducts = numberofproducts;
            this.price = price;
    this.dvdGenre = genre;
           public DVD( String name, int productnumber, int numberofproducts, double price ) //
    class dvd constructor
            this.dvdName = name;
            this.productnumber = productnumber;
            this.numberofproducts = numberofproducts;
            this.price = price;
          public void setdvdName( String name ) // method to set dvd name
          this.dvdName = name; // store the dvd name
          public String getdvdName()// method to get dvd name
          return dvdName;
          public void setproductnumber( int productnumber )  // method to set productnumber
          this.productnumber = productnumber; // store productnumber
          public int getproductnumber()// method to get productnumber
          return productnumber;
          public void setnumberofproducts( int numberofproducts )// method to set
    numberofproducts
          this.numberofproducts = numberofproducts; // store numberofproducts
          public int getnumberofproducts()// method to get numberofproducts
          return numberofproducts;
          public void setprice( double price )// method to set price
          this.price = price; // price of the products in stock
          public double getprice()// method to get price
          return price;
          public double getvalueofdvds()// method to get valueofdvds
          return numberofproducts * price;
    } // end class DVD
    class DVD_Genre extends DVD
             private String genre; // genre of DVD
      private double restockingFee; // percentage added to inventory value
       //constructor
    public DVD_Genre(String name, String genre, int productnumber, int numberofproducts, double
    price)
       super(name, genre, productnumber, numberofproducts, price);
      this.genre = genre;
                    this.restockingFee = restockingFee;
          public void setdvdGenre( String genre ) // method to set dvd genre
          this.dvdGenre = genre; // store the dvd genre
          public String getdvdGenre()// method to get dvd genre
          return dvdGenre;     
    // Calculates restocking fee based on previous data.
        public double restockFee() {
         double total = 0;
         double restock = 0;
         total = numberofproducts * price;
         restock = total * .05;
                return restock;
        public String toString()
       DecimalFormat Currency = new DecimalFormat("$0.00");
       return "\nDVD Title: " +  dvdName + "\nDVD Genre: " +  dvdGenre + "\nProduct number: " +
    productnumber +
              "\nNumber of products: " + numberofproducts + "\nPrice: " + price + "\nValue of
    DVD's: " +  Currency.format(numberofproducts * price) + "\nRestock Fee: "  +
    Currency.format(numberofproducts * price * .05);
    }// End class DVD_Genre
    class GUI {
    private DVD[] dvds;
        private int nCount;
    private double total;
    // Creates array DVD[]
        GUI() {
            dvds = new DVD[5];
            nCount = 0;
        public void add(DVD dvd) {
            dvds[nCount] = dvd;
            ++nCount;
    public void setTotal(double total)
      this.total = total;
        DecimalFormat Currency = new DecimalFormat("$0.00");
    //Displays the arrays contents element by element into a GUI pane
           public void display() {
      GUIDisplay(dvds, 5);
    public void GUIDisplay(DVD[] products, int numOfProducts)
              PanelFrame frame = new PanelFrame(products, numOfProducts);
              frame.pack();
              frame.setVisible(true);
              frame.setSize(600, 450);
    } // end class GUI
            class PanelFrame extends JFrame
            private JButton first;
            private JButton next;
            private JButton previous;
            private JButton last;
            private JButton add;
            private JButton delete;
            private JButton modify;
            private JButton search;
            private JButton save;
            JTextField dvdName;
            JTextField productnumber;
            JTextField numberofproducts;
            JTextField price;
            private DVD[] products;
            private int numOfProducts;
            private int currentIndex = 0;
    /** Creates a new instance of PanelFrame */
      public PanelFrame(DVD[] products, int numOfProducts)
            super("Welcome to the DVD Inventory");
            this.products = products;
            this.numOfProducts = numOfProducts;
            setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
            setLayout(new GridLayout(6,1,5,5));
            showLogo();
            showLabels();
            showInputFields();
            showButtons();
    public class MovieGraphics extends Component
            private BufferedImage image;
            private boolean imageFound = true;
      public MovieGraphics()
           super();
       try
           image = ImageIO.read(new File("logo.jpg"));
      catch (IOException x)
          x.printStackTrace();
          imageFound = false;
      public void paint(Graphics g)
      if (imageFound)
         g.drawImage(image,
         0, 0, 200, 100,
         0, 0, image.getWidth(null), image.getHeight(null),
    null);
      else
         g.drawString("Gary's DVD Krypt", 30, 30);
    } // end of class MovieGraphics
      public void showLogo()
            MovieGraphics myLogo = new MovieGraphics();
            this.add(myLogo);
      public void showLabels()
            JPanel panel = new JPanel();
            panel.add(new JLabel("DVD Title"));
            panel.add(new JLabel("Product number"));
            panel.add(new JLabel("Number of products"));
            panel.add(new JLabel("Price"));
            this.add(panel);
      public void showInputFields()
            JPanel panel = new JPanel();
            dvdName = new JTextField(10);
            productnumber = new JTextField(10);
            numberofproducts = new JTextField(10);
            price = new JTextField(10);
            dvdName.setEditable(false);
            productnumber .setEditable(false);
            numberofproducts.setEditable(false);
            price.setEditable(false);
            panel.add(dvdName);
            panel.add(productnumber );
            panel.add(numberofproducts);
            panel.add(price);
        this.add(panel);
      public void showButtons()
            JPanel panel = new JPanel();
            first = new JButton("First");
            next = new JButton("Next");
            previous = new JButton("Previous");
            last = new JButton("Last");
            add = new JButton("Add");
            delete = new JButton("Delete");
            modify = new JButton("Modify");
            search = new JButton("Search");
            save = new JButton("Save");
            panel.add(first);
            panel.add(next);
            panel.add(previous);
            panel.add(last);
            panel.add(add);
            panel.add(delete);
            panel.add(modify);
            panel.add(search);
            panel.add(save);
            ButtonActionHandler handler = new ButtonActionHandler();
              first.addActionListener(handler);
              next.addActionListener(handler);
              previous.addActionListener(handler);
              last.addActionListener(handler);
              add.addActionListener(handler);
              delete.addActionListener(handler);
              modify.addActionListener(handler);
              search.addActionListener(handler);
              save.addActionListener(handler);
              this.add(panel);
              setFields(0);
      protected void paintComponent(Graphics g)
      public void setFields(int i)
         setdvdName(i);
         setproductnumber(i);
         setnumberofproducts(i);
         setPrice(i);
      public void setdvdName(int i)
      dvdName.setText(products.getdvdName());
    public void setproductnumber(int i)
    productnumber.setText(String.valueOf(products[i].getproductnumber()));
    public void setnumberofproducts(int i)
    numberofproducts.setText(String.valueOf(products[i].getnumberofproducts()));
    public void setPrice(int i)
    price.setText(String.valueOf(products[i].getprice()));
    private class ButtonActionHandler implements ActionListener
    public void actionPerformed(ActionEvent event)
    if (event.getSource() == first)
    addClicked = false;
    currentIndex = 0;
    setFields(currentIndex);
    makeFieldsEditable(false);
    else if (event.getSource() == next)
    addClicked = false;
    currentIndex++;
    if (currentIndex == numOfProducts)
    currentIndex --;
    setFields(currentIndex);
    makeFieldsEditable(false);
    else if (event.getSource() == previous)
    addClicked = false;
    currentIndex--;
    if (currentIndex < 0)
    currentIndex = 0;
    setFields(currentIndex);
    makeFieldsEditable(false);
    else if (event.getSource() == last)
    addClicked = false;
    currentIndex = numOfProducts - 1;
    if (currentIndex < 0)
    currentIndex = 0;
    setFields(currentIndex);
    makeFieldsEditable(false);
    else if(event.getSource() ==add)
    //add actions for add here
    if (!addClicked)
    resetFields();
    makeFieldsEditable(true);
    int itemNum = incrementItemNumber();
    System.out.println(itemNum);
    itemNumber.setText(String.valueOf(itemNum));
    currentIndex = numOfProducts;
    addClicked = true;
    else if(event.getSource() ==save)
    //add actions for save here
    //we need to call SaveToFile.java
    // SaveToFile.save;
    addClicked = false;
    System.out.println(currentIndex);
    if (!updateProduct(currentIndex))
    JOptionPane.showMessageDialog(null, "You have reached maximum number of products!");
    currentIndex --;
    setFields(currentIndex);
    else
    saveProduct();
    makeFieldsEditable(false);
    else if(event.getSource() == edit)
    //add actions for edit here
    // Inventory.edit;
    addClicked = false;
    makeFieldsEditable(true);
    else if(event.getSource() == search)
    //add actions for search here
    // Inventory.findIndex;
    addClicked = false;
    String name = JOptionPane.showInputDialog("Enter Product Name: ");
    int index = searchName(name);
    System.out.println(index);
    if (index == -1)
    JOptionPane.showMessageDialog(null, "No matching product found! ");
    else
    currentIndex = index;
    setFields(index);
    Here are my errors:
    C:\java>javac DVDInventory6.java
    DVDInventory6.java:460: cannot find symbol
    symbol : variable addClicked
    location: class PanelFrame.ButtonActionHandler
    addClicked = false;
    ^
    DVDInventory6.java:463: cannot find symbol
    symbol : method makeFieldsEditable(boolean)
    location: class PanelFrame.ButtonActionHandler
    makeFieldsEditable(false);
    ^
    DVDInventory6.java:467: cannot find symbol
    symbol : variable addClicked
    location: class PanelFrame.ButtonActionHandler
    addClicked = false;
    ^
    DVDInventory6.java:474: cannot find symbol
    symbol : method makeFieldsEditable(boolean)
    location: class PanelFrame.ButtonActionHandler
    makeFieldsEditable(false);
    ^
    DVDInventory6.java:478: cannot find symbol
    symbol : variable addClicked
    location: class PanelFrame.ButtonActionHandler
    addClicked = false;
    ^
    DVDInventory6.java:485: cannot find symbol
    symbol : method makeFieldsEditable(boolean)
    location: class PanelFrame.ButtonActionHandler
    makeFieldsEditable(false);
    ^
    DVDInventory6.java:489: cannot find symbol
    symbol : variable addClicked
    location: class PanelFrame.ButtonActionHandler
    addClicked = false;
    ^
    DVDInventory6.java:496: cannot find symbol
    symbol : method makeFieldsEditable(boolean)
    location: class PanelFrame.ButtonActionHandler
    makeFieldsEditable(false);
    ^
    DVDInventory6.java:501: cannot find symbol
    symbol : variable addClicked
    location: class PanelFrame.ButtonActionHandler
    if (!addClicked)
    ^
    DVDInventory6.java:503: cannot find symbol
    symbol : method resetFields()
    location: class PanelFrame.ButtonActionHandler
    resetFields();
    ^
    DVDInventory6.java:504: cannot find symbol
    symbol : method makeFieldsEditable(boolean)
    location: class PanelFrame.ButtonActionHandler
    makeFieldsEditable(true);
    ^
    DVDInventory6.java:505: cannot find symbol
    symbol : method incrementItemNumber()
    location: class PanelFrame.ButtonActionHandler
    int itemNum = incrementItemNumber();
    ^
    DVDInventory6.java:507: cannot find symbol
    symbol : variable itemNumber
    location: class PanelFrame.ButtonActionHandler
    itemNumber.setText(String.valueOf(itemNum));
    ^
    DVDInventory6.java:510: cannot find symbol
    symbol : variable addClicked
    location: class PanelFrame.ButtonActionHandler
    addClicked = true;
    ^
    DVDInventory6.java:517: cannot find symbol
    symbol : variable addClicked
    location: class PanelFrame.ButtonActionHandler
    addClicked = false;
    ^
    DVDInventory6.java:519: cannot find symbol
    symbol : method updateProduct(int)
    location: class PanelFrame.ButtonActionHandler
    if (!updateProduct(currentIndex))
    ^
    DVDInventory6.java:527: cannot find symbol
    symbol : method saveProduct()
    location: class PanelFrame.ButtonActionHandler
    saveProduct();
    ^
    DVDInventory6.java:529: cannot find symbol
    symbol : method makeFieldsEditable(boolean)
    location: class PanelFrame.ButtonActionHandler
    makeFieldsEditable(false);
    ^
    DVDInventory6.java:531: cannot find symbol
    symbol : variable edit
    location: class PanelFrame.ButtonActionHandler
    else if(event.getSource() == edit)
    ^
    DVDInventory6.java:535: cannot find symbol
    symbol : variable addClicked
    location: class PanelFrame.ButtonActionHandler
    addClicked = false;
    ^
    DVDInventory6.java:536: cannot find symbol
    symbol : method makeFieldsEditable(boolean)
    location: class PanelFrame.ButtonActionHandler
    makeFieldsEditable(true);
    ^
    DVDInventory6.java:542: cannot find symbol
    symbol : variable addClicked
    location: class PanelFrame.ButtonActionHandler
    addClicked = false;
    ^
    DVDInventory6.java:544: cannot find symbol
    symbol : method searchName(java.lang.String)
    location: class PanelFrame.ButtonActionHandler
    int index = searchName(name);
    ^
    23 errors

    and many more errors
    such as;
    * you need to declare a method called makeFieldsEditable that takes a boolean value
    eg private void makeFieldsEditable(boolean editable){
       // add your implememntation
    }* you need to declare a method called resetFields
    eg private void resetFields(){
       // add your implememntation
    }* you need to declare a method called updateProduct
    eg private void updateProduct(int index){
       // add your implememntation
    }etc

  • Urgent.Please Help me. DB2 Connectivity and Swings

    Hi.
    I use Jbuilder 7.0 and I want to query from a DB2 database.
    I have used some swing classes in my frame.
    I have defined a new library that contain DB2 JDBC Driver and added it to required Library of my project.
    I have used a DataBase class instance for connecting to DB2.
    in jbuilder designer,after selecting connection property of Database class,I want to select DB2 JDBC Driver from Drivers List.
    In the JDBC Drivers List,I see COM.ibm.db2.net.DB2Driver(DB2 JDBC Driver),but it's color is red and seems that the driver is not accessible.
    Do you know why it's inaccessible?
    any Idea?
    Best Regards.

    Hi all
    Help me please,urgently.
    Thanks.

Maybe you are looking for