What is your preferred choice for showing picture galleries? - java

I am using Fancybox for displaying photo galleries on my web sites.
I am also quite happy with it but as I have to extend it a bit (e.g. show a hyperlink in the caption below the image), I thought it is worth to look around what other gallery frameworks are around.
I am looking for non-flash galleries, non-PHP: JAVA ONLY and jQuery based solutions.
Thanks for your input. I will collect all your feedbacks and update this question text.

ON the client side I recommend the JQuery plugin LightBox.
You can create a gallery from multiple images, and they are all nicely framed in a popup.

Related

Google's interactive text fields in java swing

I am struggling with something regarding java swing....I need to know how the linear text fields in most google apps are made....the ones where there is only one line in the bottom and how can I make them interactive. I don't need the app designer in net beans(that's our instructor)..Anyone can help please?
PS: I tried so hard to look up for such a thing but all I find is a drag and drop design. I searched everywhere but I found nothing.
The design of the graphic component in Google app is depending to the mobile operative system. In iOS and Android you will have different design for the same component, as you can see:
If you want to change the design of a graphic component (in an App or, in this case, in Java Swing) you have to write a Custom text field.
You can read Customizing JTextField for a simple example.

How to get screen shot of webpage using javascript or jquery?

Likes to add screen shot submission for any bugs in my web application which developed using J2EE.That is if there is any bugs then client has the ability to take the screen shot of bug and submit for bug maintains.
So want a efficient mechanism to capture screen shot using JavaScript or Jquery since i want the screen shot of client using my web application.
Already tried with html2canvas.js but it doesn't work in IE8.Wants efficient solution that supports in IE8.
So please help me to find a solution for this.
excanvas.js can be used in html to support canvas.Even though you can't solve it for html2canvas in IE8.

Android Menu Layout Front page

I want to make a menu sort of similar to Yelps front page.
The left image in particular. I feel like I've seen this on multiple apps, and I also remember thinking that this was actually something built into the default android layouts, but I can't seem to find anything on it anywhere.
How would I go about making this layout? Is there something already built for you, or do I have to make using image buttons and a relative layout?
Google+ also uses something like this on their first page; a lot of apps do now. It's called a dashboard layout. You can see an overview of that here and an explanation of how to create it here.
Using button images and a relative layout is an easy way to do this. For help on that look at this tut: http://developer.android.com/resources/tutorials/views/hello-relativelayout.html

Using Drag and Drop In Websites?

As i would now like to develop better webapps then the basic php and javascript ones that i currently create, i would like to know how web devs create some of the amazing websites that i have used over the past few years.
For example, On some of the websites that i visit they have the ability to drag and drop items from a palette onto the webpage. I am thinking mostly about some of the online diagramming tools that i have seen. How do they do this because i am currently baffled.
I would like to start creating these types of websites and currently i have no idea how to proceed. I first want to create some small tester websites that allow just very basic drag and drop use.
If anyone could point me in the right directions in terms of links to tutorials or library's that have this feature then i would be most grateful.
Cheers.
Can be done using the jquery UI
Draggable
Droppable
The best, most future-proof (in terms of immunity to browser changes and updates) way to implement drag/drop functionality is to use true rich client (RIA) technology like Adobe Flex, Silverlight, or JavaFX.
I think you should consider development in GWT which is basically a Java based wrapper for Javascript. It has a lot of community support and a complete drag and drop support is available in the form of a library - http://code.google.com/p/gwt-dnd/
Since GWT is coding in Java, it is not really a new territory to venture into but knowledge of Javascript, css, html goes a long in way in building robust GWT application. Plus it allows you to debug your code in eclipse just like Java code.
jQuery is easy to learn (but I'm not 100% sure it does DnD). I personally like MochiKit, which has excellent Drag and Drop functionality, and Dojo is very good too (and has some fancy widgets).
As far as a simple drag and drop goes, you could do something like you said with a palette and a dialog that changes color based on the drop.
I would recommend the jQuery framework as it is very easy to use and has a great API.
The steps for the test itself are pretty simple:
Have a palette with the colors: [ ][ ][ ][ ][ ] These can be table cells (<td>) that you can click on and 'drag'.
You could do tables and when you click on one of the tables, you use jQuery to get the background color. When you actually click on the <td>, assign the color to a variable.
You could create a semi-transparent <div> that follows the mouse as you drag it.
Set a mouseup listener on the target <div> (the one that would change color) and have jQuery set the background of the <div> to the color in the variable.
Edit: There will be a slight problem with 'text selection' when you drag something. A fix can be found here: How to disable text selection highlighting using CSS?

Pasting a Screen shot into a text area on a web page

Is it possible to take a screen shot (using the Print Screen) and paste it from the System Clipboard directly into a web pages text area field (which I would create)? Do I need a browser plug-in? Can Flash do this?
**The solution only has to work in Internet Explorer.
This is not possible without a plugin.
It's not possible in Flash or Silverlight either, although it is possible in AIR.
I think you will have to write a custom ActiveX Control in order to do this. The control should automatically take a screenshot and send captured image to server-side code..
There is one more option - create a java applet, which will do the job, and also will help you to avoid cross browser issue.

Categories

Resources