#I am Creating a to-do list and i am a begginer and wanted some help doing things.

45 messages Β· Page 1 of 1 (latest)

karmic emberBOT
#

βŒ› This post has been reserved for your question.

Hey @frigid orbit! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

gloomy jasper
#

Instrructions must not be between quotes " and "

#

That's for text, not things you want the ccomputer to run. Typically text you want displayed

#

You have no intention to have the computer display words that read input.next();

#

Rather you want to instruct the computer input.next(), that is, that it reads the next user input

#

So, no quotes around it

#

input.next();
you've put quotes around it

#

Ah yes, the nextLine() problem. I hadn't seen it

#

Well it's a bit embarrassing, but you really shouldn't use both nextLine() and other next()-like methods on the same Scanner. It will be hard to handle

#

It would be easier to choose: either you use nothing but nextLine(), or you never use nextLine() at all

#

Personally I think as user inputs only exists in the form of lines, it would be better to use nextLine() only

#

yeah, replace with like

int catChoice = Integer.parseInt(input.nextLine());
#

input.nextLine() reads the next full line of user input. Everything they typed from start to press of <enter>

#

Integer.parseInt() converts the text obtained into an int

karmic emberBOT
#

If you are finished with your post, please close it.
If you are not, please ignore this message.
Note that you will not be able to send further messages here after this post have been closed but you will be able to create new posts.

gloomy jasper
#

Yeah yeah, the bot reacts to words of gratitude. We get used to it

#

I imagine IntelliJ could be slow too, but it would run on your computer, so it would entirely depend on your computer's power

#

In theory if you need lightweight, you could use the actual JDK in command line, and some text editor

#

I use IntelliJ

#

yes, and it will need the JDK too but offer to dowload it for you

#

Java Development Kit, the big piece of software that allows to program in Java, minus the GUI part.

#

It's needed to make Java programs on your own computer

#

IntelliJ can download it for you

#

Only if you want the paid edition. You can take the free edition

#

no idea what to do about your code

karmic emberBOT
#

πŸ’€ Post marked as dormant

This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.

karmic emberBOT
#

πŸ’€ Post marked as dormant

This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.

frigid orbit
#

@frigid orbit let’s work together

karmic emberBOT
#

πŸ’€ Post marked as dormant

This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.

gloomy jasper
#

Making GUIs is too complicated for beginners. A week is not achieveable

#

There is not much question of "which compiler to use" as the compiler comes with the JDK. It would be standard to take openJDK 17 from Adoptium

#

But a better question would be which tool to use to program in Java, and for that an IDE like IntelliJ would work better

rough kernel
#

what makes you think you need a GUI from this prompt?

#

I mean, sounds like your taking an intro to java, which ive never seen anyone require anything except for console apps for an intro class.

karmic emberBOT
#

πŸ’€ Post marked as dormant

This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.

tranquil flower
#

Put it in src not out

karmic emberBOT
#

πŸ’€ Post marked as dormant

This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.

tame stumpBOT
#

import javax.swing.;
import java.awt.
;

class Samman {
   public static void main(String[] args) {
       SwingUtilities.invokeLater(new Runnable() {
           public void run() {
               JFrame frame = new JFrame("ToDo List");
               JPanel panel = new JPanel();
               JLabel label = new JLabel("Hello, Welcome to the To Do List");
               JLabel lbl = new JLabel("Do you want to Make a new Todo list, edit one, or delete one?");
               JTextField textField = new JTextField(25);

               panel.setLayout(new BorderLayout());

               panel.add(label, BorderLayout.NORTH);
               panel.add(lbl);
               panel.add(textField, BorderLayout.SOUTH);
               frame.add(panel);
               frame.setSize(800,600);
               frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
               frame.setVisible(true);
           }
       });
   }
} ```

This message has been formatted automatically. You can disable this using /preferences.

gloomy jasper
#

Same as with the other components, you need to tell where to put it on the layout

#

I don't know about layouts by heart. Learn about layouts and use what is needed to get what you want

#

Though it sounds to me like "in the middle" and "under label" are the exact same thing

raven jay
#

read the documentation for it

#

1 search away from many useful places