Chandu yadav has Published 1163 Articles

Java Program to set Orientation and split components along y-axis

Chandu yadav

Chandu yadav

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

78 Views

Let us first create components to split. Here. We have two labels −JComponent one = new JLabel("Label One"); one.setBorder(BorderFactory.createLineBorder(Color.red)); JComponent two = new JLabel("Label Two"); two.setBorder(BorderFactory.createLineBorder(Color.blue));Now, set orientation and split along x-axis with HORIZONTAL_SPLIT −JSplitPane split = new JSplitPane(JSplitPane.VERTICAL_SPLIT); split.setTopComponent(one); split.setBottomComponent(two);The following is an example to set Orientation and split ... Read More

How to check if a table already exists in the database with MySQL with INFORMATION_SCHEMA.TABLES.?

Chandu yadav

Chandu yadav

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

902 Views

In order to check if a table already exists in the database by using MySQL, you can use INFORMATION_SCHEMA.TABLES. Following is the syntax −SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = ‘yourDatabaseName’ AND TABLE_NAME = ’yourTableName’;Let us implement the above syntax in order to check if a table already exists in ... Read More

HTML