![]() |
|
|
|
| ||||||
|
Welcome to the The ProgrammersTalk Community forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
![]() |
![]() | | LinkBack | Thread Tools | Display Modes | ![]() |
| |||
| 1:JScrollPane scroll=new JScrollPane scroll.setPreferredSize(new Dimension(400,300)); Question:here does it means scrollbar(scroll) is at position according to dimension or something different... 2:For difference between DefaultListModel and LinkedList In DefaultListModel(DM) we dont have function to add element at first position like Linkedlist...but there is one function in DM called add(int index,Object element) is that mean we can add element at first position in DM List... If yes then it seems there is no difference between DM and LinkedList.. then what exactly is difference between linkedlist and defaultlistmodel...please explain clearly.... 3:what is \r and \n in Java.....can u give an example.. can u also give example to above all questions.... |
| ||||
| Quote:
#2 --> I think DefaultLinkedList is the Singly Linked List, while LinkedList is the Doubly Linked List. I'm not sure with this though, you probably want to double check on what method does DefaultLinkedList has compared to LinkedList. Can you add DefaultLinkedList from the front AND back? (I never personally used DefaultLinkedList lol.. but I know that you can do this with LinkedList) Doubly = can add from the front and back nodes Singly = only from the front #3 --> \n is newline not sure with \r try to print out something Test using this code: Code: System.out.println("TEST TEST TEST \r TEST TEST"); ![]() Last edited by HelloWorld : 08-20-2007 at 10:31 PM. |
![]() |
| Thread Tools | |
| Display Modes | |
| |