Clip Board Problem

Hey
Thanks for any help i got with the my last problem. I have incoporated the clipboard into the below code. As far as i can gather the code for the clip board is correct as i have it working in simple Jframe and it is working right.
I just cant get it to wotk on the code below, i had other methods in the action preformed, but i've taken them out so its easier to read. If any one can see the problem it would be great. The only error that i am getting is for the dimension size, but it jframe runs fine even with that.
Thanks
Ambrose
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;
import java.awt.datatransfer.*;
public class Sending_Mail extends JFrame implements ActionListener, ClipboardOwner
    private JButton b2;
    private JButton b1;
    private JTextArea ta1;
    private JLabel lb1;
    private JTextArea ta2;
    private JLabel lb2;
    private JTextArea ta3;
    private JLabel lb3;
    private JTextField t1;
    private JLabel lb4;
    private JLabel lb5;
    private JTextField t2;
    private JLabel lb6;
    private JTextField t3;
     private JComboBox cb1;
     /*int rows = 20;
    int cols = 30;
    textarea = new JTextArea("Initial Text", rows, cols);*/
     public String a = "Router A";
    public String b = "Router B";
    public String a_b = "A-B = 20 \nA-D-B = 30 \nA-C-B = 40 \nA-C-D-B = 50 \nA-D-E-C-B = 60";
    public String b_a = "B-A / B-C-A / B-D-A / B-D-E-C-A / B-C-D-E-A";
    public int a_b1 = 100;
    public int b_a1 = 200;
    public int A_B = 100;
    public int A_D_B = 300;
    public int A_C_B = 250;
    public int A_C_D_B = 400;
    public int A_D_E_C_B = 500;
    public Sending_Mail() {
        //construct components
        String[] jcomp7Items = {"Ireland", "IP 1", "IP 2", "IP 3", "IP 4", "IP 5", "America", "IP1", "IP2", "IP3"};
        b2 = new JButton ("Exit Application");
        b1 = new JButton ("Main Menu");
        ta1 = new JTextArea (3,10);
        lb1 = new JLabel (" All Available Routes");
        //Line Wrap
        ta2 = new JTextArea ("Some\nInitial\nText", 3, 10);
        ta2.setLineWrap(true);
        lb2 = new JLabel ("  Progress of E-mail");
        ta3 = new JTextArea (3,10);
        lb3 = new JLabel ("  User Information");
        t1 = new JTextField (5);
        lb4 = new JLabel ("  E-mail Size");
        lb5 = new JLabel ("  Sender Router");
        t2 = new JTextField (5);
        lb6 = new JLabel ("  Destination Router");
        t3 = new JTextField (5);
        //set components properties
        b2.setToolTipText ("Allows the User to exit the Application");
        b1.setToolTipText ("Returns the User to the Main Menu");
        ta1.setToolTipText ("Shows a List of all Available Routes");
        ta2.setToolTipText ("Progress of Routing Algorthnm");
        ta3.setToolTipText ("Tells the User whats Going on");
        t1.setToolTipText ("Shows the size of the E-Mail Created Earlier");
        t3.setToolTipText ("The Destination of the Router");
        //adjust size and set layout
        setPreferredSize (new Dimension (750, 480));
        setLayout (null);
        //add components
        add (b2);
        add (b1);
        add (ta1);
        add (lb1);
        add (ta2);
        add (lb2);
        add (ta3);
        add (lb3);
        add (t1);
        add (lb4);
        add (lb5);
        add (t2);
        add (lb6);
        add (t3);
        //add (cb1);
        //set component bounds (only needed by Absolute Positioning)
        //Exit Application
        b2.setBounds (255, 405, 140, 20);
        //Main Menu
        b1.setBounds (55, 405, 140, 20);
        ta1.setBounds (360, 55, 150, 255);
        lb1.setBounds (360, 20, 150, 25);
        ta2.setBounds (185, 55, 150, 255);
        lb2.setBounds (185, 20, 150, 25);
        ta3.setBounds (10, 55, 150, 255);
        lb3.setBounds (10, 20, 150, 25);
        t1.setBounds (535, 55, 100, 25);
        lb4.setBounds (530, 20, 95, 25);
        lb5.setBounds (530, 100, 130, 25);
        t2.setBounds (535, 130, 100, 25);
        lb6.setBounds (535, 160, 125, 25);
        t3.setBounds (535, 195, 100, 25);
        //cb1.setBounds(25,600,95,20);
          b1.addActionListener(this);
          b2.addActionListener(this);
          t3.addActionListener(this);
          /*b4.addActionListener(this);
          t5.addActionListener(this);*/
     public void lostOwnership(Clipboard cb, Transferable tr) {};
public void actionPerformed(ActionEvent event)
          String cliptext = t1.getText();
          Toolkit tk = this.getToolkit();
          Clipboard cb = tk.getSystemClipboard();
          cb.setContents(new StringSelection(cliptext), this);
     }  //  public void actionPerformed()
    public static void main (String[] args) {
        Sending_Mail application = new Sending_Mail();
      application.setDefaultCloseOperation(
         JFrame.EXIT_ON_CLOSE );
        /*JFrame frame = new JFrame ("Sending_Mail");
        frame.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE);
        frame.getContentPane().add (new Sending_Mail());
        frame.pack();
        frame.setVisible (true);*/
}

