JGoodies for Android? - java

I looking for an UI plugin library for Android like what JGoodies is to Swing.
It should be configurable with or without the library existing (meaning, if the library exists, it renders the UI component specific to library, otherwise use the default android ui)
regards,
kiwi

Although there is none that I know like JGoodies, I think the following two links will be of help for you:
Using Themes in Android Applications
Android: how can i improve the look of an app?

I think responses so far are missing the point of JGoodies (and where I am presuming the question isn't about look-and-feel). It's predominantly not a look-and-feel library, it's a mechanism for automatically firing relevant events throughout a GUI, based on other changes on the same screen.

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.

Audio/Video Capture in PhoneGap/Cordova using external Java plugin

I am developing an android application using PhoneGap/cordova and Javascript. I want to include audio/video capturing functionality in a particular html Div of my application using external Java plugin.
Or some mechanism where I can have a native Java based widget which will come in the same screen at a particular location (rather than replacing the current view completely and occupying the entire screen)
I have searched across the web but could not find an efficient way to do it. Can anyone suggest me any way to handle this?
Is it an option to use the built-in feature?
http://docs.phonegap.com/en/1.9.0/cordova_media_capture_capture.md.html
Try to read this blog,hope will be helpful
http://www.raymondcamden.com/2013/5/20/Capturing-camerapicture-data-without-PhoneGap
Might not be exactly what you want: Instead of DIV use overlay android fragment.
CordovaWebView is part of an Android activity. That means we can overlay a fragment or say dialog at a location we want. Similar to native android development.
Challenge: If you want to show DIV/Dialog in between HTML you will have to take care of lot of positioning related issue.
Solution: You can target to have your DIV/Dialog positioned at the start or end and can then re-position your HTML placeholders.
Things you would require: Cordova Plugin creation, Dialog/Fragment understanding, JavaScript to reposition the DOM elements (if required), Then all is native.
Here is a SO link which can help you.
Please let us know if it helps and it would be great if you share your end solution.

Possible ways to create console like screen in java

I am trying to create a screen like this one
Initially I was trying to port a console program to java. I have found things like jcurses and charva but there is almost no documentation on them and I really cant understand how to use them.
So I figured that I could create a console like screen that resembled the one above.
what library / framwork would I be best using. Should I use swing as it if fully portable?
what would be the best approach being that I need to be able to navigate and alter the 00 in the picture above?
Easily usable would be great but as long as it has good documentation that I can learn it from that would be fine.
(Answering as if you're looking for a hex editor.)
http://jhecomponent.sourceforge.net/
http://www.fifesoft.com/hexeditor/
http://hexedit-lib.sourceforge.net/
Played a bit with the fifesoft.com offering, kinda cool.
If you're not looking for a hex editor, can you be more specific? If you just want a cursor-addressable window you'll probably have to suck it up and figure out something like jcurses or libjcsi :)
If you prefer to create a full fledged GUI with Java you could certainly use Swing. I would prefer SWT as a matter of personal taste, the widget library of Eclipse. You will find a lot of snippets and tutorials (same for Swing). Here is the Widget Library.
Here is a discussion about SWT versus Swing.
You could use the table layout manager to create the layout shown in your screenshot. If you rewrite the application from scretch, you should be able to handle the GUI events and update the widgets according to your application needs. You will easily find articles when you search for swt and table. If you would like to keep the code base and just exchange the GUI, I 'm not sure about the best approach. Maybe, the libs jcurses and charva are the way to go.
Unless you are looking to run the app on a headless VM (where a console/tty is all you've got), I'd use Swing. Create a JTable with a custom TableModel (to provide the data) and custom renderers (to provide the hex formatting) and everything should just work. Consider deriving from the various DefaultXXX implementations to save a lot of work.

Implementing a simple UI editor in Java

I'm thinking about writing a simple UI designer in Java. I'm just playing with ideas at the moment to see if it is feasible.
It would be good to have something like this as all of our UIs are generated from XML. Just wondering if anyone has tried anything like this before. I know there will be a lot of effort in doing something like this.
Does anyone know of any 3rd party products that already do something like this?
If not then at a simple level, it will have drag and drop support for any component that can be positioned on a panel. Then extra bits will be added. Are there any good samples on the net for this?
Cheers
Dated back to 2005, this has an overview of Java UI Builders:
http://www.fullspan.com/articles/java-gui-builders.html
Here is a page on how to use the Eclipse Visual Editor:
http://www.ibm.com/developerworks/opensource/library/os-ecvisual/
Here is a good page on the different approaches to build UIs in Java:
http://leepoint.net/notes-java/GUI/misc/80gui-generator.html
Which GUI technology are you using? Swing? NetBeans has a very good drag-and-drop Swing GUI editor. For Eclipse there are several plugins.
If you want to see other projects in which a Swing GUI is generated from XML config files, there are different libraries that do this.
Eclipse 4.0 Developer Preview was just released with an xml based toolkit called XWT. It can be styled with CSS and has a GUI builder. This is a developer preview and there will be some changes over the next year as it progresses to release 4.1, but it is useable right now and the community support is really good.

How to create a sidebar panel in OpenOffice?

I want to create an OpenOffice.org plug-in that adds a sidebar.
I have successfully installed OpenOffice.org, OpenOffice.org SDK and NetBeans OpenOffice plug-in.
I am familiar with Java, AWT and Swing, so no need to explain these concepts to me.
Now, I want to create a sidebar Panel(or JPanel) in OpenOffice.org Writer application.
How can I do this? It would be in the left and fill all available height(while using a fixed width).
Any idea on how to implement this? I have no OpenOffice.org plug-in past experience.
Thank you in advance.
This is currently not possible through the OpenOffice.org API. You can create menus, toolbars and dialogs. You cannot create dockable windows or panels via UNO. See: GUI Chapter in the Dev Guide.
Exposing this capability through the API is under active development and I suggest you join the api-dev#openoffice.org mailing list to stay on top of things.
The specific feature you asked for was already discussed there and it was suggested that it would be made available with a future update to OpenOffice 3.0. See post in the list archive.
I don't know if there's an easy answer for this. OO.o provides their dev guide here. It appears once you create an UNO component to their spec you can use:
Arbitrary objects written in Java or
C++ [and then] can be called from the user
interface, display their own GUI, and
work with the entire application.
That sounds like what you want to do. Hope this helps!
It's possible since version 4.0.
See https://wiki.openoffice.org/wiki/Sidebar

Categories

Resources