panels

jQuery Mobile multiple external panels

纵饮孤独 提交于 2019-12-25 03:47:37
问题 I'm trying to setup two separate external panels in jquery Mobile as follows. One is to display a full menu, the other to display links to social media sites. If I have just one or the other in the .js, that one panel works fine, but if I have them both in the .js, only the panel listed last loads. I'm thinking I need to specify something else besides just different ids. Is it possible to have two external panels? Thank you so much for any direction!! :) var panel = '<div data-role="panel" id

Two Panels in one JFrame?

旧巷老猫 提交于 2019-12-24 14:09:12
问题 i have two Panels and want them to be shown in my JFrame, but when i try it like this, i can only see the second one. Can someone please help me? :( import javax.swing.JFrame; public class MainWindow { CardLayout layout; JFrame frame; Player panel1; Block panel2; public MainWindow() { frame = new JFrame("Rechteck"); panel1 = new Player(); panel2 = new Block(); panel1.addKeyListener(new KeyListen(panel1)); frame.add(panel1); frame.add(panel2); frame.setSize(500,500); frame

Groovy SwingBuilder : button to change the color of a panel

一曲冷凌霜 提交于 2019-12-21 21:33:17
问题 Why does this code fail ? I want to change the color of one panel in a series of several panels, dynamically constructed (total number of panels not known beforehand). For some reason, this code works when referencing the name of a particular panel (for example 'panel2'), but not when I refer to it dynamically ('panelID'). import groovy.swing.SwingBuilder import javax.swing.WindowConstants as WC import javax.swing.JOptionPane import javax.swing.BoxLayout as BXL swing = new SwingBuilder()

Having a JLabel on top of another JLabel that has an image

萝らか妹 提交于 2019-12-20 06:49:38
问题 Soo I'm trying to make a board game with GUI. I created a JLabel with the player's name and want to use that as a token. Then I made another JLabel that contains the image of the board. I added both the labels onto a boardPanel and right now, the labels are side by side. How do I make it so that instead of it being side to side, the JLabel w/ name is on the JLabel w/ img? Is there something I should be considering for the panel that contains the two labels? Like a certain Layout Manager?

WPF TextBox and Scroll behavior

谁说胖子不能爱 提交于 2019-12-17 04:32:33
问题 I have a problem. I need to host grid with controls in ScrollViewer to prevent textbox from being either truncated or collapsed to zero-with at the UI. Also I want the with of textbox to be expanded when user change windows width. I'm setting Window's content to following code <DockPanel> <TreeView DockPanel.Dock="Left" Width="150"/> <ScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto"> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="Auto"/>

Component layering Java Swing, Layers showing on hover

[亡魂溺海] 提交于 2019-12-14 02:07:32
问题 I have two JPanels layered on top of each other in the same container. I am using container.add(jpanel,0); and container.add(otherjpanel, 1). It works fine however in order for the top layer to show I have to hover over the components with the mouse. Here is some executable code showing my problem. Just hover mouse on upper part of screen. import java.awt.*; import java.awt.event.*; import java.awt.image.BufferedImage; import javax.swing.event.*; import javax.swing.*; import javax.swing.text.

Panel control with variable name

旧城冷巷雨未停 提交于 2019-12-12 06:54:30
问题 I have 25 panel control (Visible false). I want to make it visible. But it doesn' work: (Error 1 'string' does not contain a definition for 'Visible' and no extension method 'Visible' accepting a first argument of type 'string' could be found (are you missing a using directive or an assembly reference?) ) for (int i = 0; i < 25; i++) { string panelID = "panel" + i.ToString(); panelID.Visible = true; } Help 回答1: Your code is wrong in so many fronts. As it is, what you're doing is creating 25

Switching between internal frames

ぃ、小莉子 提交于 2019-12-12 02:33:13
问题 I'm trying to develop a simple project. I need to change the contents of the panel defined inside a JInternalFrame . The code is as follows: JFrame_main : public class JFrame_main extends javax.swing.JFrame { /** * Creates new form JFrame_main */ public JFrame_main() { initComponents(); } /** * This method is called from within the constructor to initialize the form. * WARNING: Do NOT modify this code. The content of this method is always * regenerated by the Form Editor. */ @SuppressWarnings

Drag & sweep with Cocoa on iPhone

為{幸葍}努か 提交于 2019-12-11 12:41:40
问题 I'm about to start a new iPhone app that requires a certain functionality but I'm not sure if it's doable. I'm willing to research but first I just wanted to know if I should at least consider it or not. I haven't seen this in an app before (which is my main concern, even though I haven't seen too many apps since I don't own an iPhone), but an example would be the iPhone shortcuts panels: you can hold on an app, and then drag it to another panel, sweeping while still dragging it. But this is

Using panels instead of String in Autocompletetextfield

a 夏天 提交于 2019-12-11 10:29:53
问题 I am using Wicket to build an ui for a searchengine on a website. As the user is typing the results are shown in a dropdown. As I have a lot of different objects (with each a different display structure) I want to define several panels. So for each found item in the db, it gets the right panel and right structure. So for example : if the searchengine finds a user, it should show only name. When a picture is found, a thumbnail and a description, etc... Right now I am using the