Cheers, its just i wanted it to work using the mouse as i do in this simple example below
import java.awt.*;
import java.awt.datatransfer.*;
import java.awt.event.*;
public class ClipTest extends Frame implements
                    ActionListener, ClipboardOwner
     TextField tf = new TextField(20);
     public void actionPerformed(ActionEvent event)
          String cliptext = tf.getText();
          Toolkit tk = this.getToolkit();
          Clipboard cb = tk.getSystemClipboard();
          cb.setContents(new StringSelection(cliptext), this);
     }  //  public void actionPerformed()
     public void lostOwnership(Clipboard cb, Transferable tr) {};
     public static void main(String[] args)
          ClipTest ct = new ClipTest();
          ct.setLayout(new FlowLayout());
          ct.tf.addActionListener(ct);
          ct.add(ct.tf);
          ct.setSize(400, 300);
          ct.setVisible(true);
     }  //  public static void main()
}[\code]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • Web Agent and Clip Board set up for multi user environment

    Hi
    Our environment is
    Database: 0racle8.1.5 on Sun Solaris
    Currently we are not using OAS but a portal server and Apache
    Intermedia Web Agent and Clip Board are working fine.
    The questions are
    1. if there are multiple users (content managers) who would be adding /modifying content in the database, the how can I go about with Clip board.
    2.The requirement is these people should be able to search documents on the basis of keywords. So how do we integrate Intermedia query capabilities on this clip board interface.
    3. For production level how do we go about implementing.
    Should we continue to have the ctxsys user and use that itself.
    Thank you for any solutions

    I have NO idea if these "exact problems" pertain to Macs, since I think most of these discussions are about Windows... but, some reading (not all PPro, but I put all the links I have saved, just for general information)
    -see #3 http://forums.adobe.com/thread/771151
    -you may NOT "map" your My Documents folder to a network drive
    -you MUST give all users administrator accounts to use Premiere
    -and especially Encore dual layer http://forums.adobe.com/thread/969395
    -#5 Server 2008 is UNsupported http://forums.adobe.com/thread/851602
    -a work around, of sorts http://forums.adobe.com/thread/957523
    -and not on a "domain" http://forums.adobe.com/thread/858977
    -also PreEl see #5 http://forums.adobe.com/thread/1017199
    -more PreEl problem http://forums.adobe.com/thread/975117
    The solution... some day... may be at this link
    Adobe Anywhere http://www.adobe.com/products/adobeanywhere.html

  • Error in Copying from Clip Board F4 help in WebGUI at ITS

    Hi
       I am facing a problem while trying to upload from clip board in F4 .
    It is giving me error "Error while calling".
    the same thing is working fine in development server.
    please suggest some thing .
    Regards
    Sachin

    Reading the clipboard is a functionality which was introduced with a support package. Probably your production and development system are not on the same SAP_BASIS SP level. Dev is on a newer SP than PROD .
    Regards,
    Klaus

  • Clip board

    what is clip board in cic winclient?

    paste it some where else, like in an email or a note
    Click here to Backup the data on your BlackBerry Device! It's important, and FREE!
    Click "Accept as Solution" if your problem is solved. To give thanks, click thumbs up
    Click to search the Knowledge Base at BTSC and click to Read The Fabulous Manuals
    BESAdmin's, please make a signature with your BES environment info.
    SIM Free BlackBerry Unlocking FAQ
    Follow me on Twitter @knottyrope
    Want to thank me? Buy my KnottyRope App here
    BES 12 and BES 5.0.4 with Exchange 2010 and SQL 2012 Hyper V

  • DC In Board or Logic Board problem?

    I have a 12" iBook G4 that's about 2 years old. It's been having intermittent problems reading the charger for awhile now and would flash charging and then not charging over and over again before it would begin to charge up again. This weekend it decided to stop reading the charger completely. The battery works fine in another computer and another battery works fine in it -- it just won't charge again once it loses it's juice.
    It also will not work with just the power adapter plugged in with no battery. The little light comes on, but doesn't seem to pump power into the computer. And it's not an issue with the charger as it charges our other iBook just fine.
    I've read conflicting info elsewhere about what it actually could be so I'm hoping someone could shed some light. Does it sound like just a DC In Board problem? Or a bigger Logic Board problem? Any help would be great... thanks!

    From what I have read on this forum, people have managed to get the DC In Board replaced for a little over US $100. This would be at an Apple authorized repair shop rather than by Apple itself. This is much less than the cost of a new MacBook. I don't know what might be available in your area, but it would be worth asking at a repair shop.
    Good luck!

  • Changing the clip board size?

    So I have this multipage document I am working on and I needed more pages so I added the artboards I need however then now go beyond the clip board size (see picture below), how do I change that?

    /\ this is a screen shot in Illustrator /\
    \/ this is a screen shot from Acrobat \/
    It seems that the page order in your pdf is related to the order they are created in Illustrator.
    This button in Acrobat changes whether Acrobat displays one page or a scrolling series of pages.

  • Where is the clip board file?

    I think my mac saves screen shots to the clip board but I cannot find clip board file anywhere - any help....any?

    Choose Show Clipboard from the Finder's Edit menu.
    (94297)

  • Key board problems

    Hi folks
    I switched from PC to Mac I had purchased an Imac 20’.
    Now I have a key board problem. I can't get upper case „s“ with the right shift button, neither with the left button. I need your help and I’m at a loss.
    Please solve this problem.
    Thanks in advance
    bengel2009

    Hi
    I resolved the problem.I created an new user.
    And my Key board problem dosen‘t existed .
    Thx to all

  • IBook G4 (Jun 2005 model) Logic Board Problem (No Display and HDD noise)

    Hello All
    I have been using my iBook G4 (1.2 GHz) with no problems since I purchased it in June 05. But over the past 2 days, I have been noticing this weird incident of "no display" when booted and I was hearing a loud fan noise at times and I can hear my HDD spinning etc. When I tried to restart pressing CTRL+OPTION and POWER after shutting it down, it booted up but reverted my PMU to a date in 2001 (resetting all my email, music etc). But when I tried shutting it down again and restarted normally, I heard the bootup chime but no display. Again, I could hear the fan and the HDD spinning.
    I took my laptop to the Apple Store here in Boca, FL today and was told that its a logic board problem.
    I know there was a Logic Board Repair Initiative from Apple for the G3's and early G4's. Does anyone know such a thing for the fairly recent iBook G4's??.
    Any help is immensely appreciated.
    Thanks
    Karthik
    [email protected]
    [email protected]
    iBook G4   Mac OS X (10.4.8)  

    How do I verify that my issue is a logic board issue. Recently, computer froze. Tried a hard reboot but no luck. It either shows a blank blue screen or I'll get the grey screen and apple with the start-up spinner but it'll stop spinning.
    That's it. I'm able to browse the contents of the iBook's harddrive when I connect it to my Ti Powerbook via Target Disk mode. I even lauched Disk Utility from the powerbook and verified the iBook's drive and it found no problems.
    Could it be the same logic board issues that you guys are having? How do I verify this? Is it worth paying to repair an 800mhz G4 iBook (applecare expired April '06)?
    I've heard about kernal panic issues with the macbooks so I'm apprehensive about getting one of those right now too. Getting frustrated. Actually considered copping an inexpensive PC laptop... ugghhh.

  • Charger board or DC-in board problem?

    I have an iBook SE Graphite 466 with 576 ram with original 10mg HD running OS 10.3.9 and 9.2.2 (on occasion). It has a new battery that I can get 4 to 5 hours run time with. I seldom use the trackpad preferring a USB trackball.
    I am experiencing intermittent battery/power problems. I suspect a DC-in board problem and/or a charger board problem.
    Sometimes if I move the power-in electrical cord (plugged in on the right side) the computer will abruptly lose all power with the screen blacking out and the HD stopping. After startup from these incidents I must reset my system clock from 1969. This, to me, seems like a bad DC-in board.
    At other times, when working with the electrical cord plugged in (with no movement of the cord) or using on battery power only, the same abrupt lose of power will occur.
    Separate from this symptom, if I shut down, then restart at a later time, I may or may not have to reset my system clock. This seems random.
    Another symptom, sometimes when putting the iBook to sleep from the menu (OS X), it goes to sleep normally. But when I shut the case lid, the hard disk and screen will power up and immediately sleep again. Then power up, then sleep and on and on until I finally open the lid and shut it down. This to me seems like a charger board problem.
    Do these symptoms sound like problems with both the charger board and the DC-in board, or something completely different, like a logic board problem or loose connection somewhere?
    Thanks,
    Greg
    PowerBook 5300c, Clamshell 466 SE, Lombard, Pismo, eMac   Mac OS X (10.4.7)  
    PowerBook 5300c, Clamshell 466 SE, Lombard, Pismo, eMac   Mac OS X (10.4.7)  

    Rick,
    Thanks for the response. I know there is no pram battery in clamshells. This makes me think that the problem lies somewhere else. The battery is new as of when I purchased the iBook last May or June.
    The iBook will instantly lose power, on occasion, when working from the battery. But the same thing has happened when the computer is plugged in. If I immediately restart I can continue to work, without having to plug in, though the system clock will be at 1969 again.
    This rather confusing set of symptoms, plus the ones mentioned above, makes me think that power from and to the battery is being interupted by a bad or failing component.
    Would a failed or failing charger board be responsible? or is my understanding of what the charger board does wrong?
    Thanks
    Greg

  • Transaction launcher : Activity clip board integration

    Hi All,
    Anyone please tell me what is "Activity clip board integration" while creating a Transaction Launcher for a navigational link in web IC scenario using Wizard!.
    What the check box for "save data in Activity clip board" means?.
    any hint please update me at the earliest!.
    Thank you,
    sudeep.

    Hi,
    The activity clipboard can display all entities that are contained in the activity collection of the BDC.Activity clip board configuration determines which objects are to be displayed.If the BOL/BOR object combination is already customized, you don’t have to use this step.
    Regards,
    Animesh

  • Select Options copy from clip board

    Last time I checked this wasn't yet implemented and searching through the forums I have not found that to have changed.  Is this still a planned feature or has it been released in some version?

    Hi Sandeep,
    Please Find the LInk Below
    [Clip Board | http://help.sap.com/SAPHELP_NWPI71/helpdata/EN/46/6e2e42e1ef5633e10000000a155106/content.htm]
    Thanks
    kalyan B

  • Copying formdata to clip board

    Hi,
    I'm still struggling to achieve this but if someone can have a look at suggest what is wrong with the code.
    I have made one form and trying to pick up the data available on the form by pressing a copy button and want to take all the date into clip board. for an example I'm just picking one field at the moment named as p213_que_item_ref
    following code is defined as application_process getquerydet (process point ondemand)
    declare
    item_ref varchar(30);
    begin
    item_ref = :p213_que_item_ref
    HTP.prn (item_ref)
    End;
    In the header of the form querydetailsregion following code has been added
    <script language="JavaScript" type="text/javascript">
    function f_copytoCB ()
    var get = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=getqueryDet',0);
    //var get = $v('P213_QUE_ITEM_REF')
    get.add($v('P213_QUE_ITEM_REF'))
    gReturn = get.get();
    copy gReturn;
    </script>
    AND in the button URL added the following code
    javascript:f_copytoCB();
    But it is still not working .......
    Any idea what is wrong with it.
    Thanks

    This is the script I have put on region header
    <script language="JavaScript" type="text/javascript">
    function f_copytoCB ()
    var get = new htmldb_Get(null,&APP_ID.,&SESSION.,null,0);
    get.add('x01',$v(':P213_QUE_ITEM_REF'));
    gReturn = get.get();
    document.execCommand("copy");
    </script>
    Below script I added to copy Button
    Javascript: f_copytoCB()
    But I did not get any errors but i have not got anything in the clipboard neither I received any error in dbuger
    Thanks,

  • Has the clip marker problem been resolved in Premiere cs6?

    Has the clip marker problem been resolved in Premiere CS6.  As of early July, it was not!  Navigating, synchronizing clips seems impossible.

    Explain your problems with markers in this feature request form: http://www.adobe.com/go/wish
    Sorry, that's all I can offer you.
    TrueFriction wrote:
    I'd just like to add my voice to the chorus here - namely that Marker functionality for CS6 is extremely lacking, and has made my workflow for various tasks much longer and more tedious.
    In my case I'm trying to match professional footage of a concert with audience-submitted cell phone footage. The pro footage can't be synced with the non-pro footage via Pluraleyes because the cell phone audio is way too high to be analyzed properly. Hence I need to manually sync, which I can't do efficiently because I can't put clip markers on the pro footage once it's synced in pluraleyes and sent back into Premiere, because it only exists in a sequence.
    I have no idea why Adobe would remove a function used daily by its editors, one that was simple and reliable, for no reason.
    And what's puzzling is that there's been not even an acknowledgement of the issue from anyone at Adobe for 8 months.
    This doesn't make any sense. Usually customer service from Adobe is much better than this. Why no action on this one issue?
    BTW, if you want to add Clip Markers to clips in the Timeline, you can set a keyboard shortcut for that.

  • Clip with problem

    I'm doing an exercise for my students using Parallax, when using the Clipping Tool or propriendade Clip this problem happens, I wonder if I'm doing something wrong?
    to see the video
    Clipping Tool with problem - YouTube

    basicaly, I got a clip that acts as a botton from which a menu drops. the idea is to get the clip to play as I pass over it with my mouse pointer and disapear as i leave the click zone. the clip is on my root and in the clip on my first frame I've put that script that I've posted earlier. it works fine for the scroll over, but it doesn't disapear once i leave the click zone.

Maybe you are looking for

  • I updated to the latest itunes on windows 8, and now itunes won't pick up my iphone 5. How do I solve this?

    Why won't itunes pick up my iphone5? It was working fine before I updated to the latest version. My laptop picks up my phone but itunes doesn't. Any help??

  • Java EE and Java FX

    Hi ! I am developing an application remotely executable. The server part I have developed in the Java EE 7 platform, using Glassfish as application server and EJB for the business logic I thought the client side with Java FX develop What is the best

  • Timestamp question in RS02

    Hi experts,        If I use the transaction RS02 how can I know the timestamp that are using..? because I see that in our development system the screen have Timestamp (UTC).... but if I access the QA environment I see that in that transaction in the

  • Will all of the CS4 programs work with Terminal Services?

    I think the title sums up my question... Will all of the CS4 programs work with Terminal Services?

  • Module wise roles and responsibilities

    hi, i am loganathan, i am new to SAP can anybody tell me that what are the roles and responsibilities of each module consultants? Which module consultant will create what? for ex, PM consultant will create Equipment master data, F/L master data, PM p