UPDATE: If you are running into issues with the returned JSON data from the API call, try using "weather_code" instead of "weathercode" Github: github.com/curadProgrammer/WeatherAppGUI-Java 🔗Links I used on this video: 1. Simple JSON JAR: code.google.com/archive/p/json-simple/downloads 2. Images used in the project: drive.google.com/drive/folders/1d8-daIYSFlVToJRUG2nGFTGsMccwxGym?usp=sharing 3. Weather Forecast API :open-meteo.com/en/docs#latitude=33.767&longitude=-118.1892 4. Geolocation API: open-meteo.com/en/docs/geocoding-api Learn Programming as you Build Projects with CodeCrafters! (Get 40% Off) 👉 app.codecrafters.io/join?via=taptap
hey I followed your tutorial exactly the same and double checked everything was right. I am getting two run time error when I enter a city in the search. Its showing cannot invoke the api pull because "weathercode" is null and "weatherData" also results to null. Can I show you my code somehow?
@@faaizabdullah1445 Hello, so to fix that error instead of using "weathercode", use "weather_code" with the underscore in between. If that still doesn't work, you can use this to post your code snippet and then send me the link: smalldev.tools/share-bin
Guys if anyone is struggling, beware: for me the keys in the json fetched from the weather API were a bit different "weathercode" was suddenly "weather_code" and same subtle difference in the other keys like windspeed, relative humidity as well :)
Great Video! what are you planning on building next?? webscraper? email client? bittorrent client? IRC client? Web Server? Spotify Client? Real time chat client and server? regardless thank you so much for such a comprehensive and fun tutorial XD
Thanks! and those sound like great ideas. The next video I'm working on at the moment is creating a tutorial on how to do API calls in Java then after that I'll be working on a quiz GUI with database. Also glad you find my content helpful 😀
Very good tutorial, especially your keyboard sounds very nice. It’s not like other videos that have unnecessary nonsense. Your videos are great. I hope you can make more videos about implementing e-malls in Java. Come on.
Hello! I really enjoyed your video process! I have a question, what do you think is better to learn and where there are more opportunities, Java or C Sharp?
Hi! and thanks 🙏. Hmm...I haven't used C# as much other than for learning Unity, so my advice might be a bit biased. Of those two, I'd choose Java just because I've heard that Springboot (Java Backend Framework) is used a lot in the industry Hopefully this helps
Glad you enjoyed 😀, and I'll paste below my keyboard specs: ---------------------------Keyboard Specs--------------------------- RK84 PCB and Casing Feker Holy Panda Switches with 2050G Lube Stabilzers with 2050G Lube Foam Mod PBT DYE-SUB Keycaps
Hi,I am very new to Java.Could you tell me how to set up the initial project from scratch, as in file structure from a blank/new project??What editor are you using??
Hello, I am using IntelliJ Community Edition which you can download the setup here: www.jetbrains.com/idea/download/?section=windows The community edition will be below the ultimate edition. After that, I do show you in the video how to setup the project in the beginning around @0:31 I might make a future video on how to install IntelliJ, but hopefully this helps
Bro in which domain you are working and on which lang..your videos are really helpful,can you share your working journey till now with us do a vedio on that it's a request it will be really helpful to younger aspirants..
I am using IntelliJ Community Edition and using Java as the programming language. Thanks! I'm glad they are helpful 😀 Oh do you mean like my background on how I got started on coding? That does sound interesting, I'll see if I have time for it. Thanks for the idea!
I just spent 2 hours trying to figure out what i did wrong, only to find out that my api did weather_code instead of weathercode in the mapping, hahahahaha
Yeah other people were having that same issue, I'm going to add that to the pinned comment just in case someone else has it 😅. But glad you were able to figure it out 😀
@@TapTap_196 bro, I mean which technology you should already know before making this project like prerequisite are Java, Swing, API, DSA, OOPs concept, etc.. viewer should have idea about how this thing are working. Bro, one more thing if you like it 😁 if you can't speak in video then why don't you use AI to give sound what you had captioned. Thanks for replying ☺️😍
@@SudhirSharma-jg8cl Ah gotcha, knowing the basics of Java should be good enough for this project. For swing concepts, I try my best in the video to detail what is happening during the swing section. It does help to know things like Inheritance, JSON, and APIs, but overall I try to explain what each code does to help understand what is happening. If you do have questions about parts in the video, please let me know and I'll do my best to clarify. I'll try speaking in a future video that contains a short and simple project just to test the waters 😅. Thanks for the idea though 😀
Hey thanks so much for the video! I was wondering why all the GUI components (the temperature text, pictures, and search button, etc) in the private addGUIComponents() function I typed out like you did in the video don't show up on my GUI when I ran it?
No problem! and are you calling on the setVisible() before or after the addGUIComponents()? If you are calling it before the addGUIComponents() then the components won't show so you have to place it after the addGUIComponents(). Also, could you let me know the timestamp on where you are so that I can get a better understanding of the problem?
@@TapTap_196 I was at around 10:30 when I ran the app it only shows my JFrame window but not the GUI components in it. And I just fixed it now nevermind lmao, I tried to set up a JFrame for the window in the main AppLauncher function and then added the GUI components to the main function instead of the JFrame I created, that's why it wasn't showing up. But thank you for the video haha, really helpful
Hey man could you please show how you set up the project structure to begin with? This is my first app and I got a bit confused seeing you already had the WeatherAppGUI folder set up already before you added the JSON file
Hello, and yeah apologies for not including that I'll consider doing that in my future project related videos. How to set it up: 1. Create a new project on IntelliJ 2. Select Java on the left side 3. For the location -> click on the folder icon on the right side-> select the directory where you want the project folder to be -> click "OK" 4. Then in the name part at the top, type in "WeatherAppGUI" 5. Then hit create That should do it, but if it doesn't let me know
@@preciousadigwe7141 Hello, yes it should work with VSCode too. The one thing that will be different is adding the JAR to the project path, but you can find tutorials for that on youtube. Like this one: ua-cam.com/video/3Qm54znQX2E/v-deo.html Hopefully this helps
Thanks! and at the moment I am not offering any courses, but I still plan on making these types of tutorials in the future. Right now I am currently working on a new video where I am making a Bank App with MySQL. Programming can be quite difficult especially in the beginning, but if you truly want to be good at it I recommend to pace yourself and try to create some fun projects that interest you. Good luck on your coding journey 😃
The project is great but in starting it shows me correct weather information but now it is showing wrong weather information please correct me what i can do for this..✨
Unfortunately, the API can get the weather wrong at times and I don't get it myself. The main reason why I used this API is because it was free and didn't require making an account to use the API. If you do want more accurate weather data, possibly look into other weather apis. Hopefully this helps
Hello, you can do this project in VSCode. Though you would need to figure out how to add the JSON JAR file into your project structure which you can follow in this video: ua-cam.com/video/3Qm54znQX2E/v-deo.html
Hi. I like your Weather App Code and even I tried to make it. Problem: Cannot invoke "org.json.simple.JSONArray.get(int)" because "weathercode" is null. Is there a solution for it?
do i need to add the json files into the structure because everytime i download it from the link my mac says it is from an unidentified devleoper and cannot do anyhting with it. If i do any, other spots i can get it from ?
Hello, unfortunately I don't have much experience using Mac but if you are having issues because you are trying to open the JAR file then don't worry you don't need to open the file. You just need to add it to the Project Structure. If the above doesn't help, check this article out iboysoft.com/howto/cannot-be-opened-because-it-is-from-an-unidentified-developer.html Hopefully this helps.
Hello, the basics of Java should suffice. You might need to know how API works, but the way I did it is simple enough that you probably don't need to, but it does thelp to know. You don't have to know too much about swing as I tell you what is happening when I am creating the GUI. Feel free to ask me questions, and I'll respond asap
Hmm...I'm not too familiar with the game dev space. I actually just started learning myself and I use the libGDX framework, but I mainly focus on 2D games. libGDX does support 3D but not really sure how to do it. There is also jMonkeyEngine or you can make your game engine using the LWJGL framework which uses OpenGL. I'd say try libGDX as I believe their is more resource out there compared to jMonkeyEngine. Check this link out if you want to use libGDX xoppa.github.io/
I've been thinking of making a video around firebase, I'll add that to the next poll after the next project is finished. What library did you use if you don't mind me asking?
Hello, I think starting that early is great. I'd say find something that interests you about programming whether its making games, websites, etc... and start from there.
Hello, try doing it this way: "had to change the API gets from "weathercode" to "weather_code", "relativehumidity_2m" to "relative_humidity_2m" and "windspeed_10m" to "wind_speed_10m"." @pelvaka1755 Let me know if this helps or not
That sounds interesting 🤔. What type of features would you imagine to be in this app? Is it just doing an API call and showing recent news onto the GUI? I'll consider adding it to the next poll
Hello, I used swing because it was easier to setup than JavaFX but I will be making a JavaFX version of this in the future. In my opinion I believe that JavaFX is better, but swing is simpler and easier to get into.
Hello, yes this should work on netbeans. The only difference might be how you insert the JSON JAR file into your project structure. You'll have to look up on a tutorial for that.
@@TapTap_196 Not a find my device app. But a A web base platform where people can register if they lost Something & The One who found will also register there. ( this website will act as a bridge between founder & a person who lost his things, It's a small scale system for a College or a Campus or a Society. Or even for marriage hall s or Parks.
Hello, unfortunately I don't have plans to learn it right now as I want to focus more on Angular and eventually Springboot to do more full stack development. Hope you understand
Hello this keyboard is custom built. Here are the specs: RK84 PCB and Casing Feker Holy Panda Switches with 2050G Lube Stabilzers with 2050G Lube Foam Mod PBT DYE-SUB Keycaps
Hy guy's can anyone help me becozz iam stuck almost 3 hrs to this error "Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException: Cannot invoke "String.hashCode()" because "weatherConditionn" is null" can anyone help out guys and sir iam changing the weathercode into weather_code but still makes error.
Hello, you'll need to add in the JAR file that you downloaded in the beginning of the video to your project structure which I also show in the beginning of the video.
Hello, try doing it this way: "had to change the API gets from "weathercode" to "weather_code", "relativehumidity_2m" to "relative_humidity_2m" and "windspeed_10m" to "wind_speed_10m"." @pelvaka1755 Let me know if this helps or not
As of right now the next video will be a Chat Application. Making a 3D game in Java might be a bit difficult for now, so I might make something where a 3D object appears on a GUI
Bro i have a doubut on what to study next i have completed learning core java i don't know what to study next ?? So please guide me to what to do next in java side
@@sriramprasathp2285 I haven't been practicing Spring Boot in awhile, but I heard this play list is pretty good: ua-cam.com/play/PLu_a4hjJo1mTwF1DXUxo-TsOQLhWkpI2K.html and also check out AmigosCode the youtube channel
.\WeatherAppGUI.java:19: error: package org.json.simple does not exist import org.json.simple.JSONObject; i want the app to be an executable jar. helpppp
even when i run my java applauncher file through javac & java, it says that org.json.simple does not exist. i tried everything referenced libraries and all
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException: Cannot invoke "String.hashCode()" because "" is null at WeatherAppGUI$1.actionPerformed(WeatherAppGUI.java:120) line 120 is : String weatherCondition=(String) weatherData.get("weather_condition");
Hello, I believe you are getting that error because "weather_condition" isn't part of the returned data. I'm not sure which part of the video you are at, but for that part your code should've looked something like this: String weatherCondition = convertWeatherCode((long) weathercode.get(index));
Hello, did you add the JSON JAR file to the project structure? I'm thinking that could be the reason why. I do that part @ 00:30 Let me know if this helps
hi, for // //build the weather json data object that we are going to access on the front end Am getting this error: "message": "Type safety: The method put(Object, Object) belongs to the raw type HashMap. References to generic type HashMap should be parameterized", }] for all the four objects, i would really appreciate your guidance
UPDATE: If you are running into issues with the returned JSON data from the API call, try using "weather_code" instead of "weathercode"
Github:
github.com/curadProgrammer/WeatherAppGUI-Java
🔗Links I used on this video:
1. Simple JSON JAR: code.google.com/archive/p/json-simple/downloads
2. Images used in the project: drive.google.com/drive/folders/1d8-daIYSFlVToJRUG2nGFTGsMccwxGym?usp=sharing
3. Weather Forecast API :open-meteo.com/en/docs#latitude=33.767&longitude=-118.1892
4. Geolocation API: open-meteo.com/en/docs/geocoding-api
Learn Programming as you Build Projects with CodeCrafters! (Get 40% Off) 👉 app.codecrafters.io/join?via=taptap
hey I followed your tutorial exactly the same and double checked everything was right. I am getting two run time error when I enter a city in the search. Its showing cannot invoke the api pull because "weathercode" is null and "weatherData" also results to null. Can I show you my code somehow?
@@faaizabdullah1445 Hello, so to fix that error instead of using "weathercode", use "weather_code" with the underscore in between.
If that still doesn't work, you can use this to post your code snippet and then send me the link: smalldev.tools/share-bin
@@faaizabdullah1445 change "windSpeed_2m" to "wind_speed_2m". That's what I did!
Why didnt you use Scenebuilder?
@@Wzone13 I like typing better 😅
My friend what you did, was a miracle, you unlocked the doubt I had in java.
your code is so clean and easy to read, u really inspired the heck out of me
Relaxing and learning at the same time, thank you!
Thanks! I'm glad you enjoyed it 😃
Guys if anyone is struggling, beware: for me the keys in the json fetched from the weather API were a bit different "weathercode" was suddenly "weather_code" and same subtle difference in the other keys like windspeed, relative humidity as well :)
Thanks for the help 😀
Yeah, I spent like 40 mins finding this out as well. I just finished it.
Just the thing I was looking for. Thank you so much!
No problem, and I'm glad it helped 😀
Thanks a lot, I really enjoy the flow of your programming process.
No problem, glad you enjoyed 😀
Thanks, lad. My first API lesson. Appreciate your hard work.
No problem, glad it helped 😁
Great Video! what are you planning on building next?? webscraper? email client? bittorrent client? IRC client? Web Server? Spotify Client? Real time chat client and server? regardless thank you so much for such a comprehensive and fun tutorial XD
Thanks! and those sound like great ideas. The next video I'm working on at the moment is creating a tutorial on how to do API calls in Java then after that I'll be working on a quiz GUI with database. Also glad you find my content helpful 😀
Perfeito! Meus parabéns! Aprendi mais sobre estilo de programação em Java com esta obra prima ❤
Thanks 😃, glad it helps.
How do you type so quickly without errors and its a fun to watch you code..... I am an ultra beginner at java. Your videos are inspirational
Hello, I already have the project done it's just a matter of retyping it 😅.
and thanks! Good luck on your programming journey 😀
Very good tutorial, especially your keyboard sounds very nice. It’s not like other videos that have unnecessary nonsense. Your videos are great. I hope you can make more videos about implementing e-malls in Java. Come on.
Thanks! Hmm...that sounds pretty interesting. Is it basically a way to email people from a gui or to create a gui that shows you all of your emails?
E-mall platforms like Amazon, not email🤣@@TapTap_196
bro your channel is amazing but a small suggestion if have a voice over then video
will be better
Oh yeah I'm planning on making more videos using my voice in the future 😀
Hello! I really enjoyed your video process! I have a question, what do you think is better to learn and where there are more opportunities, Java or C Sharp?
Hi! and thanks 🙏. Hmm...I haven't used C# as much other than for learning Unity, so my advice might be a bit biased. Of those two, I'd choose Java just because I've heard that Springboot (Java Backend Framework) is used a lot in the industry
Hopefully this helps
What plugin are you using? for live view?
Thanks. I just started learning swing
No problem, and nice 😎
Thank you soo much for this❤. God bless you for the work you are doing.
No problem and glad you found the video helpful 😃
Thanks for good lecture. Could you tell me where did you get your keyboard?
Glad you enjoyed 😀, and I'll paste below my keyboard specs:
---------------------------Keyboard Specs---------------------------
RK84 PCB and Casing
Feker Holy Panda Switches with 2050G Lube
Stabilzers with 2050G Lube
Foam Mod
PBT DYE-SUB Keycaps
Hi,I am very new to Java.Could you tell me how to set up the initial project from scratch, as in file structure from a blank/new project??What editor are you using??
Hello, I am using IntelliJ Community Edition which you can download the setup here:
www.jetbrains.com/idea/download/?section=windows
The community edition will be below the ultimate edition.
After that, I do show you in the video how to setup the project in the beginning around @0:31
I might make a future video on how to install IntelliJ, but hopefully this helps
Bro in which domain you are working and on which lang..your videos are really helpful,can you share your working journey till now with us do a vedio on that it's a request it will be really helpful to younger aspirants..
I am using IntelliJ Community Edition and using Java as the programming language.
Thanks! I'm glad they are helpful 😀
Oh do you mean like my background on how I got started on coding? That does sound interesting, I'll see if I have time for it. Thanks for the idea!
@@TapTap_196 yeah thank you.
woww, i discover this canal and I´m loving it, Thanks for the videos.
I'm glad you are enjoying my content 😀
I just spent 2 hours trying to figure out what i did wrong, only to find out that my api did weather_code instead of weathercode in the mapping, hahahahaha
Yeah other people were having that same issue, I'm going to add that to the pinned comment just in case someone else has it 😅. But glad you were able to figure it out 😀
Bro, please tell what are prerequisite for project in starting it will really helps 🙏, love your Videos❤❤
Hello, I did the prequisites would be from 00:31 - 03:09 where I download the necessary JAR files and images used in the project, and thanks! 😀
@@TapTap_196 bro, I mean which technology you should already know before making this project like prerequisite are Java, Swing, API, DSA, OOPs concept, etc.. viewer should have idea about how this thing are working.
Bro, one more thing if you like it 😁 if you can't speak in video then why don't you use AI to give sound what you had captioned. Thanks for replying ☺️😍
@@SudhirSharma-jg8cl Ah gotcha, knowing the basics of Java should be good enough for this project. For swing concepts, I try my best in the video to detail what is happening during the swing section.
It does help to know things like Inheritance, JSON, and APIs, but overall I try to explain what each code does to help understand what is happening.
If you do have questions about parts in the video, please let me know and I'll do my best to clarify.
I'll try speaking in a future video that contains a short and simple project just to test the waters 😅. Thanks for the idea though 😀
Hey thanks so much for the video! I was wondering why all the GUI components (the temperature text, pictures, and search button, etc) in the private addGUIComponents() function I typed out like you did in the video don't show up on my GUI when I ran it?
No problem! and are you calling on the setVisible() before or after the addGUIComponents()? If you are calling it before the addGUIComponents() then the components won't show so you have to place it after the addGUIComponents().
Also, could you let me know the timestamp on where you are so that I can get a better understanding of the problem?
@@TapTap_196 I was at around 10:30 when I ran the app it only shows my JFrame window but not the GUI components in it. And I just fixed it now nevermind lmao, I tried to set up a JFrame for the window in the main AppLauncher function and then added the GUI components to the main function instead of the JFrame I created, that's why it wasn't showing up. But thank you for the video haha, really helpful
@@vincenguyen7 Ah gotcha, it happens to the best of us 😆 and no problem glad to help 😀
Hey man could you please show how you set up the project structure to begin with? This is my first app and I got a bit confused seeing you already had the WeatherAppGUI folder set up already before you added the JSON file
Hello, and yeah apologies for not including that I'll consider doing that in my future project related videos.
How to set it up:
1. Create a new project on IntelliJ
2. Select Java on the left side
3. For the location -> click on the folder icon on the right side-> select the directory where you want the project folder to be -> click "OK"
4. Then in the name part at the top, type in "WeatherAppGUI"
5. Then hit create
That should do it, but if it doesn't let me know
@@TapTap_196 Will this still work if I make the project on Visual Studio Code?
@@preciousadigwe7141 Hello, yes it should work with VSCode too.
The one thing that will be different is adding the JAR to the project path, but you can find tutorials for that on youtube. Like this one: ua-cam.com/video/3Qm54znQX2E/v-deo.html
Hopefully this helps
can anyone help after we connected the API and we tried running the program for tokyo it returns null rather than co-ordinates
Epic Work, this looks like a Nasa work type hahahah
I wouldn't say that lol, but thank you 😀
thank you so much for this! new subscriber
No problem, and thanks!
Sehr cooles Video!
Gibst du auch Kurse oder kommen noch mehr Tutorials?
Ich studiere Informatik und hier und da läufts nicht so mit Programmieren.
Thanks! and at the moment I am not offering any courses, but I still plan on making these types of tutorials in the future. Right now I am currently working on a new video where I am making a Bank App with MySQL.
Programming can be quite difficult especially in the beginning, but if you truly want to be good at it I recommend to pace yourself and try to create some fun projects that interest you.
Good luck on your coding journey 😃
The project is great but in starting it shows me correct weather information but now it is showing wrong weather information please correct me what i can do for this..✨
Unfortunately, the API can get the weather wrong at times and I don't get it myself. The main reason why I used this API is because it was free and didn't require making an account to use the API.
If you do want more accurate weather data, possibly look into other weather apis.
Hopefully this helps
Hi what to do if i open json simple jar with intellij idea it shows it is a binary file
plz tell us
Oh you don't open the jar file, you just need to add it to the project structure which I do around 01:32.
Hopefully this helps
On this time I only know java, can you tell me a roadmap to become a java developer and build this king of applications.
Hmm...try out this roadmap: roadmap.sh/java
can i do this similar project in vscode or i need to install any other platform
Hello, you can do this project in VSCode. Though you would need to figure out how to add the JSON JAR file into your project structure which you can follow in this video: ua-cam.com/video/3Qm54znQX2E/v-deo.html
Hi. I like your Weather App Code and even I tried to make it. Problem: Cannot invoke "org.json.simple.JSONArray.get(int)" because "weathercode" is null. Is there a solution for it?
Hello, and thanks! For that issue try using "weather_code" instead.
do i need to add the json files into the structure because everytime i download it from the link my mac says it is from an unidentified devleoper and cannot do anyhting with it. If i do any, other spots i can get it from ?
Hello, unfortunately I don't have much experience using Mac but if you are having issues because you are trying to open the JAR file then don't worry you don't need to open the file. You just need to add it to the Project Structure.
If the above doesn't help, check this article out iboysoft.com/howto/cannot-be-opened-because-it-is-from-an-unidentified-developer.html
Hopefully this helps.
Muito bom, obrigada por compartilhar! consegui reproduzir e aprimorar meu desenvolvimento em Java!
Thanks! and Glad it helped 😀
Just out of curiosity, can you try to create this same weather app but through VS Code? Seems its not working for me ;-;
Hmm...I'll have to see. What issues are you running into?
Can you tell me how much things I have to learn to build this kind of applications.
Hello, the basics of Java should suffice. You might need to know how API works, but the way I did it is simple enough that you probably don't need to, but it does thelp to know. You don't have to know too much about swing as I tell you what is happening when I am creating the GUI.
Feel free to ask me questions, and I'll respond asap
Very good. Thanks
Thanks! and glad it helped 😀
As I am from India which timezone should be appropriate as there is none for India?
Hello, I'd say choose the one that is closes or most similar to your timezone.
Bro can we use servlets and run application
Hello, what would the servlet do? From my knowledge would it be hosting the weather data? If so, then yeah I think you can do that.
This is so cooool 😍😍😍
Excellent content!
Thanks 😀
Which are you using Theme for Java ?
Hello, I am using this theme: plugins.jetbrains.com/plugin/12163-monocai-color-theme
Bro you're the best.
Thanks! 😀
10/10 channel
Thanks!
Cannot getting jason data as output from api
can you please make inventory management system project in java??
Hello, that is in my bucket list of projects to do. I'll consider it after the next project
I can't extend Jframe in Android Studio...Can anyone help me?
at 3:30 to set the title is _setTitle("App Name")_ not super, am I right?
Hello, you can also use setTitle() to update the header text.
Is this a maven project or just simple project
Hello, this is a simple project. This project does not use Maven.
What is that theme on IntelliJ Idea
Hello, I am using this theme: plugins.jetbrains.com/plugin/12163-monocai-color-theme
whats theme are you using?
Hello, I am using this theme: plugins.jetbrains.com/plugin/12163-monocai-color-theme
@@TapTap_196 thanks
Hello, do u have know any good game engine that uses java. I want to make a 3d game.
Hmm...I'm not too familiar with the game dev space. I actually just started learning myself and I use the libGDX framework, but I mainly focus on 2D games.
libGDX does support 3D but not really sure how to do it. There is also jMonkeyEngine or you can make your game engine using the LWJGL framework which uses OpenGL. I'd say try libGDX as I believe their is more resource out there compared to jMonkeyEngine. Check this link out if you want to use libGDX xoppa.github.io/
nah bro just use unity for that, c# is basically better java anyway
What was the main app you used?
Hello, I am using IntelliJ Community Edition
can u make project using firebase database with Java Swing?
i tried to add firebase database libraries but error in set value 😥
I've been thinking of making a video around firebase, I'll add that to the next poll after the next project is finished.
What library did you use if you don't mind me asking?
@@TapTap_196 I'm using maven google.firebase:firebase-admin:9.1.1
Waiting for the next content, good luck to you. 😸
Hi Brother, I’m 13 years old, and greatly skilled at typing and computing, I want to learn java, is that ok, or I should wait some time..
Hello, I think starting that early is great. I'd say find something that interests you about programming whether its making games, websites, etc... and start from there.
@@TapTap_196 thanks bro
i am not getting where are you typing this code is this vscode
He is using IntelliJ IDE
Can you make the Clock App?
Oh do you mean like a timer? Or an app that displays the current time
What ide do you work with in the vid
Hello, I am using the IntelliJ Community Edition IDE
I need help, the compiler says that the weatherCode is null after running
Hello, try doing it this way:
"had to change the API gets from "weathercode" to "weather_code", "relativehumidity_2m" to "relative_humidity_2m" and "windspeed_10m" to "wind_speed_10m"." @pelvaka1755
Let me know if this helps or not
@@TapTap_196 it worked thanks a lot!
@@HaHa-oh5re No problem! Glad it helped 😀
Can you do News App with Java?
That sounds interesting 🤔. What type of features would you imagine to be in this app? Is it just doing an API call and showing recent news onto the GUI?
I'll consider adding it to the next poll
bro i want your code bro please
broooo iam unable to import swing class (unused import statement!!!!!) HELPPPPPP!!!!!?????
Try including "import javax.swing.*" at the top
While passing Tokyo as location it's showing output as null
Hello, is there an error that is being outputted in the terminal? If so can you paste it?
@@TapTap_196 no only null
Java.lang.nullpointerexception cannot invoke java.net.httpurlconnection .getresponsecode() because conn is null
@@TapTap_196 java.lang.nullpointerexception cannot invoke java.net.httpurlconnection.getresponsecode() because conn is null
@@TapTap_196 java.lang.nullpointerexception cannot invoke java.net.httpurlconnection.getresponsecode() because conn is null
bro ,which theme r u using in Intellij?
I am using Monokai Pro. Here is the link:
plugins.jetbrains.com/plugin/13643-monokai-pro-theme
I have a error with time zone please help
Hi, what error are you having? Are you using the wrong timezone?
what IDE do use sir ?
Hello, I am using IntelliJ Community Edition
why did you use swing instead of java FX is it better to learn swing
Hello, I used swing because it was easier to setup than JavaFX but I will be making a JavaFX version of this in the future.
In my opinion I believe that JavaFX is better, but swing is simpler and easier to get into.
i wanna learn javaFx should i just start off with swing or jump straight into java fx
@@TapTap_196
@@michaelsalami5500 I'd say you can start off with JavaFX
Can you tell me where to study java?
Hello you can refer to my other comment, if you haven't seen it then I'd consider mooc's course in Java.
@@TapTap_196 same,its a great course!
how did you import the BufferedImage?
Hello, I believe you are referring to this?
import java.awt.image.BufferedImage;
Hopefully it helps
i did that, however im having issues loading the image into the square box @@TapTap_196
i see when you import the text becomes green , but for me althoug i have import java.awt.image.BufferedImage; theres no change
nevermind i got it, i wasnt creating a path for it . nice videos btw thank you
@@joshuadombassi9648 Glad you were able to solve it 😀 and thanks I appreciate it!
Pls tell me which editor is this....
Hello, I am using IntelliJ Community Edition
@@TapTap_196 which theme are you using in intellij ?
bro iam unable to import pacakges swingg etc????????
Just before the "public class" Type import java.swing.*;
Wow thanks
No problem 😀
Is this will run in netbeans
Hello, yes this should work on netbeans. The only difference might be how you insert the JSON JAR file into your project structure. You'll have to look up on a tutorial for that.
@@TapTap_196 can you give the tutorial link
@@AntanKawin This should work: ua-cam.com/video/OQOpYHwA1A0/v-deo.html
Bro what is this javax swing?
Hello, yes this project uses the Swing framework
Can you make a Lost & Found system web
Oh could you clarify a bit more on that? Is the app like "find your device"?
@@TapTap_196 Not a find my device app. But a A web base platform where people can register if they lost Something & The One who found will also register there. ( this website will act as a bridge between founder & a person who lost his things, It's a small scale system for a College or a Campus or a Society. Or even for marriage hall s or Parks.
Bro everything is done can u add more function and make more interactive
As it look though quite simple
Hmm...maybe in a future video when redo it in JavaFX. What functionalities do you have in mind?
@@TapTap_196 something like if we search for particular country it should show pictures as well
@@TapTap_196 can we connect this type of apps to server
Thank you sooo much . Could you please make a chess player(not engine) like this.
No problem, and hmm that sounds interesting. I'll add it to the projects list. Thanks for the idea!
Getting error as no json module
Is this a mobile application?
Hello, this is a Desktop Application
bro can you make projects in Anroid Studio
Hello, unfortunately I don't have plans to learn it right now as I want to focus more on Angular and eventually Springboot to do more full stack development.
Hope you understand
Hi does the video not have any sound?
Do you mean voice? Then no, atm I am just recording the sounds of my keyboard and clicks. I might do a video using my voice in the future.
No src file in folder
Hello, if you are missing a src folder then you might have to redo your setup in Intellij.
which keyboard are you using ?
Hello this keyboard is custom built. Here are the specs:
RK84 PCB and Casing
Feker Holy Panda Switches with 2050G Lube
Stabilzers with 2050G Lube
Foam Mod
PBT DYE-SUB Keycaps
Hy guy's can anyone help me becozz iam stuck almost 3 hrs to this error "Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException: Cannot invoke "String.hashCode()" because "weatherConditionn" is null" can anyone help out guys and sir iam changing the weathercode into weather_code but still makes error.
Hello, could you paste in the code snippet? I'm thinking that it might be a syntax issue.
dude in my intelli j there is no JSONObject
Hello, you'll need to add in the JAR file that you downloaded in the beginning of the video to your project structure which I also show in the beginning of the video.
@@TapTap_196 i got it thank you.
my output are comeing null
Hello, try doing it this way:
"had to change the API gets from "weathercode" to "weather_code", "relativehumidity_2m" to "relative_humidity_2m" and "windspeed_10m" to "wind_speed_10m"." @pelvaka1755
Let me know if this helps or not
In next video make a 3d game
As of right now the next video will be a Chat Application.
Making a 3D game in Java might be a bit difficult for now, so I might make something where a 3D object appears on a GUI
Bro i have a doubut on what to study next i have completed learning core java i don't know what to study next ?? So please guide me to what to do next in java side
If you are looking to be job ready, I'd say your best bet is to start learning the spring framework.
Could you suggest any course you that you used for learning it ( or any channel that you follow for get in right flow )
@@sriramprasathp2285 I haven't been practicing Spring Boot in awhile, but I heard this play list is pretty good: ua-cam.com/play/PLu_a4hjJo1mTwF1DXUxo-TsOQLhWkpI2K.html
and also check out AmigosCode the youtube channel
.\WeatherAppGUI.java:19: error: package org.json.simple does not exist
import org.json.simple.JSONObject;
i want the app to be an executable jar. helpppp
Hello, are you getting this error because you were trying to make it an executable jar?
even when i run my java applauncher file through javac & java, it says that org.json.simple does not exist.
i tried everything referenced libraries and all
@@TapTap_196 is there any way i can share u the ss of my cmd
@@shoebbbsss Oh I think that is because you needed to add the JAR files to your project structure. Which IDE are you using?
@@TapTap_196 vs code
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException: Cannot invoke "String.hashCode()" because "" is null
at WeatherAppGUI$1.actionPerformed(WeatherAppGUI.java:120)
line 120 is :
String weatherCondition=(String) weatherData.get("weather_condition");
Hello, I believe you are getting that error because "weather_condition" isn't part of the returned data. I'm not sure which part of the video you are at, but for that part your code should've looked something like this:
String weatherCondition = convertWeatherCode((long) weathercode.get(index));
@@TapTap_196 Thank you , i found my mistake and soleved it
@@konstantinklein7050 Nice! and no problem 😀
your code is so well organized and easy to read. U just inspired the heck out of me
I appreciate, and glad it helped 😀
Why my program doesnt recognize loadImage command on buttons?
hpls help, how do i resolve this error: the import org.json can not be resolved? forst time working with an API and am still a rookie in java
Hello, did you add the JSON JAR file to the project structure? I'm thinking that could be the reason why.
I do that part @ 00:30
Let me know if this helps
@@TapTap_196 followed through, thanks
hi, for // //build the weather json data object that we are going to access on the front end
Am getting this error:
"message": "Type safety: The method put(Object, Object) belongs to the raw type HashMap. References to generic type HashMap should be parameterized",
}]
for all the four objects, i would really appreciate your guidance
@@TapTap_196 How do I do that in VSCode?
@@illahitaylorsversion Hello, this might help ua-cam.com/video/3Qm54znQX2E/v-deo.html&pp=ygUaaW5jbHVkZSBqYXIgcGF0aCBpbiB2c2NvZGU%3D
No project structure option in vs code
Hello, this video might help ua-cam.com/video/3Qm54znQX2E/v-deo.html
@@TapTap_196 thanks