Coder Social home page Coder Social logo

gbui's Introduction

gbui's People

Watchers

 avatar

gbui's Issues

Bug with BMultiSelectBox

What steps will reproduce the problem?

1. Apply this patch on GBUI project (it only changes style so its easier to
see the error):
Index: test/java/com/jmex/bui/MultiSelectBoxTest.java
===================================================================
--- test/java/com/jmex/bui/MultiSelectBoxTest.java  (revision 377)
+++ test/java/com/jmex/bui/MultiSelectBoxTest.java  (working copy)
@@ -26,12 +26,13 @@
                 final BToggleButton entry = new BToggleButton(value,
"select");
                 entry.setProperty("entry", value);
                 entry.addListener(listener2);
-                entry.setStyleClass("list_entry");
+                //entry.setStyleClass("list_entry");
+                entry.setPreferredSize(150, 50);
                 return entry;
             }
         };

-        list.setSelectionMode(SelectionMode.MULTIPLE);
+        //list.setSelectionMode(SelectionMode.MULTIPLE);
         list.setName("listEntry");
         list.setStyleClass("scrolling_list");
         list.setPreferredSize(new Dimension(200, 200));

2. Apply also this patch on GBUI project rsrc (it only changes style so its
easier to see the error):
Index: src/java/rsrc/style2.bss
===================================================================
--- src/java/rsrc/style2.bss    (revision 377)
+++ src/java/rsrc/style2.bss    (working copy)
@@ -63,8 +63,9 @@
 }

 button:selected {
-  background: image "rsrc/inner_orange_4.png" framexy;
+  background: image "rsrc/inner_darkblue_4.png" framexy;
   padding: 4 4 2 6;
+  color: #FFFFFF;
 }
 /*
 button {

3. Run MultiSelectBoxTest.

4. Select "Name9".

5. Scroll up.

6. Scroll back down.

What is the expected output? What do you see instead?
BToggleButton "Name9" should be selected, but is unselected after scrolling!

What version of the product are you using? On what operating system?
I am using HEAD version of this SVN, on Windows 7.

Please provide any additional information below.
Provided patches only change visual style, they don't affect this error in
any way. This error originates from BScrollingList (if it is used with
BToggleButtons, the ending result is the same - wrong).

Original issue reported on code.google.com by [email protected] on 19 Mar 2010 at 9:49

Error reporting

What steps will reproduce the problem?
1. Any error

What is the expected output? What do you see instead?
Clearly defined error is required at immediate time. Currently, very
generic error is shown exactly when component is added to visible hierarchy.

Original issue reported on code.google.com by [email protected] on 14 Jan 2010 at 9:19

Unable to retrieve the text set on a BTextArea

What steps will reproduce the problem?
1. Add text into the BTextArea
2. Try to extract the text
3.

What is the expected output? What do you see instead?
[SUCCESS] Able to retrieve the text
[FAILURE] Unable to retrieve the text

Currently the API does not support it.  There are internal structures known 
as runs and lines.  These will need to be extracted of the original strings 
some how.

Original issue reported on code.google.com by [email protected] on 2 Dec 2009 at 10:46

style dont load a font

What steps will reproduce the problem?
1. put the complete path in the style file

What is the expected output? What do you see instead?
text use the specifyed font


Please provide any additional information below.
if the font is installed in the system that's works fine (only write the
name of the font)

i have a solution (attached).
this try load the font with the full path. if not found take the system font.

Original issue reported on code.google.com by [email protected] on 5 Mar 2009 at 5:01

Attachments:

hardcoded value of stylesheet path still exists in some classes

What steps will reproduce the problem?
1. moving rsrc folder to another folder or rename it
2.
3.

What is the expected output? What do you see instead?
make that a property or have the ability to change it to something else
programatically.

What version of the product are you using? On what operating system?
jme-bui11

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 20 Mar 2008 at 2:51

Multiple StyleSheets in BuiSystem

BuiSystem does not handle more than one BSS.

If you want to setup multiple BSS files for different window styles,
currently, BuiSystem just allows one.

Some users would like to be able to assign whole and different style sheets
to different windows and components.

Since BSS overwrites the last duplicate entry, these styles are never
getting populated.

Rather than rewriting your styles for the classes, they would rather be
able to load a stylesheet and use the default style entries.

Original issue reported on code.google.com by [email protected] on 11 May 2007 at 6:14

The API does not make any suggestions as to what listeners are supported for each widget type.

What is the expected output? What do you see instead?
The API should provide some clear indications (not through comments but 
through code) as to what you can listen to for each type of widget, whether 
it be Selection changes, or widget removal, or simple visibility 
enablement.  Currently the API suggests that some ComponentListener is 
accepted, but when nothing happens in the code it is assumed that the user 
will figure out what to do as apposed to GBui clarifying what to do.

*Solution*
The API should provide clear and specific add and remove listeners to help 
the user identify how to use the framework.  Most expectations would follow 
that it has a Swing like presence to the widget classes to help reduce the 
learning curve.

Original issue reported on code.google.com by [email protected] on 7 Dec 2009 at 7:33

Images from the Bss are hard-coded from the getClass().getResource(String) method

What steps will reproduce the problem?
1. create a new separate project
2. place an image in the new project
3. try to get it to load from the BSS

What is the expected output? What do you see instead?
It should not be tied to any "resource" in the application, a simple 
generic path should suffice (it's easier to load by creating a new 
File("path/where/image/is.png") as apposed to using limiting and hard-coded 
resources which are based on the GBui code base as apposed to our own.

What version of the product are you using? On what operating system?
Latest as of 325

Original issue reported on code.google.com by [email protected] on 13 Oct 2009 at 6:41

Load multiple stylesheets

What steps will reproduce the problem?
1. Create a styles file with the list of styles wanted to load
2. try to load with BStyleSheetUtil.getStyleSheetFromFile()
3. none of the styles will show up


Original issue reported on code.google.com by [email protected] on 11 May 2007 at 6:06

The LineBorder implementation does not fit the CSS border definition

What steps will reproduce the problem?
1. Define the 'window' style as follow:
window {
  border-top: 1 solid #FF0000;
  border-left: 1 solid #00FF00;
  border-bottom: 1 solid #0000FF;
  border-right: 1 solid #FFFF00;
}
2. Run the TwoWindowTest test.

What is the expected output? What do you see instead?
The border of the window should be red on the top, green on the left, blue on 
the bottom and yellow on the right. But the visible border is composed by 4 
nested borders : a blue one outside, then a red one, a yellow one and a green 
one inside.

What version of the product are you using? On what operating system?
Last revision from the SVN repository.

Please provide any additional information below.
The solution would be to modify the LineBorder class in order to manage 
different size for each side. The class already defines the fields (_top, 
_left, _bottom and _right) but they always have the same value.
Just add a new constructor (LineBorder(ColorRGBA color, int top, int left, int 
bottom, int right)) and call it from BStyleSheet.createProperty().

Original issue reported on code.google.com by [email protected] on 27 Jul 2010 at 2:13

The bottom line of a LineBorder is not rendered properly

The bottom line of the LineBorder is rendered one pixel too low. Because of 
this, it may disappear behind others components.

What steps will reproduce the problem?
1. Run TiledMessageWindowTest

What is the expected output? What do you see instead?
The title bar should have a white border all around but the bottom line is not 
visible. This line is hidden under the background of the component bellow it.

What version of the product are you using? On what operating system?
Last svn revision.

Please provide any additional information below.
The problem is fixed if the method is modified like following:
if (_bottom > 0) {
  ((LineRecord) ctx.getLineRecord()).applyLineWidth(_bottom);
  float offset = _bottom / 2f;
  GL11.glBegin(GL11.GL_LINE_STRIP);
  GL11.glVertex2f(x, y + offset);
  GL11.glVertex2f(x + width, y + offset);
  GL11.glEnd();
}

Original issue reported on code.google.com by [email protected] on 28 Jul 2010 at 11:22

The height of a minimized BTitledWindow is incorrect

When minimizing a BTitledWindow, the height of the window is changed to the 
title bar's height. However the insets are omitted and when a padding is used, 
the window is not well rendered and the buttons (min, max, close) may be 
unaccessible.

What steps will reproduce the problem?
1. Modify the window class in style2.bss as follow:
window {
  border: 1 solid #FFFFFF;
  background: solid #FF0000;
  padding: 20 20;
}
2. Run CollapsingTiledMessageWindowTest
3. Minimize a window

What is the expected output? What do you see instead?
The red background should be around the title bar but most of it is under. 
Moreover the buttons are not in the window area anymore and cannot be accessed.

What version of the product are you using? On what operating system?
Last svn revision.

Please provide any additional information below.
Just modify the minimize() method in BTitledWindow in order to have:
  final int newHeight = titleBar.getHeight() + getInsets().getVertical();
  setLocation(_x, _y + _height - newHeight);
  componentArea.setVisible(false);
  setSize(getWidth(), newHeight);

Original issue reported on code.google.com by [email protected] on 28 Jul 2010 at 11:47

dist-rsrc added to build.xml

add dist-rsrc target to the build.xml file which will jar up the rsrc
directory and put it in the dist directory

Original issue reported on code.google.com by [email protected] on 10 Apr 2009 at 6:19

Error in the code when using the latest JME 2.0 from SVN

What steps will reproduce the problem?
Change the JME references to a JME project taken from their SVN.

What is the expected output? What do you see instead?
I get a compile error on the classes: CanvasRootNode and PolledRootNode

What version of the product are you using? On what operating system?
GBUI from SVN, JME from SVN

Please provide any additional information below.
There are two methods in JME Spatial which are now final:
public void findCollisions(final Spatial spatial, final CollisionResults 
collisionResults)
public boolean hasCollision(final Spatial spatial, final boolean b)

These now call abstract methods called:
public void findCollisions(final Spatial spatial, final CollisionResults 
collisionResults, int requiredOnBits)
public boolean hasCollision(final Spatial spatial, boolean b, int 
requiredOnBits)

Changing the methods in CanvasRootNode and PolledRootNode to override these 
new abstract methods instead of the old ones solves the problem. Since the 
now final methods only forward the call to the new methods, this shold not 
change the behaviour of the GBUI.

I attached the fixed classes to the issue.

Original issue reported on code.google.com by [email protected] on 22 Oct 2009 at 11:41

Attachments:

JOGL Support

Add support so GBUI will be able to use JOGL as well as LWJGL

Original issue reported on code.google.com by [email protected] on 7 Jul 2009 at 9:19

When passing a new line statement to BAreaText.appendText("\n") the component throws an exception

What steps will reproduce the problem?
1. BAreaText.appendText("\n") <-- do this

What is the expected output? What do you see instead?
[SUCCESS] The component should insert a new line in the text area
[FAILURE] the component throws an array index exception

Please use labels and text to provide additional information.

It appears that the component doesn't handle new lines gracefully and may 
contain other special cases that are not supported.  It would be advised to 
thoroughly test the component for all possible types of text being passed 
in, even <null> or empty strings.


Original issue reported on code.google.com by [email protected] on 23 Dec 2009 at 7:51

Use CSS with BUI

Take the existing BSS and deprecate it, allow the use of most CSS and the
style to replicate placement

Original issue reported on code.google.com by [email protected] on 31 Mar 2008 at 6:10

Fix aTechnique

aTechnique still has some display issues since one of the last prod builds
for GBUI

Original issue reported on code.google.com by [email protected] on 7 Jul 2009 at 9:20

ExtendedScrollingListTest broken

Executing ExtendedScrollingListTest and clicking on any of the buttons
causes a null pointer exception.
Also changing the button labels might be a good idea.

Original issue reported on code.google.com by [email protected] on 22 Aug 2007 at 10:50

More multithreaded tests

Add multithreaded tests to the existing tests

There may be, shouldn't be, but may be some cases where BUI doesn't quite
work the same

Original issue reported on code.google.com by [email protected] on 31 Mar 2008 at 6:11

Performance Issues / MultiThreading

What steps will reproduce the problem?
1. Create a BScrollingList
2. Add some buttons
3. Scroll the list

What is the expected output? What do you see instead?
Expected: Almost Constant FPS
Instead: Major framerate drops while scrolling

What version of the product are you using? On what operating system?
current CVS / style2.bss

Please provide any additional information below.

I want to use the BScrollingList as a dynamic button list. So the corresponding 
list is updated 
during runtime. When new Buttons are added, the GL-Thread stops for about 
100-200ms, that 
time increases with button count. Also, the global performance drops seriously, 
even when just 
moving the mouse above the List.

The TextArea object, when embedded in a window/BScrollPane and updated with a 
new line 
about once every second also seems to seriously stress the engine.

If there are any ways to improve GBUI performance, please include that in the 
documentation.

Apart from that, thanks for this great jME GUI implementation. :)

Original issue reported on code.google.com by normen667 on 22 Oct 2008 at 2:21

Custom mouse graphic freezes in textbox

What steps will reproduce the problem?
1. place a textbox in your gui
2. use a custom graphic for the mouse
3. click on the textbox

What is the expected output? 
the graphic for the custom mouse should continue to move with the mouse

What do you see instead?
the graphic freezes until escape or tab is hit, then it's unlocked

I have the code for this locally and will use it and the test case to
replicate the issue and fix it

Original issue reported on code.google.com by [email protected] on 31 Mar 2008 at 6:08

BLabel cannot have a specific icon for the disabled state

A BLabel (and by extension a BButton) uses a Label class to store the icon 
value and a Label class does not manage states. If a different icon is defines 
in the style sheet for the disabled state, it is ignore.

What steps will reproduce the problem?
1. Define the following styles in style2.bss:
foo {
  background: image "rsrc/inner_orange_4.png" framexy;
  padding: 4 4 2 6;
  text-align: center;
  icon: image "rsrc/textures/scroll_up.png";
}

foo:disabled {
  background: image "rsrc/inner_orange_4.png" framexy;
  padding: 4 4 2 6;
  text-align: center;
  icon: image "rsrc/textures/scroll_down.png";
}
2. Create the following class:
package com.jmex.bui.interactive;

import com.jmex.bui.BButton;
import com.jmex.bui.BWindow;
import com.jmex.bui.BuiSystem;
import com.jmex.bui.interactive.base.BaseTest;
import com.jmex.bui.layout.HGroupLayout;

public class TwoButtonTest extends BaseTest {

    @Override
    protected void createWindows() {
        BWindow window = new BWindow("Test", BuiSystem.getStyle(), new HGroupLayout());
        final BButton b1 = new BButton("A");
        b1.setStyleClass("foo");
        b1.setEnabled(false);
        window.add(b1);
        final BButton b2 = new BButton("B");
        b2.setStyleClass("foo");
        window.add(b2);

        window.setSize(400, 400);
        window.center();
        BuiSystem.addWindow(window);
    }

    public static void main(String[] args) {
        TwoButtonTest app = new TwoButtonTest();
        app.setConfigShowMode(ConfigShowMode.AlwaysShow);
        app.start();
    }
}
3. Run the test

What is the expected output? What do you see instead?
The two buttons should have different icons. The first button is disabled but 
it looks exactly like the enabled one.

What version of the product are you using? On what operating system?
The last revision from svn.

Please provide any additional information below.
The BLabel class should manage an array of icons (as the BComponent class 
manages an array of colors). The array is initialized in configureStyle(). The 
internal Label instance receives the icon just before the rendering.

Original issue reported on code.google.com by [email protected] on 2 Aug 2010 at 5:12

BContextMenu

The request is for a Context Menu

Below is the original post from:
http://www.jmonkeyengine.com/jmeforum/index.php?topic=8210.0

Anyone have an easy idea for how to make a free floating pop-up menu?  I
want to be able to click anywhere on the screen and have the menu pop-up
when i send it the mouse cords. 

The only thing i can think of is gut the BComboBox, but i have a feeling
that might be the hard way.

Original issue reported on code.google.com by [email protected] on 9 Jul 2008 at 2:44

Set selection on BList will throw an index out of bounds exception on the first time being set.

What steps will reproduce the problem?
1. programatically, add items into the list
2. select any item in the lest using BList.setSelection(value)

What is the expected output? What do you see instead?
[SUCCESS] Should set the selection
[FAILURE] Throws an exception

Please use labels and text to provide additional information.

SEVERE: Exception
java.lang.ArrayIndexOutOfBoundsException: -1
    at java.util.ArrayList.get(Unknown Source)
    at com.jmex.bui.BList.setSelectedValue(BList.java:121)
    at 
com.aether.gbui.operators.BListOperator.select(BListOperator.java:22)
    at com.aether.present.JournalPage$2.call(JournalPage.java:44)
    at com.jme.util.GameTask.invoke(GameTask.java:140)
    at com.jme.util.GameTaskQueue.execute(GameTaskQueue.java:111)
    at com.jmex.game.StandardGame.update(StandardGame.java:378)
    at com.jmex.game.StandardGame.run(StandardGame.java:250)
    at java.lang.Thread.run(Unknown Source)

Original issue reported on code.google.com by [email protected] on 2 Dec 2009 at 10:44

Remove ListenerUtil

Remove ListenerUtil and implement a more clean event creation and action
handling using predefined constants/enums.
Also remove creation of action events containing the component's name. If
necessary, that name can be retrieved by checking the source of the event.

Original issue reported on code.google.com by [email protected] on 15 Oct 2007 at 9:41

Transparent logging

What steps will reproduce the problem?
1. Make a call that will output log information

What is the expected output? What do you see instead?
Output needs to happen through client application log facility, not
hardcoded JUL. This can be resolved by using apache-commons-logging or
simple-logging-facade-4j

Original issue reported on code.google.com by [email protected] on 14 Jan 2010 at 9:21

BuiSystem default file (/rsrc/styles.bss) doesn't exist.

What steps will reproduce the problem?
1. Pull sources from SVN.
2. Put BuiSystem.init() in your code.
3. Run your app and watch it trace out.

What is the expected output? What do you see instead?
expected a BWindow on my jME screen. see stack trace.  After fixing 
BuiSystem.java (attached) no stack trace - but BWindow doesn't appear 
(another issue).

What version of the product are you using? On what operating system?
Pulled latest from SVN May 25.

Please provide any additional information below.

Changed BuiSystem.java line 50 to:

    public static void init() {
        init(null, null, 
            BStyleSheetUtil.getStyleSheet("/rsrc/styles.properties")
        );
    }

and line 136 to:

          style = BStyleSheetUtil.getStyleSheet("/rsrc/styles.properties");

Effect was no more stack trace - but no BWindow showed up.

Original issue reported on code.google.com by [email protected] on 25 May 2008 at 8:40

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.