For each method you need to have code that writes some * on a line.
The method for the filled one writes the same number on each line.
The method for the outline only writes a full line of * for...
how to go about linking these two
Define some methods in the class that has the data that the GUI class can call to do what it needs to do. The GUI class would need a reference to the class with...
Have you read the API doc for the JComponent class to see what methods could be useful?
Are there any that deal with the layout manager or the location and size of the component?
But is that where the program is looking for it?
Create a File object for the file and print its absolutePath to see where the program is looking for the file.
If you don't want to use one of the layout managers, Remove the layout manager and use one or more of the JComponent methods to set the components position.
Some terminology. I think what you mean by a command is called a method call.
The expression: Keyboard.readInt()
is a call to the static readInt() method for the class Keyboard. I say static...
What do you mean by "open" for a file? Do you want the OS to select a program(or do it yourself), start that program executing and have that program read the file and display it?