#I need to make any project in netbeans for school for a project and i need help please

1 messages ยท Page 1 of 1 (latest)

slender pollen
#

We are currently using netbeans and we need to make GUIs in a JFrame. However I have all my relevant code for the project in a Java Class. I am absolutely clueless as how to use this code in JFrames as that is what we are meant to do.

The I chose to make is a food ordering service. The code runs however I just need to figure out how to put it in a GUI. Any tips would be appreciated.

north prismBOT
#

<@&987246399047479336> please have a look, thanks.

#

Here is an AI assisted attempt to answer your question ๐Ÿค–. Maybe it helps! In any case, a human is on the way ๐Ÿ‘. To continue talking to the AI, you can use </chatgpt:1108714622413963314>.

#
TJ-Bot
We are currently using netbeans and we need to make GUIs in a JFrame. However I have all my relevant code for the project in a Java Class. I am absolutely clueless as how to use this code in JFrames as that is what we are meant to do. The I chose to make

project ready, I just need help with creating a GUI for it. Can someone please guide me on how to create a JFrame in Netbeans and add components to it?

To create a new JFrame in Netbeans, you can follow these steps:

  1. Open Netbeans and create a new Java project.
  2. Right-click on the Source Packages folder and select New -> JFrame Form.
  3. Enter a name for your JFrame and click Finish.

Once you have created your JFrame, you can add components to it by dragging and dropping them from the Palette onto the design view of the JFrame. You can then customize the properties of each component by right-clicking on them and selecting Properties.

If you already have code that you would like to integrate into your GUI, you can simply copy and paste it into the appropriate event handlers (e.g. button click events) in the source code view of the JFrame.

If you encounter any specific issues or need further assistance with creating your GUI in Netbeans, please feel free to ask for help here!

lofty mirage
#

please ask a proper and concrete question

#

no one can help you like that

#

please share ur code and explain whats unclear to you specifically

#

if you know "nothing about GUIs", id suggest u first follow a quick tutorial about "java swing" or "javafx"

slow idol
#

You're going to have to make a GUI first. I'm not sure if Netbeans has a tool like IntelliJ, but you could at least layout and design the GUI using a .form file. If Netbeans doesn't have a tool available or there isn't a free and easy to use one out there, I'd suggest you look into using a GridPane and laying out your GUI components in there. GridPanes are very handy and fairly easy to use. Any questions you have about GridPanes or JFrames you should find the documentation for them on Google from Oracle directly quite helpful.

#

We can't design your UI for you. You know what's needed to make your program, we don't know all of the details; and we probably shouldn't. We can help if you run into issues, but we're not here to design your whole project for you; nor would that be doing you any favors.

#

I know reading/hearing this can hurt, I've heard it many times myself. But it is true. We can and will point you in the right direction, and help resolve some issues. We are here for you when such occasions arrise! ๐Ÿ™‚

white wigeon
#

or just do a select (multiple choice) JOptionPane

fierce juniper
#

If put a button and double click it will send you to event listener function where you put what the button does

#

you can also put labels and setText to change the text in your program

fierce juniper
#

That is the easiest way

#

it's just one line (and if you want, an infinite loop)

slow idol
#

Oh you're right, it does have an editor. I totally forgot about that. It's been a while since I've used NetBeans.

white wigeon
#

I saw a good javafx tutorial online...

#

will watch later