Opening Java file in a JTextAreaIs Java “pass-by-reference” or “pass-by-value”?How do I efficiently iterate over each entry in a Java Map?Does a finally block always get executed in Java?What is the difference between public, protected, package-private and private in Java?How do I read / convert an InputStream into a String in Java?When to use LinkedList over ArrayList in Java?How do I generate random integers within a specific range in Java?How to avoid Java code in JSP files?How do I convert a String to an int in Java?Creating a memory leak with Java

Why are electrically insulating heatsinks so rare? Is it just cost?

How is the claim "I am in New York only if I am in America" the same as "If I am in New York, then I am in America?

Do I have a twin with permutated remainders?

Paid for article while in US on F-1 visa?

Convert two switches to a dual stack, and add outlet - possible here?

RSA: Danger of using p to create q

Does an object always see its latest internal state irrespective of thread?

How do I deal with an unproductive colleague in a small company?

Approximately how much travel time was saved by the opening of the Suez Canal in 1869?

Is it possible to do 50 km distance without any previous training?

How can I prevent hyper evolved versions of regular creatures from wiping out their cousins?

Is it possible to run Internet Explorer on OS X El Capitan?

What defenses are there against being summoned by the Gate spell?

How much of data wrangling is a data scientist's job?

How much RAM could one put in a typical 80386 setup?

Perform and show arithmetic with LuaLaTeX

How to format long polynomial?

Why is Minecraft giving an OpenGL error?

Is it legal for company to use my work email to pretend I still work there?

What's that red-plus icon near a text?

How is it possible to have an ability score that is less than 3?

Why doesn't H₄O²⁺ exist?

High voltage LED indicator 40-1000 VDC without additional power supply

Was any UN Security Council vote triple-vetoed?



Opening Java file in a JTextArea


Is Java “pass-by-reference” or “pass-by-value”?How do I efficiently iterate over each entry in a Java Map?Does a finally block always get executed in Java?What is the difference between public, protected, package-private and private in Java?How do I read / convert an InputStream into a String in Java?When to use LinkedList over ArrayList in Java?How do I generate random integers within a specific range in Java?How to avoid Java code in JSP files?How do I convert a String to an int in Java?Creating a memory leak with Java






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















I'm fairly new to Java so I was wondering if someone could help me figure this out.



I've managed to create a program which allows the user to input a file name which then shows the contents of the file in the system output but I want to be able to show the output in a JTextArea instead of the current place of output. Can some help me figure out how this could be possible?



As one of the comments suggested that I should add a JFrame before doing anything else and I have managed to create a JFrame with a JTextArea within it but I am still unable to display the text file in the TextArea.



import java.awt.GraphicsConfiguration;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.nio.file.Path;
import java.nio.file.Paths;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
import javax.swing.JTextArea;


public class OpenFile

static GraphicsConfiguration gc;

public static void main(String[] args)



String selectModule = "";
selectModule = JOptionPane.showInputDialog("Module Input: ");

Path path = Paths.get(selectModule);

String fileOpener = selectModule;

if(selectModule.equalsIgnoreCase(fileOpener))
//Makes the user input case insensitive


BufferedReader br = null;
FileReader fr = null;

try

//br = new BufferedReader(new FileReader(FILENAME));
fr = new FileReader(fileOpener + ".txt");
br = new BufferedReader(fr);

String sCurrentLine;

while ((sCurrentLine = br.readLine()) != null)
System.out.println(sCurrentLine);


catch (IOException e)

e.printStackTrace();

finally

try

if (br != null)
br.close();

if (fr != null)
fr.close();

catch (IOException ex)

ex.printStackTrace();





JTextArea TextArea22 = new JTextArea(selectModule);

JFrame frame= new JFrame(gc);
frame.setTitle("Opening TextFile");
frame.setSize(600, 400);
frame.setLocation(200, 200);
frame.setVisible(true);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setResizable(false);
frame.add(TextArea22);












share|improve this question



















  • 4





    I recommend following a tutorial like this: docs.oracle.com/javase/tutorial/uiswing/components/frame.html to learn how to create windows in Java. Before you can use a JTextArea you have to have a JFrame to put it in.

    – Dylan
    Mar 21 at 16:22






  • 2





    You're printing the file contents to system out instead of setting the text area's content to the file content. I'm not sure if you're now seeing a frame with a text area on it when you run or not. I hate to be critical, but I agree with Dylan that you really should follow some tutorials on Java basics like creating a program with a UI.

    – Evan
    Mar 21 at 18:34












  • Okay thanks will do, any feedback is great I'm trying to learn how to code. <3

    – KSJaay_
    Mar 21 at 19:00











  • I suggest you work through Learning Java Basics and Creating a GUI With JFC/Swing. You should learn how to break your code into smaller pieces using classes and methods. Then learn about how to build a GUI with Swing.

    – Code-Apprentice
    Mar 21 at 22:54


















