User Profile

Collapse

Profile Sidebar

Collapse
Salha
Salha
Last Activity: Apr 19 '07, 09:16 AM
Joined: Feb 28 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Salha
    started a topic Columns in JTable, Help!
    in Java

    Columns in JTable, Help!

    Hello There,

    I have two question about the JTable in Java:

    1. How can i fix the column width? I want to have one column widder than the other and not editable at runtime.

    2. How can i have multiple lines (block of data/small paragraph) in one cell? because whenver i write a 3 lines of data in a cell the JTable converts it cont. line.

    Please Help!!
    See more | Go to post

  • Inserting, selecting and displaying data from a JList!

    Hello there,

    Can you help me in following problem:

    Am working on a chemistry dictionary. I want to have all the chemistry terms in a JList and whenever i select a term from a JList, it displays the meaning in a text area (as any encyclopedia) and the term in a textfield. My questions:

    1. How can i load the chemistry terms in to the JList and meanings in the textarea and store them?
    2. How can i...
    See more | Go to post

  • Salha
    replied to How do i know the type of the input?
    in Java
    NO!! just words, it is a dictionary!!! please help :( my deadline is today!!!!!...
    See more | Go to post

    Leave a comment:


  • Salha
    replied to How do i know the type of the input?
    in Java
    I am using GUI and i get the iput from the text field. So if the user enters digits he gets an error msg. But how can i do it?...
    See more | Go to post

    Leave a comment:


  • Salha
    started a topic How do i know the type of the input?
    in Java

    How do i know the type of the input?

    how can i make the input only string? such as other types like int and double wont be allowed?
    what kind of exception shall i use?
    See more | Go to post

  • Salha
    replied to Buliding English Dictionary Using Hashmap!
    in Java
    Hi again,

    i used:

    Code:
     HashMap dictionary = new HashMap();
    		dictionary.put("word", "Value1");
    		dictionary.put("word", "Value2");
    		System.out.println(dictionary.toString());
    Print: {word=Value2} << but i want to store more than one value, i didnt know hot to declare that the value must me a linkedlist!

    please help me...
    See more | Go to post

    Leave a comment:


  • Salha
    replied to Buliding English Dictionary Using Hashmap!
    in Java
    Well, each word must be a key and the the data value have to be a linkedlist, how can i design the HashMap? i never used it and when i read some tutorials i didnt get the complete picture of it....
    See more | Go to post

    Leave a comment:


  • Salha
    started a topic Buliding English Dictionary Using Hashmap!
    in Java

    Buliding English Dictionary Using Hashmap!

    Hello,
    I need your direction in my lab assignment, i dont know how how to start. I am supposed to implement a dictionary that stores English words and their multiple synonyms. Am required to use hashmap to build the dictionary and the data column in the HashMap should be a linkedlist.

    please tell me how can i implement the hashmap with a linkedlist!!!
    See more | Go to post
No activity results to display
Show More
Working...