Articles on Trending Technologies

Technical articles with clear explanations and examples

Add the default styles for the dropdown menu container in Bootstrap

Lakshmi Srinivas
Lakshmi Srinivas
Updated on 11-Mar-2026 272 Views

Use the .dropdown-menu class in Bootstrap to add the default styles for the dropdown menu containerExample           Bootstrap Example                                          Mobile Phones          The following are the mobile phone brands available in India:                       Companies                                            Apple                Samsung                Oppo                Nokia                                

Read More

Bootstrap .btn-link class

Ankith Reddy
Ankith Reddy
Updated on 11-Mar-2026 371 Views

Deemphasize a button by making it look like a link while maintaining button behavior using the btn-link class in Bootstrap −Example           Bootstrap Example                                       Link Button    

Read More

Callback using Interfaces in Java

Samual Sam
Samual Sam
Updated on 11-Mar-2026 4K+ Views

In the case of Event-driven programming, we pass a reference to a function which will get called when an event occurs. This mechanism is termed as a callback. Java does not support function pointers. So we can not implement the same direction. But using interfaces we can achieve the same very easily.In the example below, we've made a callback when a button is clicked. See the steps −Create an interface ClickEventHandler with a single method handleClick().Create a ClickHandler class which implements this interface ClickEventHandler.Create a Button class which will call ClickHandler when it's click method is called.Test the application.Example//Step 1: ...

Read More

Calling a method using null in Java

karthikeya Boyini
karthikeya Boyini
Updated on 11-Mar-2026 782 Views

When a method is invoked on a null reference, it throws NullPointerException but in case of the static method, we can make it possible using cast expression. See the example below −Examplepublic class Tester {    public static void display(){       System.out.println("display");    }    private void print() {       System.out.println("print");    }    public static void main(String[] args) {       //Scenario 1:       //Calling a method on null reference       //causes NullPointerException       try {          Tester test = null;       ...

Read More

Bootstrap progress class

karthikeya Boyini
karthikeya Boyini
Updated on 11-Mar-2026 244 Views

Use the .progress class in Bootstrap to create a progress bar. The class is a container for progress bars.You can try to run the following code to implement progress class in BootstrapExample           Bootstrap Example                                                       90% Complete                    

Read More

Bootstrap .btn-block class

Chandu yadav
Chandu yadav
Updated on 11-Mar-2026 509 Views

To create a button using the .btn-block class, you can try to run the following code −Example           Bootstrap Example                                       The following are block level buttons:                Block level Primary button                      Block level button          

Read More

Add a fading effect when closing an alert box in Bootstrap

Rishi Rathor
Rishi Rathor
Updated on 11-Mar-2026 391 Views

Use the .fade class in Bootstrap to add a fading effect when the alert is closed:Example           Bootstrap Example                                          Eclipse Refactoring                       ×             To refactor code in Eclipse, try the below given steps in the video (You can also close this alert)                                                                

Read More

Add plain text next to a form label within a form with Bootstrap

Lakshmi Srinivas
Lakshmi Srinivas
Updated on 11-Mar-2026 600 Views

To add plain text to a form label within a form, use the .form-control-static in Bootstrap.You can try to run the following code to implement a .form-control-static class in BootstrapExample           Bootstrap Example                                                       Email:                            amit@demo.com                                

Read More

Bootstrap .checkbox-inline class

Samual Sam
Samual Sam
Updated on 11-Mar-2026 796 Views

Use .checkbox-inline class to a series of checkboxes for controls to appear on the same line. You can try to run the following code to implement the .checkbox-inline classExample           Bootstrap Forms                                       Best IDE (You can select more than one)                             NetBeans IDE                                 Eclipse IDE                    

Read More

Container for form input and label with Bootstrap

George John
George John
Updated on 11-Mar-2026 919 Views

Use the .form-group class in Bootstrap to set a container for form input and label &minusExample           Bootstrap Example                                                       Student Name                                          Upload Resume                        Example block-level help text here.                 Next          

Read More
Showing 30141–30150 of 61,297 articles
Advertisements