0















I'm fairly new to Java so I was wondering if someone could help me figure this out.



I've managed to create a program which allows the user to input a file name which then shows the contents of the file in the system output but I want to be able to show the output in a JTextArea instead of the current place of output. Can some help me figure out how this could be possible?



As one of the comments suggested that I should add a JFrame before doing anything else and I have managed to create a JFrame with a JTextArea within it but I am still unable to display the text file in the TextArea.



import java.awt.GraphicsConfiguration;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.nio.file.Path;
import java.nio.file.Paths;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
import javax.swing.JTextArea;


public class OpenFile

static GraphicsConfiguration gc;

public static void main(String[] args)



String selectModule = "";
selectModule = JOptionPane.showInputDialog("Module Input: ");

Path path = Paths.get(selectModule);

String fileOpener = selectModule;

if(selectModule.equalsIgnoreCase(fileOpener))
//Makes the user input case insensitive


BufferedReader br = null;
FileReader fr = null;

try

//br = new BufferedReader(new FileReader(FILENAME));
fr = new FileReader(fileOpener + ".txt");
br = new BufferedReader(fr);

String sCurrentLine;

while ((sCurrentLine = br.readLine()) != null)
System.out.println(sCurrentLine);


catch (IOException e)

e.printStackTrace();

finally

try

if (br != null)
br.close();

if (fr != null)
fr.close();

catch (IOException ex)

ex.printStackTrace();





JTextArea TextArea22 = new JTextArea(selectModule);

JFrame frame= new JFrame(gc);
frame.setTitle("Opening TextFile");
frame.setSize(600, 400);
frame.setLocation(200, 200);
frame.setVisible(true);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setResizable(false);
frame.add(TextArea22);












share|improve this question



















  • 4





    I recommend following a tutorial like this: docs.oracle.com/javase/tutorial/uiswing/components/frame.html to learn how to create windows in Java. Before you can use a JTextArea you have to have a JFrame to put it in.

    – Dylan
    Mar 21 at 16:22






  • 2





    You're printing the file contents to system out instead of setting the text area's content to the file content. I'm not sure if you're now seeing a frame with a text area on it when you run or not. I hate to be critical, but I agree with Dylan that you really should follow some tutorials on Java basics like creating a program with a UI.

    – Evan
    Mar 21 at 18:34












  • Okay thanks will do, any feedback is great I'm trying to learn how to code. <3

    – KSJaay_
    Mar 21 at 19:00











  • I suggest you work through Learning Java Basics and Creating a GUI With JFC/Swing. You should learn how to break your code into smaller pieces using classes and methods. Then learn about how to build a GUI with Swing.

    – Code-Apprentice
    Mar 21 at 22:54














0












0








0








I'm fairly new to Java so I was wondering if someone could help me figure this out.



I've managed to create a program which allows the user to input a file name which then shows the contents of the file in the system output but I want to be able to show the output in a JTextArea instead of the current place of output. Can some help me figure out how this could be possible?



As one of the comments suggested that I should add a JFrame before doing anything else and I have managed to create a JFrame with a JTextArea within it but I am still unable to display the text file in the TextArea.



import java.awt.GraphicsConfiguration;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.nio.file.Path;
import java.nio.file.Paths;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
import javax.swing.JTextArea;


public class OpenFile

static GraphicsConfiguration gc;

public static void main(String[] args)



String selectModule = "";
selectModule = JOptionPane.showInputDialog("Module Input: ");

Path path = Paths.get(selectModule);

String fileOpener = selectModule;

if(selectModule.equalsIgnoreCase(fileOpener))
//Makes the user input case insensitive


BufferedReader br = null;
FileReader fr = null;

try

//br = new BufferedReader(new FileReader(FILENAME));
fr = new FileReader(fileOpener + ".txt");
br = new BufferedReader(fr);

String sCurrentLine;

while ((sCurrentLine = br.readLine()) != null)
System.out.println(sCurrentLine);


catch (IOException e)

e.printStackTrace();

finally

try

if (br != null)
br.close();

