Skip to content

Commit

Permalink
Rewrote Scrolling text and new scrolling menu widget
Browse files Browse the repository at this point in the history
  • Loading branch information
bflorat committed Apr 4, 2016
1 parent 44ee9a6 commit 76cb3ab
Show file tree
Hide file tree
Showing 10 changed files with 850 additions and 1,732 deletions.
127 changes: 0 additions & 127 deletions src/main/java/ext/JScrollingText.java

This file was deleted.

5 changes: 3 additions & 2 deletions src/main/java/ext/JSplash.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@

import org.jajuk.ui.helpers.FontManager;
import org.jajuk.ui.helpers.FontManager.JajukFont;
import org.jajuk.ui.widgets.ScrollingLabel;
import org.jajuk.util.Messages;
import org.jajuk.util.UtilSystem;

Expand Down Expand Up @@ -130,13 +131,13 @@ public JSplash(URL url, boolean progress, boolean messages, boolean percent,
totd = totd.substring(0, totd.indexOf("<a"));
}
totd += " ";
JScrollingText scrollingText = new JScrollingText(totd, -5);
ScrollingLabel scrollingText = new ScrollingLabel(totd);
scrollingText.setPreferredSize(new Dimension(400, 20));
scrollingText.setMaximumSize(new Dimension(400, 20));
GridLayout layout = new GridLayout(2, 1, 0, 0);
JPanel jpTotdAndProgress = new JPanel(layout);
jpTotdAndProgress.setBorder(new EmptyBorder(4, 5, 0, 5));
scrollingText.start();
scrollingText.startScrolling();
if (mProgressBar) {
mProgress = new JProgressBar();
if (mProgressBarMessages || mProgressBarPercent) {
Expand Down

0 comments on commit 76cb3ab

Please sign in to comment.