SEARCH W7R

Sunday, July 08, 2012

Android/Eclipse Programming Solution "Failed to convert @drawable/image.png into a drawable"

w7r.blogspot.com

While trying to set up an xml reference to an image file I placed in drawable-hdpi folder, the following error occured: EclipseFailed to convert @drawable/image.png into a drawable.

Chances are that you are reading this because you too ran into the same problem. Luckily, I've got your solution!
All you need to do is change the xml reference from "someimage.png" or "someimage.jpg" to "someimage". So simply, eliminate the file extension for whatever resource it was and the error should dissapear.

Saturday, July 07, 2012

How to Rename Multiple Files in Windows 7

w7r.blogspot.com

About this Tutorial

This tutorial will show you how to rename a set of images to the same name with a number representing their original order. This is also called batch renaming.




A Few Simple Steps

  1. Find and highlight the files you wish to rename
  2. Right click any of the highlighted files from the group. Then, select "rename".
  3. Type a new name that the group of files will share, such as "Zoo Photos"
  4. Click or press "Enter" once you have the desired group name for your files.


An Example

Start: 42124.jpg, 42125.jpg, 42126.jpg, 42127.jpg
Rename input: "Vacation"
End: Vacation (1).jpg, Vacation (2).jpg, Vacation (3).jpg, Vacation (4).jpg


Quick Tip:

If you want to select all files in a folder to group rename, simply press Ctrl and A simultaneously.



Thursday, July 05, 2012

Turn Links into Buttons with CSS

CSS Tags Decorate Stuff!

Using CSS you can turn dull links into attractive buttons. Let me show you how!

What an average link looks like...


Average link
Average link

What a link could look like...





Button link

By using CSS I am able to decorate the anchor tag! Before CSS buttons on websites were text in images between the anchor tags.

THIS WAS BAD. Loading images takes a significant amount of time, much more than the average visitor was willing to spend watching the page load. CSS is a way of decorating text based on selectors and classes which describe the style needed.

Thanks to CSS you don't have to compromise looks for speed. Take a look at some more examples of how CSS can decorate links to appear as buttons.

Don't Have the Time to learn CSS?

Although learning CSS would be ideal, there are many programs and websites that host programs to help you create buttons visually. The CSS for the buttons will be printed out to you once you reached a design you like! Try a CSS button creator now!

What a link could look like...


Button link 2


Button link 2 

The Parts of a CSS Button

  • a:link - How non-visited links would appear.
  • a:visited - How visited links would appear.
  • a:hover - How links appear while the mouse hovers over them.
  • a:active - How links appear while they are clicking.

Tuesday, July 03, 2012

Java GUI Tutorials Archive

All You Need in One Location

Bookmark this resource before you forget too! This useful post contains a link to every Java GUI tutorial post on W7R Tech. Even if you have completed all of the W7R Java GUI tutorials, you can use this post refresh and expand your understanding of Java GUIs. Enjoy!



Don't forget to bookmark this resource! And make sure to subscribe to W7R Tech!

Rage Compilation #4

w7r.blogspot.com

If you have haven't had the opportunity yet the links for the first 3 rage compilations are at the bottom of this post. With a number of views far exceeding my expectations, they are worth a look! And enjoy!


Sunday, July 01, 2012

Java GUI Tutorial 6 - JPanel as a Container

w7r.blogspot.com



JPanel as a Container

In this tutorial, a new class (extension of JPanel), MainPanel.java has been added to the source files and is going to act as a common container for all instances of the ButtonPanel we create. The ButtonPanels are able to operate independently of one another.