if (fr != null)
fr.close();

catch (IOException ex)

ex.printStackTrace();





JTextArea TextArea22 = new JTextArea(selectModule);

JFrame frame= new JFrame(gc);
frame.setTitle("Opening TextFile");
frame.setSize(600, 400);
frame.setLocation(200, 200);
frame.setVisible(true);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setResizable(false);
frame.add(TextArea22);












share|improve this question
















I'm fairly new to Java so I was wondering if someone could help me figure this out.



I've managed to create a program which allows the user to input a file name which then shows the contents of the file in the system output but I want to be able to show the output in a JTextArea instead of the current place of output. Can some help me figure out how this could be possible?



As one of the comments suggested that I should add a JFrame before doing anything else and I have managed to create a JFrame with a JTextArea within it but I am still unable to display the text file in the TextArea.



import java.awt.GraphicsConfiguration;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.nio.file.Path;
import java.nio.file.Paths;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
import javax.swing.JTextArea;


public class OpenFile

static GraphicsConfiguration gc;

public static void main(String[] args)



String selectModule = "";
selectModule = JOptionPane.showInputDialog("Module Input: ");

Path path = Paths.get(selectModule);

String fileOpener = selectModule;

if(selectModule.equalsIgnoreCase(fileOpener))
//Makes the user input case insensitive


BufferedReader br = null;
FileReader fr = null;

try

//br = new BufferedReader(new FileReader(FILENAME));
fr = new FileReader(fileOpener + ".txt");
br = new BufferedReader(fr);

String sCurrentLine;

while ((sCurrentLine = br.readLine()) != null)
System.out.println(sCurrentLine);


catch (IOException e)

e.printStackTrace();

finally

try

if (br != null)
br.close();

if (fr != null)
fr.close();

catch (IOException ex)

ex.printStackTrace();





JTextArea TextArea22 = new JTextArea(selectModule);

JFrame frame= new JFrame(gc);
frame.setTitle("Opening TextFile");
frame.setSize(600, 400);
frame.setLocation(200, 200);
frame.setVisible(true);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setResizable(false);
frame.add(TextArea22);









java swing input jtextarea






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 22 at 3:08









George Z.

1,124514




1,124514










asked Mar 21 at 16:19









KSJaay_KSJaay_

102




102







  • 4





    I recommend following a tutorial like this: docs.oracle.com/javase/tutorial/uiswing/components/frame.html to learn how to create windows in Java. Before you can use a JTextArea you have to have a JFrame to put it in.

    – Dylan
    Mar 21 at 16:22






  • 2





    You're printing the file contents to system out instead of setting the text area's content to the file content. I'm not sure if you're now seeing a frame with a text area on it when you run or not. I hate to be critical, but I agree with Dylan that you really should follow some tutorials on Java basics like creating a program with a UI.

    – Evan
    Mar 21 at 18:34












  • Okay thanks will do, any feedback is great I'm trying to learn how to code. <3

    – KSJaay_
    Mar 21 at 19:00











  • I suggest you work through Learning Java Basics and Creating a GUI With JFC/Swing. You should learn how to break your code into smaller pieces using classes and methods. Then learn about how to build a GUI with Swing.

    – Code-Apprentice
    Mar 21 at 22:54













  • 4





    I recommend following a tutorial like this: docs.oracle.com/javase/tutorial/uiswing/components/frame.html to learn how to create windows in Java. Before you can use a JTextArea you have to have a JFrame to put it in.

    – Dylan
    Mar 21 at 16:22






  • 2





    You're printing the file contents to system out instead of setting the text area's content to the file content. I'm not sure if you're now seeing a frame with a text area on it when you run or not. I hate to be critical, but I agree with Dylan that you really should follow some tutorials on Java basics like creating a program with a UI.

    – Evan
    Mar 21 at 18:34












  • Okay thanks will do, any feedback is great I'm trying to learn how to code. <3

    – KSJaay_
    Mar 21 at 19:00











  • I suggest you work through Learning Java Basics and Creating a GUI With JFC/Swing. You should learn how to break your code into smaller pieces using classes and methods. Then learn about how to build a GUI with Swing.

    – Code-Apprentice
    Mar 21 at 22:54








4




4





I recommend following a tutorial like this: docs.oracle.com/javase/tutorial/uiswing/components/frame.html to learn how to create windows in Java. Before you can use a JTextArea you have to have a JFrame to put it in.

– Dylan
Mar 21 at 16:22





