Chandu yadav has Published 1163 Articles

Changing Class Members in Python?

Chandu yadav

Chandu yadav

Updated on 30-Jul-2019 22:30:26

467 Views

Python object oriented programming allows variables to be used at the class level or the instance level where variables are simply the symbols denoting value you’re using in the program. At the class level, variables are referred to as class variables whereas variables at the instance level are referred to as ... Read More

HTML DOM Anchor href Property

Chandu yadav

Chandu yadav

Updated on 30-Jul-2019 22:30:26

120 Views

The HTML DOM Anchor href property is used to set or return the href attribute. It returns the url of the link.Following is the syntax to set the anchor href property−anchorObj.href = URLAbove, URL is the url of the link. It can be an absolute, relative or anchor link with ... Read More

Whatsapp using Python?

Chandu yadav

Chandu yadav

Updated on 30-Jul-2019 22:30:26

567 Views

In this section we are going to create a Whatsapp chatbots, but unlike few other chatbots for twitter or facebook, whatsapp chatbots don’t run on the platform directly because of whatsapp’s policies.But there is a way to get is done, using selenium, a very smart package in python with which ... Read More

Java Program to customize MenuBar and change the background color

Chandu yadav

Chandu yadav

Updated on 30-Jul-2019 22:30:26

1K+ Views

Use the UIManager to customize the MenuBar:JMenuBar menuBar = new JMenuBar(); UIManager.put("MenuBar.background", Color.ORANGE);We have used the following above to update the background color of the MenuBar:UIManager.put("MenuBar.background", Color.ORANGE);The following is an example to customize MenuBar and change the background color:package my; import java.awt.Color; import java.awt.event.KeyEvent; import javax.swing.JFrame; import javax.swing.JMenu; import javax.swing.JMenuBar; ... Read More

How to create a submenu for a Menu in Java

Chandu yadav

Chandu yadav

Updated on 30-Jul-2019 22:30:26

1K+ Views

Let us first create a MenuBar −JMenuBar menuBar = new JMenuBar(); UIManager.put("MenuBar.background", Color.ORANGE);To create a submenu for a Menu, the following is an example −Examplepackage my; import java.awt.Color; import java.awt.event.KeyEvent; import javax.swing.ButtonGroup; import javax.swing.JCheckBoxMenuItem; import javax.swing.JFrame; import javax.swing.JMenu; import javax.swing.JMenuBar; import javax.swing.JMenuItem; import javax.swing.JRadioButtonMenuItem; import javax.swing.UIManager; public class SwingDemo { ... Read More

HTML