Results 1 to 13 of 13
  1. #1
    Adithya is offline Member
    Join Date
    Jun 2014
    Posts
    24
    Rep Power
    0

    Default help ?

    now am doing dictionary app using files..

    Here i want to print the String from Starting character which is given by user..Here i given below the image like my concept..here we put .(dot and enter R)eclipse will print the method name which is starting from R..

    Now i want to bring in my program..i dont know what to do?
    Help me ?


    i just given a image only for understanding my conceptsuguestion list in java?-exam.png

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,899
    Rep Power
    25

    Default Re: help ?

    i want to print the String from Starting character
    Did you look at the String class's methods to see which of them will help you?

    It's better to post your code here, not an image which does not allow copy and pasting for responses.
    Be sure to wrap your code with code tags:
    [code]
    YOUR CODE GOES HERE
    [/code]
    to get highlighting and preserve formatting.
    If you don't understand my response, don't ignore it, ask a question.

  3. #3
    Adithya is offline Member
    Join Date
    Jun 2014
    Posts
    24
    Rep Power
    0

    Default Re: help ?

    i didn't started to code yet..if i understood the concept means i will code it..
    ok now i will the best example...in android phone contacts..there is search text box..if we enter the (A) means it will print the contact name which is starting from A

  4. #4
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,899
    Rep Power
    25

    Default Re: help ?

    name which is starting from A
    The String class has methods for checking what the first letter of a String is.
    If you don't understand my response, don't ignore it, ask a question.

  5. #5
    coolman50544 is offline Member
    Join Date
    Apr 2014
    Location
    Miami, FL
    Posts
    47
    Rep Power
    0

    Default Re: help ?

    I recommend that you change the title, so it can be a bit more relevant for anyone who finds this thread helpful.

  6. #6
    Adithya is offline Member
    Join Date
    Jun 2014
    Posts
    24
    Rep Power
    0

    Default Re: help ?

    can u tell the abt title for this ?
    i don't know to explain clearly ..can u give th gud title means i will put

  7. #7
    Adithya is offline Member
    Join Date
    Jun 2014
    Posts
    24
    Rep Power
    0

    Default Re: help ?

    Actually i bring this concept in jPanel...and i create search box ok..now user starts to enter the character means.it will print strings with small window like my above image

  8. #8
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,899
    Rep Power
    25

    Default Re: help ?

    Do you have any specific java programming questions?
    If you don't understand my response, don't ignore it, ask a question.

  9. #9
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,224
    Rep Power
    20

    Default Re: help ?

    Quote Originally Posted by Adithya View Post
    Actually i bring this concept in jPanel...and i create search box ok..now user starts to enter the character means.it will print strings with small window like my above image
    You would (unless you can find some code that someone else has produced) almost certainly have to write this yourself.
    There is no widget that's part of Swing that will do what you want.

    For those who need a translation, Adithya is looking to how to produce a JTextField that, when the user types in the field, will produce a "suggestion list" of possible things they're typing. In their case for a dictionary app.

    So, user types "A" and there will be some widget giving words beginning with 'a', and so on as they type.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  10. #10
    Adithya is offline Member
    Join Date
    Jun 2014
    Posts
    24
    Rep Power
    0

    Default suguestion list in java?

    i am l looking that how to produce a JTextField that, when the user types in the field, will produce a "suggestion list" of possible things they're typing. In their case for a dictionary app.

    So, user types "A" and there will be some widget giving words beginning with 'a', and so on as they type.

  11. #11
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    4,038
    Rep Power
    10

    Default Re: suguestion list in java?

    The term you're looking for is "autocomplete", and google is your friend here. There isn't a built-in Swing component that does that for you, but you can either roll your own or look for a library that handles it for you.
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  12. #12
    Adithya is offline Member
    Join Date
    Jun 2014
    Posts
    24
    Rep Power
    0

    Default Re: suguestion list in java?

    can i use the "autocomplete" in java using only files...

  13. #13
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,899
    Rep Power
    25

    Default Re: suguestion list in java?

    There isn't an autocomplete feature in java SE. If you write your own version, you can make it work any way you want.
    If you don't understand my response, don't ignore it, ask a question.

Similar Threads

  1. Replies: 4
    Last Post: 05-21-2013, 10:21 AM
  2. Replies: 1
    Last Post: 03-25-2012, 10:25 PM
  3. Linked List, Array List time complexity
    By Rick99771977 in forum New To Java
    Replies: 4
    Last Post: 08-18-2011, 06:37 AM
  4. Replies: 2
    Last Post: 11-22-2009, 06:24 PM
  5. how to create list of list in java ???
    By ilayaraja in forum Advanced Java
    Replies: 1
    Last Post: 10-26-2009, 05:30 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •