Swing option other than JxTaskPane

I am using JxTaskPane to add menu items ..but i don't want to use it, as i don't want that expand and collapsed type of container .. i just want to arrange my menu items horizontally.

If i add it to panel than i am unable to add actions to it as JxTaskPane has a method ..

public Component add(Action action) {
}

so what can i use here ..or if there is no other choice, can i remove that expand and collapsed button. and also... how to arrange the items horizontally in JxTaskPane.

Currently I am having a JScrollpane inside that is a JXTaskPaneContainer then inside JXTaskPaneContainer there is JxTaskPane .

Please help me..

Thankx

Answers


If you can't use JMenuBar subclass JPanel and add a method

public void addAction(Action a) {
  addComponent( new JButton(a) );
}

That panel could use any layout manager you want, e.g. FlowLayout.


Need Your Help

It is possible to use WCF + DTO's + Automapper?

c# asp.net-mvc wcf automapper

I want to use automapper with a structure that uses WCF + DTO's but I want to know how the question of the eager loading with entity framework 4.0 work with the mappings of the automap.

objective-c coredata to-many fetch performance

ios objective-c core-data

(using core-data w/ underlying sqlite; wondering the run-time of calls im making with to-many getters)

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.