本文整理汇总了Java中com.openbravo.beans.JFlowPanel类的典型用法代码示例。如果您正苦于以下问题:Java JFlowPanel类的具体用法?Java JFlowPanel怎么用?Java JFlowPanel使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
JFlowPanel类属于com.openbravo.beans包,在下文中一共展示了JFlowPanel类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: JProductsSelector
import com.openbravo.beans.JFlowPanel; //导入依赖的package包/类
/** Creates new form JProductsSelector */
public JProductsSelector() {
initComponents();
flowpanel = new JFlowPanel();
add(flowpanel, BorderLayout.CENTER);
}
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:9,代码来源:JProductsSelector.java
示例2: JCatalogTab
import com.openbravo.beans.JFlowPanel; //导入依赖的package包/类
/** Creates new form JCategoryProducts */
public JCatalogTab() {
initComponents();
flowpanel = new JFlowPanel();
JScrollPane scroll = new JScrollPane(flowpanel);
scroll.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
scroll.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
scroll.getVerticalScrollBar().setPreferredSize(new Dimension(35, 35));
add(scroll, BorderLayout.CENTER);
}
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:13,代码来源:JCatalogTab.java
示例3: listBreaks
import com.openbravo.beans.JFlowPanel; //导入依赖的package包/类
private void listBreaks()
{
try {
jScrollPane1.getViewport().setView(null);
jBreaks = new JFlowPanel();
jBreaks.applyComponentOrientation(getComponentOrientation());
java.util.List breaks = dlpresencemanagement.listBreaksVisible();
for (int i = 0; i < breaks.size(); i++) {
Break m_break = (Break) breaks.get(i);
JButton btn = new JButton(new BreakAction(m_break));
btn.applyComponentOrientation(getComponentOrientation());
btn.setFocusPainted(false);
btn.setFocusable(false);
btn.setRequestFocusEnabled(false);
btn.setHorizontalAlignment(SwingConstants.LEADING);
btn.setMaximumSize(new Dimension(190, 50));
btn.setPreferredSize(new Dimension(190, 50));
btn.setMinimumSize(new Dimension(190, 50));
jBreaks.add(btn);
}
jScrollPane1.getViewport().setView(jBreaks);
} catch (BasicException ee) {
}
}
开发者ID:gnoopy,项目名称:wifepos,代码行数:29,代码来源:JPanelEmployeePresence.java
示例4: listPeople
import com.openbravo.beans.JFlowPanel; //导入依赖的package包/类
private void listPeople() {
try {
jScrollPane1.getViewport().setView(null);
JFlowPanel jPeople = new JFlowPanel();
jPeople.applyComponentOrientation(getComponentOrientation());
java.util.List people = m_dlSystem.listPeopleVisible();
for (int i = 0; i < people.size(); i++) {
AppUser user = (AppUser) people.get(i);
JButton btn = new JButton(new AppUserAction(user));
btn.applyComponentOrientation(getComponentOrientation());
btn.setFocusPainted(false);
btn.setFocusable(false);
btn.setRequestFocusEnabled(false);
// btn.setHorizontalAlignment(SwingConstants.CENTER); // jg 27 JUL 2013
btn.setMaximumSize(new Dimension(110, 60));
btn.setPreferredSize(new Dimension(110, 60));
btn.setMinimumSize(new Dimension(110, 60));
// Added: JG 27 Jul 13
btn.setHorizontalAlignment(SwingConstants.CENTER);
btn.setHorizontalTextPosition(AbstractButton.CENTER);
btn.setVerticalTextPosition(AbstractButton.BOTTOM);
jPeople.add(btn);
}
jScrollPane1.getViewport().setView(jPeople);
} catch (BasicException ee) {
}
}
开发者ID:gnoopy,项目名称:wifepos,代码行数:37,代码来源:JRootApp.java
示例5: listPeople
import com.openbravo.beans.JFlowPanel; //导入依赖的package包/类
private void listPeople() {
try {
jScrollPane1.getViewport().setView(null);
JFlowPanel jPeople = new JFlowPanel();
jPeople.applyComponentOrientation(getComponentOrientation());
java.util.List people = m_dlSystem.listPeopleVisible();
for (Object people1 : people) {
AppUser user = (AppUser) people1;
JButton btn = new JButton(new AppUserAction(user));
btn.applyComponentOrientation(getComponentOrientation());
btn.setFocusPainted(false);
btn.setFocusable(false);
btn.setRequestFocusEnabled(false);
btn.setHorizontalAlignment(SwingConstants.LEADING);
btn.setMaximumSize(new Dimension(150, 50));
btn.setPreferredSize(new Dimension(150, 50));
btn.setMinimumSize(new Dimension(150, 50));
jPeople.add(btn);
}
jScrollPane1.getViewport().setView(jPeople);
} catch (BasicException ee) {
ee.printStackTrace();
}
}
开发者ID:nordpos,项目名称:nordpos,代码行数:31,代码来源:JRootApp.java
注:本文中的com.openbravo.beans.JFlowPanel类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论