Looking for specific functions

hi all.
My program has a JTextField and i want it to be read only. i.e. I dont want the end user to click into it and start typing. Whatever is written in the field shouldnt be changed. So, is there a method to do it?
The next problem is aligning the text in the field. So which method can be used to right align the text in the field?
Thanks in advance.

There are times when i sit gaping at my screen, waiting for at least a single person helping me out and there are times when i still sit gaping at the screen, being awed by the number of people posting to help me out as if there wasnt another person in the world with java problems.
But its great to have you people solving problems. In any case there are the APIs and all but what a fellow developer can tell isnt always evident in the API. Thanks everyone for helping me out, but dont forget the JTextField disabling method. I need that as well.
A part of my ques is still unanswered

Similar Messages

  • BCG Brightness Contrast Gamma - Looking for BCG function returning color table / lookup table coded in pure G and applicable to Intensity Graph or Picture Control

    Looking for BCG function returning color table / lookup table coded in
    pure G and applicable to 8-bit Intensity Graph or Picture Control. Do
    not want to use IMAQ Vision is this particular application.  Any
    help is appreciated.
    Sincerely,
    Don

    Take a look at this color model software I put together.  (Don't concern yourself much with the basic programming at this point.). The color component generator subVI is borrowed from a LabVIEW example.
    First look at test_color2.vi.  If you adjust the sliders of the various controls, you will see how it works.  You can see that for pure B&W images, brightness, contrast, and gamma (which I think I have coded correctly) are all fairly straightforward to modify.
    Now look at test_color3.vi.  Here we try to adjust BCG for color images using the color model shown here where current color component clusters are carried into the BCG event cases via shift registers.  You can see that once color is introduced into the image, it becomes difficult to mix the colorizing with the BCG model.  And this is pretty much where I am right now.
    Would be interested in comments / suggestions.
    Sincerely,
    Don
    Attachments:
    test_color2.llb ‏2251 KB

  • We look for BAPI/Function to As-Built for Serialized Material (tran.COIB)

    Hello ,
    We look for BAPI/Function to As-Built for Serialized Material (transaction COIB).
    We check transaction COIB in order to create insatlled base for production orders(bill of equipments)
    We look for BAPI/ Function in order to run that process automatically in background base of some rules we will decide. Do you know if there is BAPI/ Function  refer to it?

    Sorry but I found the function group IBPP with the function modules:
    IBPP_CHANGE_IBASE
    IBPP_CREATE_IBASE
    IBPP_GET_IBASE_DOWN_ALL
    For our requirements these fmodules are sufficient.
    Regards

  • Mutt: looking for a function

    hi,
    i'm looking for a function in mutt that prints user defined text in the line below the status bar. it would be nice if user defined macros would output text like "Moved message to ...", like some internal functions do it.
    ccc1

    See if this helps
    https://sites.google.com/site/sqlblindman/fuzzysearchalgorithm
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Looking for NIDAQ Functions/​Examples for 'Analog I/O DMA' and 'Digital I/O DMA'. (I am using 6024,6503 boards and VC++ in my project)

    I am using 6024,6503 boards. I need to implement AnalogInputDMA /AnalogOutputDMA,DigitalInputDMA and DigitalOutputDMA blocks for another software. Why there are no NIDAQ functions used with 'DMA' ?

    Alan;
    The NI-DAQ doesn;t have any functions to specifically access the DMA transfers, because that is done automatically for you. Once you set the data transfer to use the DMA channels, all the rest is handled by the driver.
    Once you set up an Analog input task, and select the data transfer to use the DMA channels, you won't have access to the DMA channels but to the datapoints after the transfer.
    Regarding the digital side of the application, I think that what you are looking for is a pattern input/output type of application, that will use DMAs for data transfer.
    The 6503 doesn't offer that functionality. To accomplish that application, you will need one of the board of the 653x family.
    Hope this helps.
    Filipe A.
    Applications Engineer
    National
    Instruments

  • Microsoft Exchange 2013 eDiscovery - specific search query: looking for specific hyperlinks within e-mails content/body

    Dear all:
    I am currently using the MS Exchange 2013 eDiscovery feature with the objective to identify which of my users have received emails containing specific hyperlinks (e.g. http://website1/webroot/file.zip, http://website2/webroot/file.zip, etc.) from an unknown
    sender.
    To this end, I have been creating an eDiscovery on-hold case looking for a specific search criteria in all mailboxes.
    As the search criteria, I have tried many options but was unable to obtain satisfying results: I know I am missing some e-mails from this specific search (I checked manually). I have notably tried the following search queries (with and without the body:
    search operator, with and without double quotes, etc.)
    body:http://website1/* OR body:http://website2/*
    body:"http://website1/*" OR body:"http://website2/*"
    body:"website1*" OR body:"website2*"
    body:"*website1*" OR body:"*website2*"
    When replaying these queries on my local Outlook client, everything works fine and I get results as expected.
    However, when going through the ECP eDiscovery feature, I am missing some results.
    Therefore, I am looking for any advice on what Exchange eDiscovery KQL query I should use to identify all emails containing, in their message body, a list of specific hyperlinks/URLs.
    Many thanks in advance for your help.
    S.

    Alas I do not know the answer to resolution via ECP and like you I have found it to be a bit maddening to use ECP for discovery tests Ive done when comparing results with our DigiScope product.  I know we can accomplish what your looking to do via Regular
    Expression but again that's with a 3rd party tool. 
    One thought is I suppose it could be an indexing issue with the DB, so perhaps rebuilding the index would help?
    If you do get it working I would love to know the resolution since many of my tests with ECP have left me yelling at the screen.  When its works its cool when not well...
    Search, Recover, & Extract Mailboxes, Folders, & Email Items from Offline Exchange Mailbox and Public Folder EDB's and Live Exchange Servers or Import/Migrate direct from Offline EDB to Any Production Exchange Server, even cross version i.e. 2003
    --> 2007 --> 2010 --> 2013 with Lucid8's
    DigiScope

  • Looking for Financials Functional Expert - $100/Hr + Contract Opportunity

    Our company has been looking for Oracle Financials functional consultants who have implemented the below modules for other organizations - iReceivables, iPayables, Adv. Collections and LockBox
    This is an existing EBS installation with A/R already implemented. We need an expert who can help us implement the above new modules.
    Pl. respond with resume and contact info to [email protected]
    Thanks

    Hi sir,
    I am currently working in a MNC, as an engineer. I am keenly interested in Labview, and i know basics of it.
    Attached is my resume. I would like to work with Labview.
    Regards,
    Pooja karnani
    Attachments:
    RESUME.docx ‏30 KB

  • Looking for specific cable

    I just looked in the store and Apple doesn't seem to sell this, but I am looking for a female/male connector cable. Essentially, I need a cable that replicates an iPhone dock at one end (male) and then plugs into the dock with the female end so I can tether my iphone to my dock. The reason is I can't fit the phone in the dock with the protective cover and it's a pain to remove every morning, as well as the fact that it eventually stretches the plastic cover out taking it off and on repetitively.
    If you've seen one of these somewhere, please let me know.
    Thanks

    EllsbirdAgain,
    There is two ends, one that goes into the dock, one that goes into your computer. The end currently connected to your dock is a dock connector. The other end is a USB connector that goes into your computer.
    The one that goes into the dock can also connect directly to your iPhone.
    Essentially I am recommending bypassing the dock if your case gets in the way of using the dock.
    This is page on the Apple Store online shows what both ends look like:
    http://store.apple.com/us/product/MA591G/A (Note: That is the replacement cable for what came with your iPhone)
    Hope this helps,
    Nathan C.

  • Look for specific message in iMessage

    Hi!
    Im looking to get a script going that looks in the background for a message to arrive, and when it does it should delete a file or program.
    I've made some scripts that sends messages, but not worked with receiving.
    The script should look for a text being received from a certain contact and see if it contains a certain text.
    If both is correct, then execute the row that deletes the file.
    I tried to see if i could get the most fundamental working, but quickly failed.
    tell application "Messages"
      if lastmessage is "1234123" then
      display dialog "Start "
      end if
    end tell
    Althou "lastmessage" was not a variable.
    The text in the message can be predefined and the program/file that should be deleted can also be predefined.
    OS X 10.10.1
    Any ideas?
    Thanks!

    Not exactly.  The form is located in a read only dedicated server accessible by local users from within the companie.  Althought we urge our user to use the form from our servers by creating a Shortcut on their local desktop pointing to the original file, some of them less familiar with computers have tendencies to use a COPY of the original file instead of a SHORTCUT.  The problem with this is they do not benefit from the latest version of the form as I modify it from time to time on the server.  So when they contact me with any problem or bug they encounter, the first thing I do is check the value of a hidden text field I placed in the bottom corner named "VERSION" that hold the version number I change every time I make a new release to see if they used an obsolete version.
    What I imagined is the following.  From now on, I would place a script at doc open that does the following:
    var myVersion = this.getField("VERSION").value;
    var latestVersion = Something to check the value of the field named "VERSION" in the form located on the server;
    if (myVersion != latestVersion){
         app.alert("obsolete..blah, blah, blah");
    Maybe there is a better approach to what is basically a version checker at doc open.  Users will be using Reader and I have access to users local machines and folders.

  • Baseline template - look for specific loopback interface when specifying "ip tftp source-interface"

    Hello all
    I'm new to regex and I'm trying to make a baseline template, that will check our network devices for our required basic configuration.
    What I'm trying to do is to make a template that will look for either a loopback0 or loopback1 interface.
    If eíther one is found (the loopback interfaces will not be there at the same time) it must apply the following command:
    ip tftp source-interface loopback0 (or loopback1)
    Is it even possible to make an if-then statement using regex?
    Thank you in advance.
    Best regards
    Jesper Ross Petersen
    Message was edited by: Jesper Ross Petersen

    Yes, this can be done
    #Go to the tcl shell of the device.
    C1811#tclsh
    C1811(tcl)#
    #copy and paste this at the tcl prompt.
    proc intf {} {
    set runningcfg [exec show run | inc ^interface Loopback]
    foreach line [split $runningcfg \n] {
    if {[regexp {interface (Loopback[0-1])} $line -> interface] } {
    ios_config "ip tftp source-interface $interface"
    return "ip tftp source-interface $interface"
    # now type the name of the proc (intf) at the tcl prompt.
    C1811(tcl)#intf
    # If loopback0 or 1 is present the tftp source interface is added to the running config.
    ip tftp source-interface Loopback0
    C1811(tcl)#

  • Looking for specific tutorials...

    Here's what I'm looking for:
    http://www.groceryshopping.net/brands/index.html
    Does that have a "trade name" so I can be more successful
    googling for tutorials? Play the branding tab... In particular I'm
    looking to do the left-nav thing which loads different stuff center
    court.
    Any suggestions outside of just start playing with it and try
    to become good?
    Thanks in advance!

    There's no 'trade name' there... it's just a menu playing
    some video clips.
    You'll want info on playing video in Flash and creating
    buttons. There are
    many tutorials on playing video, doing a couple of those
    should get you the
    grounding you need.
    Dave -
    www.offroadfire.com
    Head Developer
    http://www.blurredistinction.com
    Adobe Community Expert
    http://www.adobe.com/communities/experts/

  • Looking for Techno-functional freelancer in peoplesoft 9.2

    Hello Guys,
    My company is looking for a freelance who can help us to integrate Resume Parser with our existing PeopleSoft Insatallation with HCM/TAM 9.2.
    Please contact me asap.
    Thanks.

    Sounds like it could be a browser issue.  UPk 11.0.x is quite old and does not support the latest browsers for recording purposes.  What browser (and version of the browser) are you using with UPK 11.0 SP1?

  • Passport in Parallels will not look for my functioning wireless printer.

    I think Parallels has done something to the program so it will not even look for the printer. It is stuck on "Pictures." Is it a Nuance problem or Parallels?

    Let's make sure it can connect first.  Remove all security from the router so it has no password temporarily.  Now try to connect with no password.  If successful and verified, go back and add security on the router, WPA2-AES (Personal).   Now connect again with the printer with the new security and new password.
    Say thanks by clicking the Kudos Thumbs Up to the right in the post.
    If my post resolved your problem, please mark it as an Accepted Solution ...
    I worked for HP but now I'm retired!

  • Looking for a function that returns the currently opened document type

    Dear SAP gurus
    I have a user exit for transaction VA02. In VA02, when I click on button (Item details-configuration),
    it launches a URL in a browser. I am asked to add to the URL, values like Document Type, Document Number
    and Line Item Number.
    I can get Document Number and Line Item Number from the presently opened Sales Document by using the standard Function 'CUCB_GET_OWNER_OF_CFG'.
    However, I am not able get the value of Document Type. Is there any function that will give me
    the value of the Document type of the present document that is open.
    Any feedback/Suggestion will be highly appreciated.
    Thanks
    Ram

    If you're in a VA02 user exit, the document type should be in VBAK-AUART, if I remember the field name correctly.  I would think that ANYWHERE in VA02, that field will be available to you.
    If you want the text of the document type, forward navigate from vbak-auart data element to the domain and look at the values...there'll be a config (T) table (and you may need to add T to the end to get the associated text table) that describes the document type in your system's language,  like:
    E OR   Order
    or something like that...  Sorry, in my installation, we don't use the logistics modules, so I'm writing from memory.

  • Looking for a functional vcam for Flash Pro CC with HD proportions.

    Anybody got a functional V-Cam for adobe Flash CC? Ideally in 16:9 ratio? Can't seem to find one for the life of me online and don't know how to code for one. Would love to find one.

    It's been a while since I streamed games but I used XSplit (easy) and OpenBroadcaster (better, free) to create a stream. You can layer in anything you like as a cam stream. Your desktop, specific regions, other streams, etc. It shows up as a standard streaming source.

Maybe you are looking for