I recommend following a tutorial like this: docs.oracle.com/javase/tutorial/uiswing/components/frame.html to learn how to create windows in Java. Before you can use a JTextArea you have to have a JFrame to put it in.

– Dylan
Mar 21 at 16:22




2




2





You're printing the file contents to system out instead of setting the text area's content to the file content. I'm not sure if you're now seeing a frame with a text area on it when you run or not. I hate to be critical, but I agree with Dylan that you really should follow some tutorials on Java basics like creating a program with a UI.

– Evan
Mar 21 at 18:34






You're printing the file contents to system out instead of setting the text area's content to the file content. I'm not sure if you're now seeing a frame with a text area on it when you run or not. I hate to be critical, but I agree with Dylan that you really should follow some tutorials on Java basics like creating a program with a UI.

– Evan
Mar 21 at 18:34














Okay thanks will do, any feedback is great I'm trying to learn how to code. <3

– KSJaay_
Mar 21 at 19:00





Okay thanks will do, any feedback is great I'm trying to learn how to code. <3

– KSJaay_
Mar 21 at 19:00













I suggest you work through Learning Java Basics and Creating a GUI With JFC/Swing. You should learn how to break your code into smaller pieces using classes and methods. Then learn about how to build a GUI with Swing.

– Code-Apprentice
Mar 21 at 22:54






I suggest you work through Learning Java Basics and Creating a GUI With JFC/Swing. You should learn how to break your code into smaller pieces using classes and methods. Then learn about how to build a GUI with Swing.

– Code-Apprentice
Mar 21 at 22:54













1 Answer
1






active

oldest

votes


















0














The code to read in the entire contents of a file can be simplified using Files.readAllBytes.



Once that is done, set the JTextArea's text to the captured file content. If an exception occurs while trying to read the file, we can output that as a helpful message to the JTextArea instead.



Last, remember that any code that manipulates a Swing component must be executed on the event dispatch thread. So, put that code in a Runnable and pass it to SwingUtilities.invokeLater.



Give this a try:



import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;

import javax.swing.JFrame;
import javax.swing.JOptionPane;
import javax.swing.JTextArea;
import javax.swing.SwingUtilities;

public class OpenFile
public static void main(String[] args)
String selectModule = JOptionPane.showInputDialog("Module Input: ");
String content = "";

try
content = new String(Files.readAllBytes(Paths.get(selectModule)));
catch (IOException e)
content = e.toString();


final String fileContent = content;

Runnable r = new Runnable()
public void run()
JTextArea textArea22 = new JTextArea(fileContent);
JFrame frame= new JFrame();
frame.setTitle("Opening TextFile");
frame.setSize(600, 400);
frame.setLocation(200, 200);
frame.setVisible(true);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setResizable(false);
frame.add(textArea22);

;

SwingUtilities.invokeLater(r);







