Setting Component Location

I want to set the location of my component (in this case a Choice box) using x and y coordinantes. Right now I this:
Choice views = new Choice();
public MPanel(Modeler PARENT, int VIEW)
views.add("Top");
views.add("Bottom");
views.add("Front");
views.add("Back");
views.add("Right");
views.add("Left");
add(views);
views.setLocation(20,20);
MPanel extends panel and no layout manager is ever assigned or declaired. However it still insists on puting the box at the center of the top of the panel.
Any Ideas?

A Panel defaults to having a FlowLayout layout manager. If you really want to use coordinates like that you could try setting the layout manager to null for the panel.

Similar Messages

  • TestStand Component Locator Database Editor - can't set crosshairs

    The help file in the Component Locator Database Editor says
    "Select a component from the list. Use the image scrollbars to center the component in the image. Set the magnification with the zoom controls so the details of the image such as the component identifiers are easily visible. Set the mouse cursor on the item in the image and left click. A crosshair will appear on the image at the cursor position and the coordinates and magnification will be entered into the table next to the item. This process may be repeated to re-enter the data."
    I can't get this to work.  I select the component.  I can see the crosshairs at the bottom left of the picture.  I can't get the crosshairs to move.
    Does this work?

    This doesn't sound like National Instruments TestStand, if it's something from Sierra Instruments then you would be better to contact them or the supplier of this equipment.
    Regards
    Ray Farmer

  • VS2010 Crystal Report Crashes System when using 'Set DataSource Location..'

    Runtime ASP.NET 3.5
    VS 2010
    Under Database Fields (rt click) try Set DataSource Location... causes VS2010 to crash.
    This is on an imported report from VS2008.  VS2008 has no problem with the report.
    Since this is a ASP.NET 3.5 program the internal property field
    <ResGenToolArchitecture>Managed32Bit</ResGenToolArchitecture>
    has been set in the project in order to allow the code to compile w/out errors.
    What is solution for Crystal Report Set DataSource Location?

    Hi Ken,
    Here's one link on the issue: CRVS2010 RTM: Database Expert / External Component has thrown an exception
    The reason is Old OS's used c:\temp as the default, now you are require to use %user%\temp as your temp folder as well as using the AppData folder for your app. If CR finds c:\temp it uses it and depending on what is in there it can cause Cr to crash, XML files have been know to do this.
    Following MS's new rules on users temp folder should make your app Windows Compliant.
    Thanks again
    Don

  • How to set a location of a JFrame using mouseListener?

    Hi,
    I was wondering how i could set the location of a JFrame using the mouseListener? I know when i want to show a JPopMenu i can do:
    pop.setLocation(e.getX(), e.getY());
    pop.setInvoker(null);
    By using .setInvoker(); I can show the jpopup on the position that i clicked my mouse but this method is not available to the JFrame.
    Should i do this with the Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); instead? I was wondering if there is an easier way to do this. If not i can code a workaround but thats not my first choice.
    Thanks

    CaptainMorgan08 wrote:
    deAppel wrote:
    CaptainMorgan08 wrote:
    Why do you need setInvoker() for a JFrame? What's wrong with just setLocation()?The problem is that i want to show my frame where i clicked my mouse but when i get the x,y from the mouselistener getX/Ymethods the frame doesn't show up on the location where i clicked with the mouse, instead it shows the frame in the location x,y NOT relative to the mouse.I see. Well if you're using Java 6, you can use the getXOnScreen() and the getYOnScreen() methods from MouseEvent.
    http://java.sun.com/javase/6/docs/api/java/awt/event/MouseEvent.html#getXOnScreen()
    Otherwise you'll need to add the x and y coordinates of whatever component you're clicking on.I'm using Java 6, I tried your suggestion but i get the same value with getX/Y and getX/YOnScreen()

  • How to set the location of a button  (in an applet)

    Hello
    How do i set the location of the button
    forexample if i want to create a button in the middle of the applet, how would i do that
    Thanks :)

    supahsain08 wrote:
    Well i did this
    Triangle.setLocation(50, 100);
    (where Triangle is a buton)
    it doesn't do anything, stays at the same placeIt's all about context here and there are still many unknowns here that can effect your result and that you have not told us or shown us. My suggestion to you is to consider posting an SSCCE (Short, Self Contained, Correct (Compilable), Example, a condensed program similar to your current program in that it demonstrates the problem at hand, but is the smallest bit of code that still compiles and has no extra code that's not relevant to your problem. For more info on SSCCEs please look here:
    [http://homepage1.nifty.com/algafield/sscce.html|http://homepage1.nifty.com/algafield/sscce.html]
    Also, when posting your code, please use code tags so that your code will retain its formatting and be readable. To do this, you can will need to paste already formatted code into the forum, highlight this code, and then press the "code" button at the top of the forum Message editor prior to posting the message. You may want to click on the Preview tab to make sure that your code is formatted correctly. Another way is to place the tag &#91;code] at the top of your block of code and the tag &#91;/code] at the bottom, like so:
    &#91;code]
      // your code block goes here.
      // note the differences between the tag at the top vs the bottom.
    &#91;/code]or
    {&#99;ode}
      // your code block goes here.
      // note here that the tags are the same.
    {&#99;ode}good luck, pete

  • How to set the location of a button

    Hello
    How do i set the location of the button
    forexample if i want to create a button in the middle of the applet, how would i do that
    Thanks :)

    Do not make duplicate posts.
    http://forum.java.sun.com/thread.jspa?threadID=5293505&messageID=10240164#10240164

  • Where can i set the location of the LogonTicket cookies in the visual admin

    hello:
       where can i set the location of the LogonTicket cookies in the visual administrator?
    thanks!!

    Hi,
    When the SAP LOGON ticket Expired or if we need to update the dates, it is generally done at the Visual Administration Level. SAP Logon Ticket is represented as cookie in the Browser which will help us for SSO.
    In Visual Admin under keystore admin where our Old Portal certificate exists.
    We will need to delete the old portal certificate, then we need to generate new ceritificate and a pop box will appear.. where we need to provide our System details like SID, Client. After these details are given we can get a new certificate in which validity period dates are automatically generated. And also we can import teh same into Portal at Sys Admin->sys config->key store admin for it to be available as .PSE or .DER file for SSO.
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/59bba290-0201-0010-468b-cd12efda573a
    check the above for EP security guide which might help you in the same.
    Regards,
    Ravi

  • How can i set the location of my pictures in photos app for mac osx?

    Not every photo I import into my MacBook have all the metadata in them. iPhoto allowed for setting the location, but in Photos I cannot manage to do so. Is there another way to do it or perhaps it's coming with an update?
    Thanks
    MacBook Mid-2010
    OSX Yosemite 10.10.3
    Photos 1.0

    Adding location data is not yet supported in Photos.
    And we do not know, if future updates will  support this feature. It might help, if you send back feedback to Apple with a feature request. You can use this form:  Apple - Photos - Feedback
    As a work-around, use third party apps to add location data before you import the photos to Photos.
    You could, for example, first import to iPhoto, add the locations, batch change the titles and captions, do all the things that are not yet supported in the new Photos, then export the photos from iPhoto and import them to Photos.
    Or use the free exiftool, if you like the Terminal.
    See:  http://www.sno.phy.queensu.ca/~phil/exiftool/exiftool_pod.html#geotagging_exampl es
    To install exiftool: http://www.sno.phy.queensu.ca/%7Ephil/exiftool/install.html
    Other convenient apps are Jetphoto Studio, Geotagalog, there are many more ..
    I use Jetphoto Studio, but it is not free.

  • OMB command to set the location of an ODBC module

    I am writing OMB scripts to deploy an OWB project to a production environment.
    In the deployment script, I set the location of an Oracle module using the OMB commands :
    OMBALTER ORACLE_MODULE '<modulename>' ADD REFERENCE LOCATION '<locationname>' SET AS DEFAULT
    OMBALTER ORACLE_MODULE '<modulename>' SET PROPERTIES (DB_LOCATION) VALUES ('<locationname>')
    I also have an ODBC module for which I need to assign a location in the same way
    What is the OMB syntax to achieve this?
    OWB version 10.2.0.4

    You can use GATEWAY_MODULE for these. For example ...
    OMBALTER GATEWAY_MODULE '<modulename>' SET PROPERTIES (DB_LOCATION) VALUES ('<locationname>')
    Cheers
    David

  • Crystal 8.5! Set table locations at run time to queries

    Hopefully some people still remember version 8.5...
    I have a number of reports which all work from a single database, this can be either Access or SQL Server, I'm currently testing on Access. I would like to use the same reports but print them for multiple databases, all of which have the same schema. To do this I'm creating UNION queries in one of the databases and I now want to change the location of the tables in the report to use these union queries instead.
    For example, say the report uses table "Customer" in db1 but I have also have db2 and db3 with the same table, I'm enumerating all fields used in the report and creating a union in db1 something like:
    SELECT field1, field2 FROM Customer IN 'db1.mdb'
    UNION SELECT field1, field2 FROM Customer IN 'db2.mdb'
    UNION SELECT field1, field2 FROM Customer IN 'db3.mdb'
    Now I've tested this in Crystal Reports itself, i.e. setting the location to the new tables, and it works OK. I'm having to use an OLEDB connection otherwise the links get removed. When I try to set the location in code I just get no data on the report even though there is data available.
    In code I'm going through all tables (and all tables in all sub reports) and I've tried setting the Location property to the name of the union, I've tried SetTableLocation "<path to db>", "<union name>" and I've tried both using SetLogOnInfo "<path to db>" as well.
    I'm thinking perhaps converting the report to active data and plugging in an ADO recordset could be a solution but I'm not sure how feasible that is from code (i.e. converting the database driver from either pdsoledb.dll or pdbdao.dll to pdsmon.dll and creating a ttx on the fly...).
    Any help much appreciated.

    Hi,
    SetTableLocation should work but you need to make sure you call it for each of the tables in the report or in this case the Union. 
    Just like in the report designer when you set the location you need to point to the table you want to change.  Even though you get the prompt asking to set the same location for all the tables, it's doing the same thing for you. 
    Hope this helps,
    Brian

  • How to set database location for stored procedure

    Post Author: Pavel
    CA Forum: Data Connectivity and SQL
    I've already found out that setting location is not only my problem, but I can't understand the correct decision. We using CR to create reports, accessing the data in MSSQL by ODBC.
    Previously (up to version 8) I set location directly, editing the "Table" field in "Set Location" form. Command after report creation was:
    Proc(DBNAME.dbo.PROCEDURE_NAME;1)
    I erased "DBNAME.dbo.", so the correct command was
    Proc(PROCEDURE_NAME;1)
    After that, the report can run on any database name, any ODBC datasource with any owner name of procedure.
    Now we had to upgdate to CR 11 Developer Edition.
    Here I can't erase database location. But when I change database location to ODBC datasource for another database, the properties of stored procedure "Catalog" and "Owner" remain the same as they initiated when report was created! So, when report runs, it call
    exec OLD_DB_NAME.dbo.PROCEURE_NAME;1 ....
    So, the report doesn't work on customer database, because it has different name.
    How can I erase any database location in the report?We run reports using API from Gupta Team Developer applications, may be it is possible to set database location by API before running report?
    Plese help, any tips are usefull.

    Post Author: Pavel
    CA Forum: Data Connectivity and SQL
    When I set location to another database (i.e. another ODBC datasource) by clicking Update button, "Catalog" property is not changing! It remains unaltered. I had to remove procedure from report and then add procedure from another database, so there was a lot of formatting fileds after that.
    This is not a right decision. I didn't solved current problem, I only temporary patched it.
    The correct desision is to set location programmatically from application.But function PEGetNthTableLocation returns empty strings in CR11, or I incorectly declared this function (from CR8.5):
    BOOL CRPE_API PEGetNthTableLocation ( short printJob,  //handle to print job short tableN,  //number of table struct PETableLocation FAR *location     //structure pointer);typedef struct PETableLocation {    WORD StructSize;    char Location &#91;PE_TABLE_LOCATION_LEN&#93;; //256    char SubLocation&#91;PE_TABLE_LOCATION_LEN&#93;; //256    char ConnectBuffer&#91;PE_CONNECTION_BUFFER_LEN&#93;; //512} PETableLocation;

  • Crystal crashes when trying to "Set Datasource Location"

    Hi,
    My client's Crystal app (version 9) crashes when she attempts to remap a report using the "Set datsource Location". Basically, as soon as she selects it, she gets a msg ..something like "CRw32.exe error" and the app bombs.
    Any ideas on what may cause this folks ??
    thx a lot,
    Steve

    Open the report up and Click on Database, Set Location, find ODBC in the list and connect using your DSN. Now select your DB and tables, varies so you may have just click on the OLE DB connection and the n DSN and click Update button or you may have to do this for each table also.

  • How to set "From Location" in OMBPLUS

    Hi,
    additional question:
    After import of a non_oracle location with database link the field "from Location" is not set. I need to set it to OWB_REPOSITORY_LOCATION.
    How can i do in in OMBPLUS?
    Regards
    Helga

    Hi Helga
    See the code referenced here;
    Re: OMBCREATE LOCATION from dblink - Available properties?
    In the UI when you create a location X of type database link, from location Y using dblink Z, then a connector from Y is created to X behind the scenes. So from scripting you have to create this....
    OMBCREATE LOCATION 'X' SET PROPERTIES (TYPE,VERSION,CONNECTION_TYPE) VALUES ('ORACLE_DATABASE','11.2','DATABASE_LINK')
    OMBCREATE LOCATION 'Y' SET PROPERTIES (TYPE,VERSION) VALUES ('ORACLE_DATABASE','11.2')
    OMBCREATE CONNECTOR 'Y/X' SET PROPERTIES (DATABASE_LINK_NAME) VALUES ('LINKNAMEHERE') SET REF LOCATION 'X'
    Cheers
    David

  • Set Table Location for Reports(Command Objects)

    Hi SAP Gems,
    I would like to thank TED,Merry,Jonathan, Shawn, and all the developers contributing to this community.
    I would really appreciate any help on following question:
    1. I have a report designed in CR 2008 against DB2(JDBC Connectivity).
    2. The report is working fine in the designer.
    3. There are five sub reports in the main report.
    4. The main report doesnt have any command object however every child/sub report has command object with paramaters.
    5. Every subreport is linked.
    6. I would like to change runtime datasource location for this report using CRJ 2.0 SDK'S.( from AIX to Windows BOX)
    7. Both BOX's have same database schema.
    8. I am able to view the report in the jsp page using SDK's, however "set table location doesnt works and prompts me the error:
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: Unexpected database connector error---- Error code:-2147467259 Error code name:failed
    *There is no problem with the code because the sample code is taken from sdn.sap as it is and it works for other report without subreport and command objects.
    I tried using the following code piece but again same problem.
    if(table instanceof com.crystaldecisions.sdk.occa.report.data.CommandTable)
                        IProcedure command = (IProcedure)table;
                        ParameterField commandParam = (ParameterField) command.getParameters().get(0);
                        Values values = new Values();
                        ParameterFieldDiscreteValue pfdv = new ParameterFieldDiscreteValue();
                        pfdv.setValue("ANTON");
                        values.add(pfdv);
                        commandParam.setCurrentValues(values);
    I would like to know if I dont want to set the command level param using:
    ParameterField commandParam = (ParameterField) command.getParameters().get(0);
                        Values values = new Values();
                        ParameterFieldDiscreteValue pfdv = new ParameterFieldDiscreteValue();
                        pfdv.setValue("ANTON");
                        values.add(pfdv);
                        commandParam.setCurrentValues(values);
    would the parameter would be prompted automatically?
    how do I find what paramaeter to set and how ?
    Regards,
    Jonathan Roy

    Hi ,
    Can any one help please?
    Ted !! I would really appreciate an answer from you.
    Regards,
    Jon

  • Set Datasource Location - Crystal XI to Access 2007 DB

    Hi all,
    Is it possible to Set Datasource location for a Crystal XI report to an Access 2007 DB?  I have reviewed the postings and can not find an answer.
    Edited by: Karen Arena on Jun 23, 2009 3:24 PM - I have resolved this on my own, it is possible, see library documentation.

    Resolved through documentation in Library.

Maybe you are looking for

  • Error 1311 - source file not found...m182.cab

    Good Morning, I am trying to reinstall Crystal Reports XI on a blade server and the installation will not complete. I receive message, "Error 1311. Source file not found: Z:\win32\m182.cab. Verify that the file exists and that you can access it." I d

  • Bootcamp.msi ?

    I'm trying to update my Boot Camp drivers to 3.0 with the Snow Leopard install disk, but I keep getting this error in XP: The feature you are trying to use is on a network resource that is unavailable. Click OK to try again, or enter an alternate pat

  • Error in ERMS Workflow

    Hi, I tried to configure ERMS. We can receive e-mails and the standart ERMS workflow is triggered but we got he following errors: - Agent determination for step '0000000004' failed   - Workflow WS00200001 no. 000000002022 activity 0000000004 role 'AC

  • Concurrent users reporting, by cost centre or group

    hi, does anyone know of a way to report on peak numbers of users across a cost centre or group, rather than just per meeting? I can't find a way to do this, hope someone else knows how, it's driving me nuts! the scenario is multiple depts per cost ce

  • Projecting website with iPad

    Hello, We have just launched our new online store and I rented a meeting to present it to our partners. The issue is that when I conect my iPad to the existing projector the website appears distorted with mixed up menu and text. On the iPad itself it