这是我的网站:http://defend-foreclosure.com/index.html
当我将鼠标悬停在它们上面时,我无法将"法律"下拉列表中的列表项目更改为任何颜色,而是蓝色.谁能告诉我我需要编辑的CSS中的哪个元素?我一直在测试bootstrap.css和bootstrap.min.css中的各种元素而没有运气.
现在我可以通过单击connect to database按钮连接到我的数据库.不幸的是,我不能从其他任何地方关闭数据库,但在同一个if语句中.它不会将"conn"识别为本地Connection变量.我还需要其他按钮来访问"conn"来执行其他任务,所以这一个障碍阻碍了多个战线.以下是我的代码:
import java.awt.*;
import java.awt.event.*;
import java.sql.*;
import javax.swing.*;
public class ConnectToDB implements ActionListener {
final String url = "jdbc:mysql://localhost/";
final String dbName = "project3";
final String DBdriver = "com.mysql.jdbc.Driver";
final String userName = "root";
final String password = "OMGnpw=-0";
//GUI STUFF
//constants
final int windowX = 640; //pixels
final int windowY = 655; //pixels
final int fieldX = 20; //characters
//window
JFrame window = new JFrame("Mike's MySQL GUI Client");
//Connection Details
JLabel enterInfo = new JLabel("Enter Connection …Run Code Online (Sandbox Code Playgroud)