android app and mysql database

How to connect Android app with MySQL database and parse data using JSON and PHP

Today we are going to learn how to connect Android app with MySQL database. We will fetch table data, then parse it as JSON data to an android app. Before we get started, let define these few terms and know what they are. What is…

Stripe payment gateway

Guide on how to setup Stripe payment gateway for Non-Us citizens

Stripe payment gateway is an online service that enables eCommerce websites owners to process credit cards payments with easy. Before we go into details, let learn a few things about payment gateway, types of payment gateways etc. What is Payment Gateway A payment gateway is…

reset password email

Fixed: WordPress not sending reset password email

WordPress not sending reset password email or account registration email is a common problem faced by WordPress beginner bloggers. Some of the questions they ask me are why is WordPress not sending contact email notifications, why am I not getting reset password email on an e-commerce website.…

How to check if a string contains a digit and return true

String class in java represent character strings .Just like other constants Strings values cannot be changed.String objects  can be shared and they are immutable.Example of a  string in java String str=”Eric loves programming”. Today we are going to use different String class methods to write…

Creating bottom navigation view in Android application

Creating bottom navigation view in Android application

Today we are going to learn how to create Android bottom navigation view which makes applications functions easily accessible to the user by just one click. Let get started. We are going to create a new Project in Android Studio and name it as “BottomNavigation“…

How to create a splash screen in android

How to create a splash screen in android

When an Android application starts for the first time in a device, it takes some time before the application loads.Instead of showing a blank screen that, its good as a developer to design a splash screen that tells a user to either hang on it…

JLabel -example

Creating a JLabel with Text Example

Below code creates a Simple JLabel with Text Example using JLabel() constructor method.Note that JLabel class has several methods.  

Output:

setEnabled

Check whether a JLabel is Enabled or Visible.

JLabel.setEnanbled() methods enable a JLabel or make it visible in it container.If you set false, the JLabel is not visible and if set truth, the JLabel is visible. Below code creates two JLabels, one is enabled and the other is not enabled.

ImageIcon

Add ImageIcon to a JLabel and center it

OutPut