1. Introduction Welcome to the exciting world of web development! HTML (HyperText Markup Language) and CSS (Cascading Style Sheets) are the foundational technologies for building websites. While HTML provides the structure and content, CSS is responsible for the visual appeal and layout. This beginner’s guide will take you through the basics of HTML and CSS …
Continue reading A Beginner’s Guide to HTML and CSS: Building Your First Web Page
Category:Educational
Faith in the Digital Age: Balancing Spiritual Life and Technology
In today’s world, technology is an integral part of daily life. From social media to mobile apps, it shapes how we communicate, work, and even practice our faith. While technology can enhance our spiritual journey, it can also become a distraction if not managed wisely. The Bible offers timeless wisdom that can guide us in …
Continue reading Faith in the Digital Age: Balancing Spiritual Life and Technology
What Is Cybersecurity? A Beginner’s Guide to Protecting Data
In our increasingly digital world, data is one of the most valuable assets we possess. From personal information like passwords and credit card details to sensitive corporate and government data, information is constantly exchanged and stored online. However, this wealth of data also makes us vulnerable to a range of cyber threats, including hacking, identity …
Continue reading What Is Cybersecurity? A Beginner’s Guide to Protecting Data
Fibonacci
Everyone who has read the book or seen the film Da Vinci Code has heard about the Fibonacci sequence. The sequence looks a bit like this: In recent years a zero has been added to the front of the sequence, and it it this sequence I will be programming. The Fibinacci sequence can be defined …
Continue reading Fibonacci
GUI Refinements – Today
My final refinement (for the moment) is that, I want today’s date to be the default date. To do this I need to import two libararies: I then need to get the current date: In order to get each part of the date (day, month, year), i will simply use the SimpleDateFormat library, and create …
Continue reading GUI Refinements – Today
GUI Refinements – Focus
The next refinement, is that I want the Year textfield to clear when it is either clicked on or tabbed to. In order to do this i need to implement not only the ActionListener but also the FocusListener. To do this I simply have to change the class header from: to this: I then have …
Continue reading GUI Refinements – Focus
GUI – Refinements – Error Messages
The next refinement is simple. I want the output box to change colour, when the output of the calculation contains the word ‘Error’. How I have decided to handle this is by creating a new String before sending setting it as the content of the JTextField element. I have also decided to add a few …
Continue reading GUI – Refinements – Error Messages
GUI – Refinements – ComboBoxes
The first refinement i wish to make is to make the inputs for Day and Month to be ComboBoxes. In order to do this I first need to create two arrays containing all the values for the days(0 – 31) and months(“—” to “December”). The arrays will both store these values as strings and then …
Continue reading GUI – Refinements – ComboBoxes
Java GUI
The Final step is to create the GUI, I have sketched out my plan by hand. My initial plan is on the left, I plan to have 3 text input boxes, a large calculate button and an output box. The window will not be too big and I will fix the width and height, so …
Continue reading Java GUI
validDate Revisited – Java
With the updated Python function, comes an updated Java function, the code now looks like this, similar to the Python function there are two new checks and a final check that daysInMonth is not still zero: With this function working correctly, I can now continue with developing the GUI.