Posts

Showing posts with the label CSS

Upgrade your site checklist

You already have a site - now you want to upgrade it, what should you do ? Make it fast - preferably not having any server side code (no php etc) just  plain html Use  Xenu  to see that there are no  broken links Redirect your site to the  www  domain Create a  404  page (or redirect to your homepage) Make it responsive ! Reduce the size of the site components Compress images (many online services) Dust off unused CSS selectors Minify CSS Minify JS Minify Html Instead of minifying the above resources (css, js, html) use Google's minifier which minifies all of the above on the fly (also uses cache) and even joins the CSS & JS together so you will have less server calls. Use  GTMetrix  to  analyze  then implement their suggestions Use  Google Page Speed  to analyze then implement their suggestions Don't stop implementing speed fixes according to the above analyses till you get above 90...

Coding java gui using Swing designing it with CSS

Building a GUI in java isn't complicated having netbeans as a great Swing gui builder. But what if we want to have some of the design left out of the code in a CSS file? As when building a java applet which should blend with a website, out best shot will be to use the same CSS file in the swing code as we use for the website. How can we design the GUI components using swing? We will use TK-UI's SwingCSSEngine (which is opensourced). Their documentation can be reached using the following link: http://tk-ui.sourceforge.net/user-guide/cssengine/swingcssengine.html How is it done? Download the libraries: http://sourceforge.net/projects/tk-ui/files/org.akrogen.tkui.css.swing/ Copy the jar files (also those in their "lib" directory [excluding the commons if you wish]) into your project's (the swing project) lib directory. In the code before initializing the swing components (a method which is actually called init...