flowlayout

    1熱度

    2回答

    我有一個ListBox和一個水平的WrapPanel裏面來創建一個網格的內容。 它產生正確的佈局,但它是真的緩慢與大於一百左右的項目。 我看到了一些在谷歌上虛擬化WrapPanel的嘗試,但沒有一個看起來已經準備好了。 我錯過了一個招數? 如何獲得性能和靈活性(需要重新調整大小)面板佈局? (注意:單元格的大小是固定的)。

    71熱度

    2回答

    UIViewController維護對UICollectionView的引用。控制器應該使用UICollectionViewDelegateFlowLayout修改內置的流佈局。 這是很容易的視圖的數據源設置爲自: MyViewController.m - (void)viewDidLoad { self.collectionView.dataSource = self; } 但

    1熱度

    4回答

    幫幫我!每當我嘗試啓動下面的代碼時,它只顯示底部的按鈕和其他地方的密碼字段。我希望能夠看到的一切,但我不能 public void setup(){ frame = new JFrame("Votinator 3000"); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); voteconfirm = new

    0熱度

    1回答

    我一直在玩與周圍的卡片佈局演示: http://docs.oracle.com/javase/tutorial/displayCode.html?code=http://docs.oracle.com/javase/tutorial/uiswing/examples/layout/CardLayoutDemoProject/src/layout/CardLayoutDemo.java 我想建立這樣

    5熱度

    1回答

    我想填充我的窗口,例如標籤,我希望它們在列的大小超過當前窗口(或者說父框架)大小時進行換行。 我試過使用grid佈局,但是接下來我必須自己計算每一行內容的大小,以知道何時將下一個元素放入下一行。 我問的原因是因爲我想創建某種平鋪文件圖標。 或者換個問題,有沒有像TkInter的Swing的FlowLayout?

    2熱度

    1回答

    我有一個使用SwingLayout的Swing程序。 Swing組件的結構如下所示。 JFrame JPanel (Cardlayout) JPanel (Miglayout) - Main panel Jpanel (Flowlayout) - Checkbox Panel JPanel (Flowlayout) - Option Panel

    1熱度

    2回答

    我想創建一個JFrame,其中使用FlowLayout插入兩個JPanel。我有一個單獨的文件中被初始化的框架,但這裏是我一直被稱爲 public class FlowInFlow extends JFrame { public FlowInFlow() { setLayout(new FlowLayout()); JPanel panel1 = new JPanel(

    2熱度

    2回答

    這是我的Layout類的代碼。 import java.awt.event.*; import java.awt.*; import javax.swing.*; public class Layout extends JFrame { private JButton lb; private JButton cb; private JButton pb;

    0熱度

    1回答

    爲什麼我的組件使用FlowLayout封裝在這個JPanel中?他們只是跑出屏幕,只是部分可見。 JPanel panel = new JPanel(new FlowLayout()); panel.add(new JLabel("TEST")); // ... repeat adding JLabels until they go off screen when they SHOULD wr

    1熱度

    3回答

    我正在做的東西,我正在做一個小測試GUI。 但是,面板的定位會出現問題。 public winInit() { super("Chatterbox - Login"); try { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } catch(ClassNotFo