问题标签 [lwuit]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
java-me - 我无法将用户定义按钮的文本居中
我创建了一个 Button,并将其 UIID 设置为 boutonPpal。我在资源编辑器中将 bgAlign 属性设置为ALIGN_CENTER
,但 Button 的文本在运行时未居中!
那么如何让文字居中呢?
java-me - 如何使用 TextField 启用tickering?
我希望当 TextField 的文本长度大于 TextField 的 PreferredWidth 时,TextField 应该会自动运行。如何做到这一点?
非常感谢你
java-me - How to go to the top or bottom of a List when the bottom or top is reached when scrolling?
There is a list based on an array of Commands , myList = new List(new Command[] {cmd1, cmd2})
.
I want that when scrolling upwards and reaching the top of the list I want to go to its last element ( at the bottom ) , and when scrolling downwards and reaching the last element at the bottom I want to go to its first element ( at the top ) . How to achieve that ?
Thank you very much
java-me - 当它们是命令时如何标记列表元素?
如果我基于命令数组创建一个列表,并且某些命令的文本未完全显示在列表中,尽管列表preferredWidth
设置为表单preferredWidth
,如何标记它们?
非常感谢你
java-me - 我不知道如何为组件设置动画
我想在将 aButton
添加到 a 时为其设置动画,我希望Form
a在占据网格单元区域的位置之前平稳地向下移动。如何在 LWUIT 中制作该动画?GridLayout(2,2);
Button
java-me - 如何使用触觉设备?
我被困在这个问题上:如果设备是触觉设备(例如带有 Sun JavaME WirelessToolkit SDK 3.0 的 DefaultFxTouchPhone1),我想在用户使用笔设备在表格行(或单元格)上单击时执行一个操作。我尝试使用该addFocusListener
方法,但它有错误,因为即使显示表格的表单不再显示,但FocusGain
仍然调用该方法!
那么如何仅在显示实际表单时捕获笔单击事件?
真的非常感谢
java-me - 触摸设备返回了错误的 selectedRow
当设备是pointerPressed
方法中的触摸设备时,我想使用表格的选定行,而我得到的是错误的值:例如,我单击了第三行(PS:标题行是-1)并且我得到 0 作为值System.out.println
!当我单击另一行时,我会得到我之前选择的行!那么如何将 LWUIT 与选定的行同步呢?
java-me - RecordStore 和手机拍摄的照片
当用户用他的手机拍照时,我希望 LWUIT 获取一张特定的照片以添加到记录存储中,然后再检索该照片。如何做到这一点?
java-me - 如何删除对话框标题和对话框正文之间的线?
在运行时调用Dialog.show("title", "text", "ok", "cancel")
then 时,对话框标题和它的正文之间有一个换行符。由于对话框看起来不是很漂亮,如何删除此换行符?
java-me - 如何获得垂直和水平的像素数?
我想显示一个带有方法签名的对话框show(int top, int bottom, int left, int right, boolean includeTitle)
我想把这个对话框放在屏幕的中央。所以我想知道屏幕垂直的总像素数和屏幕水平的总像素数。
如何做到这一点?