Interacting with a panel from outside ..?

I was wondering.. is there a way to use a keyListener to read the keys a user presses, even if they don't have the panel that is running selected? If anyone can help it'd be much appreciated.
Oh, and while I'm here, I might as well ask: When I use JComponents, like JButton, or JTextfield, the don't show up on a JPanel, but the Button, and TextField do. It causes a problem for me when I wisht o use a JComboBox, especially.

No, no - I mean.. Like, a panel (Seems to be the only thing I can get to use listeners, and such with at the moment) that say.. If you were writing in a forum, and it was running, and you typed the consecutive characters 't', 'e', and 'h', it would use the robot to backspace 3 times, and write 't' 'h' 'e'. That sort of thing. Is it possible? And as for the JComponents, I'll grab a bit of my most recent attempt..
import java.awt.event.*;
import java.awt.event.KeyEvent.*;
import javax.swing.*;
import java.awt.*;
import java.io.*;
* Game class; This takes care of all rules, and user interaction.
public class Game extends JPanel implements KeyListener, MouseListener, MouseMotionListener, ActionListener {
    private JComboBox cb; // ComboBox allows user to select a song before they play the game.
    public Game() {
        songs = new String[5]; // Making the array of music selections.
        // Defining song names.
        songs[0] = "None";
        songs[1] = "1";
        songs[2] = "2";
        songs[3] = "3";
        songs[4] = "4";
        // ComboBox initiation / addition to frame.
        cb = new JComboBox(songs);
        cb.addActionListener(this);   
        add (cb);
        Start(); // Initiating the variables that can be reset.
    } // End Game constructor.
     * The Start method; Initiating / resetting of variables.
    public void Start () {
        cb.setVisible (true); // The game begins with the ComboBox visible.
    } // End Start method
     * Paint method, draws the contents of the frame.
     * @param       g       Graphics        Java necessity to draw.
    public void paint (Graphics g) {
        cb.setVisible (true); // Show the ComboBox.
So that's basically what I did, I took out the other 2000 lines of code to just show the absolute basics of it. Now, when I click on its area, it shows the dropdown list, but the spot where it should show the currently selected item doesn't show up. There have been a few times I did see it, btu I cannot remember if i was on my home copmuter or not ..                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Similar Messages

  • The sound  with movieclip loaded from outside

    Hi.everybody...I have a probelm with sound working with
    movieclip loaded from outside. this movieclip is just working fine
    alone..but after being loaded to the other movie..the sound doesnt
    play any more.
    by the way,I loaded this movieclip with loadclip and also add
    listener on it.
    any suggestion,,please..thank u .

    try adding
    yourHolder._lockroot = true; //yourHolder would be the
    instance name of the holder MovieClip

  • Interact with HTML Panel

    I've managed to create an html panel inside a tooltip, but
    can't work out how to interact with it. I've looked at the example
    of an interactive tooltip, but arn't sure how to modify this to
    interact with the panel. Can anyone advise please. Thanks. My test
    so far is here:
    http://fctu.org.uk/samplepages/tooltip2.asp

    Sorry, sorted it. Got my curly brackets in the wrong
    place.

  • Spry Accordian with dynamic panels from XML

    Hi. I've searched, but haven't seen anybody answer this yet.
    I'm trying to build a page that uses a spry accordian to display
    data by category. So category 1 is on panel 1 in a spry table with
    a link to a spry detail section on the page. Category 2 is on panel
    2 in a spry table with a link to the same spry detail section, etc.
    I have 2 issues: 1) I haven't figured out how to filter a
    single XML data set onto different accordian panels or
    2) how to get the same detail region to take links from
    different XML data sets on the different panels.
    Any help that anybody could give would be VERY much
    appreciated.
    THANKS!

    I did get it working. Please check out..
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=602&threadid=1334877
    The key is the Data Set Shell. I use multiple data sets for
    each category, in your case department. Then I list the items in
    that category to update a detail region. If the above link doesn't
    help you please re-post and I can give you some more help.

  • I cant add application or custom interaction with button panel?

    application interaction and custom interaction doesnt appear :s  what will i do???

    You can add interactions using the Interactions panel -- visible to the right in your screenshot, just above the Properties panel.
    If that doesn't answer your question, please reply back with more details about what you're trying to do.  What do you mean by "custom interaction"?
    - Peter

  • Interacting with wep pages from wp8 app

    i am developing wp8 app .In my app a content from web page is streamed with htmldocument class.but i want to stream other thing from webpage.The problem is i need to click combo box and click one of the options then the content i fetch from web site is changed
    .In combo box there are cities and when i click one of them the information in web page changes.but the link doesnt change for the website the change happens in web page
    i am sure if you look web site you will understand
    here is website http://www.vaktija.ba/mobile/

    It appears you are posting in the wrong forum. This one is about the Microsoft Access database product that is part of Office.
    -Tom. Microsoft Access MVP

  • Has anyone ever figured out how to interact with PP events from LabVIEW?

    We would like to know how to interface a motor control system with a powerpoint file such that after each motor step is complete the next slide is shown and so on.
    Direct contact can be made via [email protected]
    Cheers Jim & Jon

    You can use PP or just put your graphs in a picture control, easyly passing from one step to the next. If you prefer using PP, you could use ActiveX, as is done to control Excel within LabVIEW.
    Good luck

  • Using FILE to interact with the CI from an App server

    Hi All.
    We have a custom code function where a user takes a text file and uploads it into the SAP system. The file is immediately processed and a new 'outbound' file is created. Currently, we have the dirctory structure set-up on out CI/DB server. Our users access the system from one of 2 application servers.
    The issue we have is that due to the definition in FILE, when the users execute the report, it errors out. This is becasue when they execute, SAP looks to the local server - the app servers - for the directory. As stated, this directory lives on the CI. Does anyone know how to adjust the functionality of FILE so that I can point the program to execute on the CI and not the app server? Thanks!

    Hello Tim,
    We have a similar scenario like you but dont face this issue. 2  things are imüportant here:
    1. The directory residing on CI should be accessible from the other application server i.e the mount should be correct.
    2. The logical file path name in FILE should be correct. This is very important.
    Believe me we have a more complex arrangement where 5 SAP s are involved and the directory resides on only one of them
    Also FILE cannot dicate on which system the program is executed.It purely depends on the app server where the user is logged in.
    Regards.
    Ruchit.

  • Interacting with html documents from flash

    Hi,
    I'm a newbie in actionscript. I created a world map in flash. The map has regions (Europe, North America, Latin America, etc.). The regions on the map are defined as buttons.
    The final flash map will be embedded in an html document (map.html). The idea is that when you click for example the "Europe" button on the flash movie, this will open an html document called Europe.html and will show it underneath the map flash (inside map.html).
    The "Europe.html" for example contains a list of countries.
    In this mission I have 2 problems:
    1.       What script I have to attach to every region button on the flash map so it will call the right html file into the div on the map.html?
    2.       What script do I have to put inside the html document?
    Any help will be much appreciated. thank you
    Arie M.

    assign your button an instance name (in the properties panel after selecting your button) and use that name in the actions panel:
    yourbutton.addEventListener(MouseEvent.CLICK,f);
    function f(e:MouseEvent):void{
    navigateToURL(new URLRequest("map.html"),"youriframe")

  • Interact with Bidding engine from Contract

    Hi
    Through contract can we create bidding document and what status are possible.
    Reg
    Pooja

    Hi
    Yes, when we click "negotiate" button then bidding document is created there are two parts to it.
    1. when my contract document is in "held" status and now when we click "negotiate" then bidding document is created and contract status is in "In negotiation".
    2. once the contract is "released" status and after sometime due to some changes in business or if my contract is coming to end then if we click "negotiate" then contract status changes to " in Renewal".

  • Mouse not interacting with panels.

    I have CS6 wich I just DL a few weeks ago for school, I use no plug-ins or other add on software. The problem is my mouse will not interact with the panels, (ie layers, swatches, and the such) in InDesign. So far Photoshop Illustrator, and Bridge all work just fine it is only ID that I am having issues with. On the panels I can get it to open the group but it has no interaction with the fine details, selecting layers, double click name to rename locking viewing and open layer options, create new layer button will also not work, I can use the options button at the top right of the panel for some things but it leaves me limited on what can be done. I can not even use my mouse to switch between layers. Any idea on what may be causeing this and what I can do to fix it. (yes my mouse works, it is charged and interacts with other software and games with no problem)

    Bob thanks so much for this. I had been using IdCS6 on Win7 without issues but recently got a new larger screen so had increased font size. BTW I did several searches on Adobe forum using various combinations of "indesign CS6 mouse will not work in layers panel" and did not manage to find your helpful reply.I eventually found it on about page 10 of Google search results! Have spent half a day on this search and found nothing so not a lot of info on this issue out there...I would not have found this information anywhere else. Glad I persisted! Again many thanks.

  • Having issues with BC panel in DW

    Hi,
    i'm having trouble with the BC panel in DW:
    - I'm getting an error message, saying that Configuration:Shared:BC:JS:bc_sites.js is running for a long time. This window pops up from time to time, resolving is possible but annoying. (Deleting configuration folder and rebuilding it). But the error message returns after a few days. 
    - Loggin in with BC panel from DW always takes two times, as the panel does not react the first time, I also have to login each time I restart DW or change a site. No way of staying logged in. Thats annoying.
    - The panel renders the content in a smaller area then the panel is, so if you increase width of panel, content stays narrow. Thats weird.
    Would be nice to take care of this BC panel issues, as the BC panel is an important part of BC-DW workflow.
    My specs:
    iMac with OS X Mavericks
    Adobe CC
    BC Partner
    Regards,
    Dennis

    Hi,
    Sorry you're having problems.
    How To get Help Quickly
    http://forums.adobe.com/thread/470404
    Post a URL to your test page so we can *SEE* what you see.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

  • Able to interact with a cRIO remote front panel from one computer but not another

    I have a cRIO application that publishes a remote front panel for monitoring and control of the application. From one PC (Win7 & firefox) I can see, interact and control the cRIO through the published remote front panel. From a second PC, also Win7, I can see and monitor the cRIO's state, but the remote panel that is opened does not allow for any interaction and this is true whether I'm using IE, FF or Chrome as the browser. When either PC is connected to the cRIO, it is via a dedicated Ethernet link and only the cRIO and the one PC are on that network. For this two-device private network, the PC is always at address 192.168.1.1 while the cRIO always uses 192.168.84.199 (port 8000).
    The firewall rules on both PCs are setup to allow all incoming and outgoing programs/ports/protocols to be used between these two IP addresses.
    Both PC's have up-to-date LabVIEW development systems installed on them (which more or less guarantees they have the minimum require LV runtime needed to see and use a remote front panel).
    What might be different on the PC that view but cannot interact with the remote panel?
    Solved!
    Go to Solution.

    Sam_Sharp wrote:
    Right click on the second one and select "take control of this VI".
    As far as I am aware - only one viewer of the remote front panel can control the panel at any time - the rest can only view.
    As I tried to say in my original post, there was only one host physically connected to the private network at any given time (by virtue of the fact that the one Ethernet cable connection to the private network was being moved back & forth between the two hosts) so there was no way both hosts could be trying to control the cRIO at the same time. I even went so far at one point of restarting the cRIO while it was connected to the problem host to see if would render it functional, but it did not.
    But I did not know that it was possible to do what you suggested, much less that there was a right-click context menu associated with a remote panel, so I tried it and it worked!    Thank you!

  • Display and interact with a vi front panel on remote C++ app

    Hello:
    I am new to LV and need a little advice.  I need to display a LabVIEW VI front panel in my C++ .Net application that users can interact with to view real-time spectrum data.  The C++ app (client) must reside on a separate computer(s) from the VI so that the client can connect from anywhere around the world and interact with the VI. 
    I am not sure about the basic architecture that should accompany a good solution.  We want to use TCP/IP but not DataSocket.  I do not have access to Measurement Studio but I do have access to LabVIEW Professional Development System v 8.2.  Can anyone provide suggestions on what I need to do in order to
    1.  Connect to my TCP server using my C++ client app - I have already written TCP client and server code which communicate but now I need to integrate LV
    2.  Get access to the VI sitting on that server
    3.  Send the VI front panel to the client for display
    4.  Allow the user to modify parameters on the front panel displayed on the C++ client, send those changes back to the server, and refresh the front panel displayed in the C++ client given the new parameters (I would like a real-time display of the spectrum to always be available)
    Is this possible?  Has anyone done this using C++ .NET in VS2005?  Are there examples I can mimic or references that will help direct me?  I have searched and searched through NI's help and found a lot of good stuff but I'm still feeling confused about the best way to utilize LV.
    Thank you in advance!

    One more question ... what if I could use Measurement Studio?  The documentation seems to indicate that it's easy to create network applications and therefore it would be easy for me to re-create our VI's front panel using Measurement Studio components in my C++ app and then simply connect those components to the networked hardware (TCP/IP or DataSocket) that could be located anywhere in the world.
    Depending on what components you are using in your LabVIEW panel, it is probably pretty easy to build a Measurment Studio application to look like a LV panel.
    Given that, you could use network shared variables to move data across the network, no TCP programming necessary -- I think that this is pretty easy to do, but I don't know the specifics about variable programming in that environment.  Also, you will probably need to add some smarts to the server side to make sure that it is reading to and writing from variables in an appropriate manner.
    Question: why can't you just use LabVIEW for the client application also?

  • I have a macbook pro from 2009 and the software is 10.5.8 how do i update it so i can have more interaction with the applications

    i have a macbook pro from 2009 and the software is 10.5.8 how do i update it so i can have more interaction with the applications

    Note some programs may not work with Lion or later
    Upgrading to 10.7 and above, don't forget Rosetta!

Maybe you are looking for

  • Alternate of  'Translate Codepage' in ECC 6.0

    Hi Guys,  I am having problem with the syntax of the below statement TRANSLATE itab  TO  CODE PAGE P_PCODE where P_PCODE containscodepage value  for UNIX file system I guess. and ITAB is DATA: BEGIN OF ITAB OCCURS 0,         RECTYP(1) TYPE C,        

  • Error 150:30 at start after miragtion from old to new macbook

    My elements 8.0 did not longer start. Is terminates with error 150:30 . The adobe support could not me in this case. Hope somebody could help me. Thanks Berni

  • Footer is not appearing?

    Can anyone help me figure out why the footer is not appearing on this page: http://wakinguptogether.org/index_test6.html I'm using the footer CSS from one of the Dreamweaver supplied pages and I'm a beginner with CSS.  I'm at my wits end.  This is ha

  • 10g RAC on SOLARIS 10

    Hi, What is the best CLUSTER I can use for my 10g RAC on SOLARIS 10. Regards MMU

  • GL Balance not showing in F.01,,when choose group currency 30

    Hi gurus, When we run the report : F.01 (Balance Sheet / P&L Statement) with Currency type: 10 (Company Code Currency - INR) report is showing all GL balances. But if we run the same report: selecting Currency Type 30 (Group Currency-USD) no GL Accou