How can I set size of a button?

The following bit of code does what you ask for. Just make sure that you assign enough space so that the text on the button becomes visible The X and Y (two first parameters of the GridLayout constructor) specify the number of rows and columns in the grid (respectively). You may leave one of them … Read more

Why “no projects found to import”?

Eclipse is looking for eclipse projects, meaning its is searching for eclipse-specific files in the root directory, namely .project and .classpath. You either gave Eclipse the wrong directory (if you are importing a eclipse project) or you actually want to create a new project from existing source(new->java project->create project from existing source). I think you probably want the … Read more

How to get javax.comm API?

Oracle Java Communications API Reference – http://www.oracle.com/technetwork/java/index-jsp-141752.html Official 3.0 Download (Solarix, Linux) – http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-misc-419423.html Unofficial 2.0 Download (All): http://www.java2s.com/Code/Jar/c/Downloadcomm20jar.htm Unofficial 2.0 Download (Windows installer) – http://kishor15389.blogspot.hk/2011/05/how-to-install-java-communications.html In order to ensure there is no compilation error, place the file on your classpath when compiling (-cp command-line option, or check your IDE documentation).

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)