Is it possible to importing a java source code into Jlst? Please tell me how, and ll appreciate an example if possible. Thanks
Java – importing Source code into Jlist
javaswing
Related Topic
- Java – How to read / convert an InputStream into a String in Java
- Java – How to get an enum value from a string value in Java
- Java – How to declare and initialize an array in Java
- Java – How to avoid Java code in JSP files, using JSP 2
- Java – How to convert a String to an int in Java
- Java – How to create a memory leak in Java
- Java – Why is processing a sorted array faster than processing an unsorted array
- C# – Making a cross-thread call to a ListView
Best Answer
I'm not I understand what you're trying to do, but can't you load your source file into a collection line-by-line (using BufferedReader.readLine() around a FileReader), and then create the appropriate ListModel ?
I suspect a TextArea may be more appropriate for code, though.