share|improve this answer























    Your Answer






    StackExchange.ifUsing("editor", function ()
    StackExchange.using("externalEditor", function ()
    StackExchange.using("snippets", function ()
    StackExchange.snippets.init();
    );
    );
    , "code-snippets");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "1"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55284935%2fopening-java-file-in-a-jtextarea%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    The code to read in the entire contents of a file can be simplified using Files.readAllBytes.



    Once that is done, set the JTextArea's text to the captured file content. If an exception occurs while trying to read the file, we can output that as a helpful message to the JTextArea instead.



    Last, remember that any code that manipulates a Swing component must be executed on the event dispatch thread. So, put that code in a Runnable and pass it to SwingUtilities.invokeLater.



    Give this a try:



    import java.io.IOException;
    import java.nio.file.Files;
    import java.nio.file.Paths;

    import javax.swing.JFrame;
    import javax.swing.JOptionPane;
    import javax.swing.JTextArea;
    import javax.swing.SwingUtilities;

    public class OpenFile
    public static void main(String[] args)
    String selectModule = JOptionPane.showInputDialog("Module Input: ");
    String content = "";

    try
    content = new String(Files.readAllBytes(Paths.get(selectModule)));
    catch (IOException e)
    content = e.toString();


    final String fileContent = content;

    Runnable r = new Runnable()
    public void run()
    JTextArea textArea22 = new JTextArea(fileContent);
    JFrame frame= new JFrame();
    frame.setTitle("Opening TextFile");
    frame.setSize(600, 400);
    frame.setLocation(200, 200);
    frame.setVisible(true);
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.setResizable(false);
    frame.add(textArea22);

    ;

    SwingUtilities.invokeLater(r);







    share|improve this answer



























      0














      The code to read in the entire contents of a file can be simplified using Files.readAllBytes.



      Once that is done, set the JTextArea's text to the captured file content. If an exception occurs while trying to read the file, we can output that as a helpful message to the JTextArea instead.



      Last, remember that any code that manipulates a Swing component must be executed on the event dispatch thread. So, put that code in a Runnable and pass it to SwingUtilities.invokeLater.



      Give this a try:



      import java.io.IOException;
      import java.nio.file.Files;
      import java.nio.file.Paths;

      import javax.swing.JFrame;
      import javax.swing.JOptionPane;
      import javax.swing.JTextArea;
      import javax.swing.SwingUtilities;

      public class OpenFile
      public static void main(String[] args)
      String selectModule = JOptionPane.showInputDialog("Module Input: ");
      String content = "";

      try
      content = new String(Files.readAllBytes(Paths.get(selectModule)));
      catch (IOException e)
      content = e.toString();


      final String fileContent = content;

      Runnable r = new Runnable()
      public void run()
      JTextArea textArea22 = new JTextArea(fileContent);
      JFrame frame= new JFrame();
      frame.setTitle("Opening TextFile");
      frame.setSize(600, 400);
      frame.setLocation(200, 200);
      frame.setVisible(true);
      frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
      frame.setResizable(false);
      frame.add(textArea22);

      ;

      SwingUtilities.invokeLater(r);







      share|improve this answer

























        0












        0








        0







        The code to read in the entire contents of a file can be simplified using Files.readAllBytes.



        Once that is done, set the JTextArea's text to the captured file content. If an exception occurs while trying to read the file, we can output that as a helpful message to the JTextArea instead.



        Last, remember that any code that manipulates a Swing component must be executed on the event dispatch thread. So, put that code in a Runnable and pass it to SwingUtilities.invokeLater.



        Give this a try:



        import java.io.IOException;
        import java.nio.file.Files;
        import java.nio.file.Paths;

        import javax.swing.JFrame;
        import javax.swing.JOptionPane;
        import javax.swing.JTextArea;
        import javax.swing.SwingUtilities;

        public class OpenFile
        public static void main(String[] args)
        String selectModule = JOptionPane.showInputDialog("Module Input: ");
        String content = "";

        try
        content = new String(Files.readAllBytes(Paths.get(selectModule)));
        catch (IOException e)
        content = e.toString();


        final String fileContent = content;

        Runnable r = new Runnable()
        public void run()
        JTextArea textArea22 = new JTextArea(fileContent);
        JFrame frame= new JFrame();
        frame.setTitle("Opening TextFile");
        frame.setSize(600, 400);
        frame.setLocation(200, 200);
        frame.setVisible(true);
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setResizable(false);
        frame.add(textArea22);

        ;

        SwingUtilities.invokeLater(r);







        share|improve this answer













        The code to read in the entire contents of a file can be simplified using Files.readAllBytes.



        Once that is done, set the JTextArea's text to the captured file content. If an exception occurs while trying to read the file, we can output that as a helpful message to the JTextArea instead.



        Last, remember that any code that manipulates a Swing component must be executed on the event dispatch thread. So, put that code in a Runnable and pass it to SwingUtilities.invokeLater.



        Give this a try:



        import java.io.IOException;
        import java.nio.file.Files;
        import java.nio.file.Paths;

        import javax.swing.JFrame;
        import javax.swing.JOptionPane;
        import javax.swing.JTextArea;
        import javax.swing.SwingUtilities;

        public class OpenFile
        public static void main(String[] args)
        String selectModule = JOptionPane.showInputDialog("Module Input: ");
        String content = "";

        try
        content = new String(Files.readAllBytes(Paths.get(selectModule)));
        catch (IOException e)
        content = e.toString();


        final String fileContent = content;

        Runnable r = new Runnable()
        public void run()
        JTextArea textArea22 = new JTextArea(fileContent);
        JFrame frame= new JFrame();
        frame.setTitle("Opening TextFile");
        frame.setSize(600, 400);
        frame.setLocation(200, 200);
        frame.setVisible(true);
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setResizable(false);
        frame.add(textArea22);

        ;

        SwingUtilities.invokeLater(r);








        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Mar 22 at 3:52









        Michael KrauseMichael Krause

        3,48111420




        3,48111420





























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55284935%2fopening-java-file-in-a-jtextarea%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

            Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

            Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript